ELEFRONT : how to map back sub-block info to the main block?

Hello Keyu,

Good to see you have a go at it.

The parsing is rather easy, and this is the first thing I do in my definition :

In my case, as I want to do a custom “Block manager” that displays attributes, and a 3D view of any block defined in the model, HUMAN would not allow me to display info on blocks without instances.

Here’s the prototype of the tool I am working on :

I store the attributes of low-level blocks in the geometry defined in the block. That way, I can change the attributes and have them propagate in the blocks where they are nested.
For top-level blocks, attributes are stored in the block instances, which allows to have varying attributes per instance.

This works because it is consistent with our constructive logic : low-level parts are like clones at the fabrication level, whereas welded parts can belong to different phases, so we need the possibility to have a “per instance” value for cetain keys :

2 Likes