LeoCAD: using multiple libraries
It's also possible to mix the Mobaco library with Lego like parts or other vintage toys libraries.
Now 2 things will change:
- Need one location for all library parts,
- Category list needs to be updated.
1. Expected folder structure
Since we cannot select multiple zip files inside LeoCAD, a folder structure needs to be created, storing all available 3D parts.
LeoCAD expects this folder structure:
- "all_ldraw_parts":
Create a library root folder.
This folder needs atleast an important sub folder: parts - "parts":
Containing all LeoCAD parts, with it's associated 3D geometry inside the '*.dat' files. - "textures":
Inside the 'parts' folder, there is a 'textures' folder. This folder contains texture (pictures), used for those 3D parts needing one.
Within LeoCAD Preferences menu, the parts library should be set to this folder:

The downloaded 'mobaco_library_v1.x...zip', also cotains a folder 'parts'.
→ Just unpack this 'parts' folder and the expected library structure is created.

Adding a 2nd library
For adding a 2nd library, the folders & settings are already done.
Only the new parts from this new library have to be copied in the same destination folder.
→ Open the 'Bayko.zip' file and move the complete "parts"-folder into the roof folder: "..\all_ldraw_parts\"
So if you open the "..\all_ldraw_parts\parts" folder, you 'll see:
- A subfolder, called: "textures"
This contains some pictures, used for some Mobaco parts. - A lot of files called: "bayko_xxx.dat"
- A lot of files called: "mobaco_xxx.dat"
So basically both Bayko & Mobaco libraries are installed.
Include the Lego library
It might also be fun, adding virtual Lego to the scene. Herefore we again use our custom library "..\all_ldraw_parts".
Now we have to add all official LDraw parts into our custom library.
The latest LDraw libary could be found here: library.ldraw.org/ or just download this file: 'Complete LDraw.org Library Zip archive (complete.zip)'.
The 'complete.zip' file contains a 'ldraw' folder.
→ We need to unpack all files & directories inside this 'ldraw' folder and extract those into our own: "..\all_ldraw_parts":

Inside windows explorer:
- Open the 'ldraw' folder inside the 'complete.zip' file.
- Select all files.
- Drag them to the 'all_ldraw_parts' folder.
(This takes a while...)
Some remarks:
- The 'parts' folder in our own library did exist already. Extracting this new library, adds additional parts inside.
- Check again if everything went ok, by:
- Checking the folder structure.
(The LDraw folder needs some more folders, next to the 'parts' folder.) - Opening LeoCAD.
- Checking the folder structure.
- Including the Lego library, LeoCAD will take a bit longer starting up.
2. Update categories
Within the 'part categories', many LDraw official catergories exist. And when selecting 'All parts', you get all available parts. But that's not handy for building with Mobaco, Bayco or other vintage toys. So let's change these categories (filter).
→ Again within the LeoCAD application: 'Preferences' window, there is a tab: 'Categories', open this window:



Based on the use-case:
- Delete all categories (manualy) and only add 'vintage toys categories' or
- Keep this list (& official LDraw library) and add new vintage toys categories.
Buttons to use on the Categories menu:
- 'Reset': This default LeoCAD catergory list -in picture above (#1)- will be re-created. (So don't be afraid screwing something up.)
- 'Import': Import a "category.txt" file (like #2), which overwrites the current list.
- 'Delete': Deleting the selected category.
- 'New': Type a new catergorie yourselfs.
All the vintage-toys-libraries includes a category file, inside the ZIP file: "leocad_CATEGORIES_Vintage_Toys.txt" (#2)
You could either:
- 'Import' this list (#2), if you want use 'vintage toys' only.
(It consists again of many categories, so you could clean this list yourselves.) - Add 'new' categories manually (#3). Open the provided text file and add only the wanted categories.
Custom parts library → ZIP-file
For the advanced user: it's possible to create one ZIP file again for your entire customized library. If it's done right, LeoCAD will load a bit quicker.
Within a ZIP-file, LeoCAD searches for a sub-folder called 'ldraw'.
So that's what we will create.
- Rename the "all_ldraw_parts" folder into "ldraw".
- Make a ZIP-file from this "ldraw" folder.
- Optional rename this ZIP-file, into something more meaningfull, like "all_ldraw_parts.zip".
- Within LeoCAD, refere to this "all_ldraw_parts.zip" file.


