I have an iges model that contains some entity groupings (IGES type 406). When I read this model using HOOPS Exchange, these groupings come in the form of ‘Layers’. In my program, I’d like to make use of these layers by grouping all the entities that are associated with them.
I can see that, using CascadedAttributes, I can get the ID of the layer that an entity (e.g. surface) is associated with. However, I can’t see how I can then use this ID to access the layer pointer without having already kept a list of the layers. Is there a way that I can get the pointer of a layer from its ID, or do I need to keep a list of the layers and loop through them until I find the one whose ID matches?