Answers.Body: <p>The latest versions of Bricklink have a &quot;Replace&quot; feature when clicking on a part. You can find all the parts by part number in your build by searching the part number in the Step List. I used this to replace rare colors of 1x2 jumper plates 3794a with the more modern and cheaper 15573.</p>
  <p>Related: <a href="https://www.youtube.com/watch?v=WaFD-NoN-zs" rel="nofollow noreferrer">How to Replace Expensive Parts in your MOCs video</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-23T19:32:27.863Z
Answers.LastActivityDate: 2022-12-23T19:32:27.863Z
Answers.UserDisplayName: qwr
Answers.Body: <ol>
  <li>In Bricklink Studio go to <em>File &gt; Export As &gt; <strong>Export as LDraw...</strong></em></li>
  <li>Open the file in any text editor such as Notepad</li>
  <li>Find the Bricklink part ID you want to replace it. It will be a number followed by a <strong>.dat</strong> extension.</li>
  <li>If you have multiple identical bricks with different colours, check the colour id in the second column. Bricklink has a <a href="https://www.bricklink.com/catalogColors.asp" rel="nofollow noreferrer">list of colour ids for reference</a>.</li>
  <li>Replace the part ID that precedes the file extension with a valid Bricklink part ID.</li>
  <li>Save the file (as a <strong>.ldr</strong> file)</li>
  <li>In Bricklink Studio open the file with <em>File &gt; Import &gt; <strong>Import Model...</strong></em></li>
  </ol>
  <p><a href="https://i.sstatic.net/FRUPy.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FRUPy.png" alt="enter image description here" /></a></p>
  <hr />
  <p>In this example I replaced the Green (ID 2) #3003 2x2 brick with a #3941 2x2 round brick.</p>
  <p><a href="https://i.sstatic.net/nuctD.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/nuctD.png" alt="enter image description here" /></a></p>
  <p>The rest of the data includes rotation, transformation and meta data which you should leave unless you know for sure how it works. There are no guarantees connections will be valid, as each part has their own unique geometry and fixed pivot point.</p>
  <p>In this case I could safely replace these two parts as their geometry is very similar.</p>
  <pre><code>0 Untitled Model
  0 Name:  Block Tower
  0 Author:  Ambo100
  0 CustomBrick
  1 4 20.000000 -24.000000 -60.000000 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 3003.dat
  1 14 20.000000 -48.000000 -60.000000 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 3003.dat
  1 2 20.000000 -72.000000 -60.000000 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 3941.dat
  1 1 20.000000 -96.000000 -60.000000 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 3003.dat
  </code></pre>
  <hr />
  <h2>Notes</h2>
  <p>This may interfere with generated instructions, it is recommended to replace all parts before creating instructions.</p>
  <p>Many text editors have a 'Find and replace' feature you can use to replace all parts as each line only refers to one part. I would recommend using regex expressions if you are familiar with them, I have created an example that can be played with <a href="https://regexr.com/5pv53" rel="nofollow noreferrer">here</a>.</p>
  <p>Add the following replacement expression in the 'Replace' window on the bottom of the screen. NEWPARTID must be changed to the new part you want to replace with. (3941 for example). Make sure you don't remove the 1 at the start.</p>
  <pre><code>$1NEWPARTID.dat
  </code></pre>
  <p>For finding only certain colours you can use this search expression.</p>
  <pre><code>((?:\d+\s+)(?:COLOURID)(?:\s.*))(?:(PARTID).dat)
  </code></pre>
  <p>Replace COLOURID and PART ID (14 and 3003 for example).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-09T16:07:28.910Z
Answers.Text: Well, this is not a very comfortable solution, but at least it _is_ a solution. Thank you.
Answers.UserDisplayName: Spock
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-09T17:22:30.020Z
Answers.Text: I’m afraid it might be the only solution. As Matthew Jensen mentioned that from a technical point of view it would be difficult to replace parts and have the software guarantee valid connections and avoid any overlapping parts. For this reason I don’t think the feature was included but it might be worth contacting the developers to ask about it.
Answers.UserDisplayName: Ambo100
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-02T20:00:18.747Z
Answers.LastActivityDate: 2021-04-02T20:32:57.277Z
Answers.LastEditDate: 2021-04-02T20:32:57.277Z
Answers.UserDisplayName: Ambo100
Body: <p>I'm using <a href="https://www.bricklink.com/v3/studio/download.page" rel="noreferrer">Studio 2.0</a> to design my MOC.</p>
  <p>Is there a way to replace a brick in my design by another other than removing it an setting a new brick on the old place? Best would be when the replaced brick keeps the properties (color, rotation) of the old one.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-02-09T01:11:54.523Z
