I’m not seeing a way to do this but I can’t say I’ve ever tried to do this before so I may be missing something.
Basically what I’m trying to do is create a group extruded in the X direction so that the material is applied properly. Then I would like to somehow rotate it so it is vertical and then grab the handle for the group’s definition and generate copies with the add_instance method.
One way to do this is to simply leave the original group unrotated and then rotate each instance vertical as they are created but I would like to try and eliminate this additional transformation if possible.
I don’t see a way to do this unless I somehow can change the definitions axes.
Note, that the 90 degree rotation only rotates the initial group or instance it does not rotate the definition. When I create new instances with the vbar_comp definition they are not rotated by the 90 degrees. Somehow I need to rotate the definition itself.
A definition does not have a transformation, only instances do. You have to transform the contents of the definition’s entities collection to change its axes.
Changing the axis of a group/component is effectively applying a transformation. Two in fact, as you need to transform the definition content, then each instance with the inverse transform.