Cancel
Showing results for 
Search instead for 
Did you mean: 

How to add sub element to an equipment prototype through the API

Creator
Creator

Hi

 

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.

 

Thanks

4 REPLIES 4

Re: How to add sub element to an equipment prototype through the API

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi,

 

Please have a look into this Discussion.

 

Best regards

Patrick

Re: How to add sub element to an equipment prototype through the API

Creator
Creator

Hi

 

Yes this is to create an EP, I need to add sub nodes to the EP. Or is there a part I am missing

 

Regards

Re: How to add sub element to an equipment prototype through the API

Siemens Phenom Siemens Phenom
Siemens Phenom

what about this? (haven´t tested)

TxComponent eq = root.CreateEquipment(epData);
eq.AddObject(TxObject);
or
eq.AddObjects(TxObject);

Best regards

Patrick

Re: How to add sub element to an equipment prototype through the API

Creator
Creator

Hi

 

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.

 

Regards