I developped a new frame that contains a huge number of user defined attribute.
This new frame or component it will be used many time in a principal Plant
I need to specify to each component in the principal layout new list of attribute.
My question is: Can we import the list of attribute for each component trough an XML or txt file in Plant simulation?
Solved! Go to Solution.
you can use the following method to list all custom attributes:
is do local AttributeCount := SingleProc.NumAttr; for local i := 1 to AttributeCount loop print SingleProc.getAttrName(i), ", ", SingleProc.getAttrType(i); next; end;
Instead of printing you can write them to a TableFile. Then you can use the method 'createAttr' to create these attributes at another object.