A question came up about creating a nice and satisfying knolled layout for a model.
This can now be done in LDPub3D, but the output is either a PDF page or PNG images showing the knolled BOM of a model.
If we want this in an LDraw file, we could be able to do this in a LUA script in LDCad.
There are a few sample scripts that take the bricks of a model and reorder them.
I was thinking about what if we can make something like the Selection Circle script does.
I am slowly learning (self taught) LUA and am trying to modify the Selection Circle myself.
But this is complex.
Maybe a LUA wizard or programmer can shine a light on this?
The steps involved, I think, would be something like this:
Select all bricks in the model. This should be done in Nested mode to select all bricks in submodels too. Deleting all metacommands other then the header and bricks (for example steps, LPub commands, etc.) The result is a nice stack of all bricks in just one big model.
Next we should reset all parts to plane level. So every brick that has a rotation should be reset to default straight rotation level on the y-plane (I hope I explain this correct) and maybe put all parts at the 0,0,0, coordinate. This can already be done with the provide sample script "Copy orientation"
Then, we will want to sort the bricks based on size and color (or other order?)
Next, starting with the smallest brick on the 0,0,0 position, rows and columns of the other bricks should be made to get a square or rectangular shape for the layout. You should be able to set the amount of rows or columns or calculate the best ratio for your model.
After the first brick, the next should be positioned at say 20 LDU from the previous brick (distance between bricks would be 1 stud) either to form a row or column
Then the next and the next and so on until the first X amount of bricks are neatly positioned and aligned in a row or column
Then do the next row or column and so on
A collision check should be done to make sure no bricks overlap
Am I on the right track? Is it too complex or can it be done in other ways?
Quote:They are based on Lego piece 3711, but designed in CAD and then transformed to Ldraw. It has fully functional connectivity for use in studio. You can find the studio and partdesigner files on my Bricksafe page. To import them into your studio custom part palette, open the .part file in PartDesigner and then export it to studio.
Recreate "Shupp XXL Train Wheels" from scratch for Parts Library as Third Party parts.
For the "Shupp XXL Train Wheels" (https://www.shapeways.com/shops/shupp-s-...rain-stuff), there was an attempt to create LDraw parts, but its files created with a "CAD->STL->DAT" workflow (not exact LDraw way to model wheels), and this attempt files might not be included into LDraw due to many other issues:
Many sets from the FreeStyle theme was converted into Promotional sets by various companies, including by LEGO Group itself, which added such a small LEGO® SYSTEM™ sets with their own products or provided it as gifts:
Milky Way's "Magic Chest" (1995-1997) by Mars, Inc. - forums.ldraw.org/thread-28440.html
(included 1777, 1778, 1779, 1823, 1859 and some other FreeStyle sets, with build instrcutions for custom larger models)
LEGO co-branded Sabach Promotional Sets (1997)
1298 - LEGO Advent Calendar Set (1998), part of the Classic Basic theme.
(included 1777, 1778, 1779, 1823, 1859 and other, with an extra Santa Minifig set)
The Milky Way Magic Chest (or simply "Magic Chest") was a series of products made by Mars, Inc., produced in 1995-1998 in a form of the small paperboard boxes, each with a single Milky Way chocklate and one of the few LEGO® SYSTEM™ Promotional sets from FreeStyle theme:
There was few themes introduced in the Milky Way "Magic Chest":
Transport (1995, blue boxes), called "in the clouds, on ground and on sea"
Farmer and pets (199?, pink boxes), called "funny"
Animals (199?, winter decorated boxes), called "in the clouds, on ground and on sea", mix of sets from its Transport and Farm themes
NOTE: LDraw MPD file made with the latest LeoCAD ("continuous" build), designed to be a container for whole "Magic Chest" series, where each theme is a separate submodel, consisting of 4 or 5 theme models (as separate submodels). Also, for each promotional set theme models are based on there are submodels, which in turns consisting of each its subset (3 variants per set). Milky Way Magic Chest - Transport (1995)
It was a series of 5 boxes, each with the one of five LEGO® SYSTEM™ Promotional sets (each set consisted of 3 subsets):
1777 set:
1777-1 - Airplane (Low-Wing)
1777-2 - Airplane (High-Wing)
1777-3 - Cargo Vessel (Container Ship, Barge)
1778 set:
1778-1 - Police Patrol Boat [?]
1778-2 - Police Vessel [?]
1778-3 - Police Speed Boat [?]
1779 set:
1779-1 - Seaplane
1779-2 - Helicopter
1779-3 - Snowmobile [?]
1823 set:
1823-1 - Sailboat
1823-2 - Airplane
1823-3 - Yacht [?]
1859 set:
1859-1 - Airplane (Low-Wing) - same as 1777-1, but in different colors
1859-2 - Airplane (Low-Wing, with short wings)
1859-3 - Narrowboat (Houseboat, Riverboat)
It also provides a partial instruction for 4 models (originally unnamed) could be built from combination of this sets: