8

I'm using Studio 2.0 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.

3
  • I tried a few things in Studio 2.2.1 and I couldn't come up with any way to do this.
    – chicks
    Feb 9, 2021 at 1:11
  • So "no" seems to be the answer. Thanks for trying @chicks.
    – Spock
    Feb 9, 2021 at 10:31
  • 1
    It is unlikely, since it would rely on the replacement piece having the same relative connection information (at least for the attached ones) Feb 14, 2021 at 9:52

2 Answers 2

2

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

4
  1. In Bricklink Studio go to File > Export As > Export as LDraw...
  2. Open the file in any text editor such as Notepad
  3. Find the Bricklink part ID you want to replace it. It will be a number followed by a .dat extension.
  4. 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.
  5. Replace the part ID that precedes the file extension with a valid Bricklink part ID.
  6. Save the file (as a .ldr file)
  7. In Bricklink Studio open the file with File > Import > Import Model...

enter image description here


In this example I replaced the Green (ID 2) #3003 2x2 brick with a #3941 2x2 round brick.

enter image description here

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).

2
  • Well, this is not a very comfortable solution, but at least it is a solution. Thank you.
    – Spock
    Apr 9, 2021 at 16:07
  • 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.
    – Ambo100
    Apr 9, 2021 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.