Proposal: Importing STEP assemblies as nested layers, not nested blocks

THere are a few ideas in the thread about how to work with these types of models.

The Rhino 9 Beta includes a ExplodeBlocks ToLayer option now. Seems to work well.

Perhaps it will be useful to someone.

I this based on the Pascal script ?

Anyways, yes, this script is being my main way to work with steps assemblies for a few years already.

Any chance we get a reverse one to make it easier to re-export, similar to what I was trying to do but failed to? Oh wait, maybe claude can help me make that one work now.

Anyways, the idea would be to use the layer tree to create the blocks one by one, with each layer containing all its sublayers as blocks. essentialy exactly what ExplodeBlocksToLayers do but in reverse. We can call ImplodeLayersToBlocks :stuck_out_tongue:

Same here! At some point in time I wanted to suggest to make this a part of Rhino by default but then forgot about it again. Great to hear that this was indeed integrated.

Doing the reverse will be much harder. Much of the information when exploding blocks is lost. Detecting identical objects is possible, but the original block object coordinate system is lost. It could work if this information and parent child relation stays stored on the object, perhaps.

Yes, this is the challenge.

Right now this is a best used as a one directional operation. So much of the orginaizational information is lost when put in layers.

Layers are supported in STEP, so the layers technically could be saved back into the STEP file as one to one representation of the exploded model. This would leave it up to the reading software to determine how to implodeblocks if they need, based on their program needs.

The Part and assembly hierarchy and information are saved in nested blocks. This includes:

  • Proper insertion points and transformation per part/assembly
  • Instancing build-in
  • Muitl-body vs single body parts described properly/
  • Blocks definition and each instance can contain parts data and names on the just as a part and assembly product does.

This pushes me to think the a proper way to edit blocks within the hierarchy is the correct way to go with this.

Stuffing all this extra userdatadata into the layer hierarchy and objects would be fragile at best. It would require someone to really monitor what was happening in the model editing it.

This is what drives me to think editing within a part tree with decent editing control is really the answer.

Of course then there is the idea to do a partial explode, use some layers and some blocks. Although, no there is quite a few settings to control that schema.

Just ask Rhino AI to import and do whatever you need :man_shrugging:t2:

Yes, and that is an interesting one. In that case using AI to be able to modify the approach based on project, the model and the data required. So, in fact there would be no single approach, but only an approach for that time. It really makes things easier, since from one situation to the next you could be flexible.

It is something that standard approaches cannot really accomplish.

I mainly need to deal with step assemblies at work.

My company doesn’t allow any kind of external conection to anything, even pip install from python is blocked.

So I guess is time for me to pay some Claude subscription and try to rework my script at home so I can have it at work :clown_face: