how can I programmatically create an equipment prototype, set it in modelling scope and add some components to it?
The first two lines of the following code do load the components to the same level as the EP. The third line throws an TxNotImplementedException.
TxInsertComponentCreationData data = new TxInsertComponentCreationData(subcomponent.InstanceName, path);
ITxComponent comp = root.InsertComponent(data);
ep.AddObject(comp); // ep is of type TxComponent and represents the Equipment Prototype.