Creating Assemblies and Parts within a Rhino File

We wanted to provide a feed back from the team on both the Script provided by Japhy and best step recommendations for new assemblies provided by Scott.

We ran the script on our side per your instructions and it worked like a charm for our needs. We can import the Rhino native files back into CATIA with our license converter

On new assemblies, we can have the users define blocks and save out as promoted per the instructions.

Thanks again for helping us with a time consuming issue that was impacting our user community.

Nathan Carpenter

We had a reqeust if the script could be modified to grab sub-layers? My rhino team is building sub-layers like an Assy model but the script only pulls the first layer out? Can Japhy adapt?

Here the sublayer :: is replaced with _ in the name

ExportAllLayers_V2.py (2.5 KB)

Hi Japhy,

We gave it a try and see the same results where it’s extracting just the top layer. We are adding a file for you to review with our sub-layer example if this helps adjust the code to make a sub-layer extract tool.Link to Zip File Example

Hi Nathan, the link is asking for a sign in, you can upload large file here if need be.

Does this not work for you?


SimpleExample.3dm (281.4 KB)

Hi Japhy,

I tried to upload to the Rhino Accounts but there is not an upload section. All I see is how to adjust my account name. Nothing else.

No the script when run on our side is exporting only the first layer and not the sub-layers.

You have a number of non-machine readable characters in your layer names (they fail to become a file name)

Try this one
ExportAllLayers_V3.py (4.5 KB)

Hi Japhy,

That one worked. What are the non-readable characters we need to avoid in the future and I’ll advise the team to keep an eye out not to call out.

Thanks again for the support.

Here’s a good list