I am trying to find a way to add sub element to an equipment prototype through the API. I can created the EP and sub elements but now I need to load it with sub elements. Manually this is done in the navigation tree but I dont know how to do it in the API.
what about this? (haven´t tested)
TxComponent eq = root.CreateEquipment(epData); eq.AddObject(TxObject); or eq.AddObjects(TxObject);
Ok I tested this and it does not create an EP prototype with the elements under it. It creates an EP instance with elements under it which seems to not be possible.