Comments.Text: I tried a few things in Studio 2.2.1 and I couldn't come up with any way to do this.
Comments.UserDisplayName: chicks
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-02-09T10:31:19.120Z
Comments.Text: So "no" seems to be the answer. Thanks for trying @chicks.
Comments.UserDisplayName: Spock
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-02-14T09:52:26.110Z
Comments.Text: It is unlikely, since it would rely on the replacement piece having the same relative connection information (at least for the attached ones)
Comments.UserDisplayName: Matthew Jensen
Tags: <bricklink-studio>
Title: Replace brick inplace in Studio 2.0
UserDisplayName: Spock
ThreadText: # Replace brick inplace in Studio 2.0
  
  (Asked by: username_0 on 2021-02-08)
  
  I'm using [Studio 2.0](https://www.bricklink.com/v3/studio/download.page) to design my MOC.
  
  Is there a way to replace a brick in my design by another other than removing it an setting a new brick on the old place? Best would be when the replaced brick keeps the properties (color, rotation) of the old one.
  
  **Tags:** bricklink-studio
  > **Comments:**
  > **username_1**: I tried a few things in Studio 2.2.1 and I couldn't come up with any way to do this.  
  > **username_0**: So "no" seems to be the answer. Thanks for trying @chicks.  
  > **username_2**: It is unlikely, since it would rely on the replacement piece having the same relative connection information (at least for the attached ones)  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2022-12-23. Score: 2 | Accepted answer
  
  The latest versions of Bricklink have a "Replace" feature when clicking on a part. You can find all the parts by part number in your build by searching the part number in the Step List. I used this to replace rare colors of 1x2 jumper plates 3794a with the more modern and cheaper 15573.
  
  Related: [How to Replace Expensive Parts in your MOCs video](https://www.youtube.com/watch?v=WaFD-NoN-zs)
  
  
  ---
  
  ### Answer by username_4 on 2021-04-02. Score: 4
  
  In Bricklink Studio go to File > Export As > Export as LDraw...
  Open the file in any text editor such as Notepad
  Find the Bricklink part ID you want to replace it. It will be a number followed by a .dat extension.
  If you have multiple identical bricks with different colours, check the colour id in the second column. Bricklink has a list of colour ids for reference.
  Replace the part ID that precedes the file extension with a valid Bricklink part ID.
  Save the file (as a .ldr file)
  In Bricklink Studio open the file with File > Import > Import Model...
  
  
  
  In this example I replaced the Green (ID 2) #3003 2x2 brick with a #3941 2x2 round brick.
  
  The rest of the data includes rotation, transformation and meta data which you should leave unless you know for sure how it works. There are no guarantees connections will be valid, as each part has their own unique geometry and fixed pivot point.
  In this case I could safely replace these two parts as their geometry is very similar.
  0 Untitled Model
  0 Name:  Block Tower
  0 Author:  Ambo100
  0 CustomBrick
  1 4 20.000000 -24.000000 -60.000000 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 3003.dat
  1 14 20.000000 -48.000000 -60.000000 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 3003.dat
  1 2 20.000000 -72.000000 -60.000000 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 3941.dat
  1 1 20.000000 -96.000000 -60.000000 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 3003.dat
  
  
  Notes
  This may interfere with generated instructions, it is recommended to replace all parts before creating instructions.
  Many text editors have a 'Find and replace' feature you can use to replace all parts as each line only refers to one part. I would recommend using regex expressions if you are familiar with them, I have created an example that can be played with here.
  Add the following replacement expression in the 'Replace' window on the bottom of the screen. NEWPARTID must be changed to the new part you want to replace with. (3941 for example). Make sure you don't remove the 1 at the start.
  $1NEWPARTID.dat
  
  For finding only certain colours you can use this search expression.
  ((?:\d+\s+)(?:COLOURID)(?:\s.*))(?:(PARTID).dat)
  
  Replace COLOURID and PART ID (14 and 3003 for example).
  
  > **Comments:**
  > **username_0**: Well, this is not a very comfortable solution, but at least it _is_ a solution. Thank you.  
  > **username_4**: I’m afraid it might be the only solution. As Matthew Jensen mentioned that from a technical point of view it would be difficult to replace parts and have the software guarantee valid connections and avoid any overlapping parts. For this reason I don’t think the feature was included but it might be worth contacting the developers to ask about it.  
  
  ---
  
  