LDraw.org Discussion Forums

Full Version: Lay out all the parts in model
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Does anyone have a tool or script that would take a standard LDR or MPD file and then create a new LDR file that contains all the parts from that model, but lay them out in nice neat rows? The layout as shown below is the kind of thing I'm after.

[Image: v9-2.jpg]

Ideally the script would have some sort of bounding box method to intelligently position the pieces.

As an alternative, is there a script or tool that can analyse the pieces in an LDR file and generate an output like this (ideally as a new LDR file)?

[Image: L%28EGO%29Draw33.png]

How about a more clever script that takes all the parts and then randomly assembles them in a pile - like this:
[Image: LegoBricks.jpg]
FYI: I've made the first picture by placing the parts manually in MLCAD.
Your second picture is basically a BOM as in LPUB.

However the BOM Pictures are not all the same size, they are in relation to each other.
Checkout My little tool:

https://github.com/zzjin/ldraw_explosion

[Image: car_origin.png]=>[Image: car_explosion.png]
...stupid question (Github noob here):
"Download prebuilt one-file-binary for your platform, and drag&drop ldr file on it." Where do we download binary?
(2021-05-13, 14:52)Philippe Hurbain Wrote: [ -> ]...stupid question (Github noob here):
"Download prebuilt one-file-binary for your platform, and drag&drop ldr file on it." Where do we download binary?

https://github.com/zzjin/ldraw_explosion/releases
(2021-05-13, 12:16)zzjin zeng Wrote: [ -> ]Checkout My little tool:

https://github.com/zzjin/ldraw_explosion

[Image: car_origin.png]=>[Image: car_explosion.png]

great job!
Funny little tool Smile To make echo to this discussion https://forums.ldraw.org/thread-23610-po...l#pid33654 , doesn't work with mpd extension, had to rename to .ldr...
(2021-05-14, 6:05)Philippe Hurbain Wrote: [ -> ]Funny little tool Smile To make echo to this discussion https://forums.ldraw.org/thread-23610-po...l#pid33654 , doesn't work with mpd extension, had to rename to .ldr...

thanks for testing~. I'll look at .mpd file support asap.
Interesting. Where can I find lp_win.exe? I am not able to build it. Wouldn't have a clue how  Blush
I'd like to test too.
Pages: 1 2