Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Import and export of user defined attribute in of new user frame

Experimenter
Experimenter

Hi all,

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?

Thanks,

Omar

2 REPLIES 2

Re: Import and export of user defined attribute in of new user frame

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi Omar,

 

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.

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Import and export of user defined attribute in of new user frame

Experimenter
Experimenter
Hi Ralf,

Thank you for the solution,

It's OK Smiley Happy

Kind regards,
Omar