Cancel
Showing results for 
Search instead for 
Did you mean: 

Class Libary (Attribute List)

Valued Contributor
Valued Contributor

Hi,

 

I need to rebuild the MaterialFlow elements as classes in C#. Is there a method to get all the attributes of an object as string ? Or is there a list with all Attributes - In the help there are only a view but not all attributes listed.

 

(The problem is that I cant copy and past them from the class window you get pressing F8)

 

Help would be really nice Smiley Happy

4 REPLIES

Re: Class Libary (Attribute List)

Legend
Legend

Do you want the user-defined attributes or every attribute?

 

You can use the command putAttributeNamesIntoTable to get all the attributes and their names.

 

Then you can traverse this table to get the values of the current object.

Re: Class Libary (Attribute List)

Valued Contributor
Valued Contributor

cool this is what I was surching for thx

 

but i have another question Smiley Wink

Do you know how the class herachie works ? I dont get it because Source and SingleProc have both a Controll tab but not the same Attribute. For example Source has not "SetupCtrl" but SingleProc and they both have "ExitCtrl" (but both are listed in the index under help). It would be easyer if I could group the Attributes and work with inheritance.

Re: Class Libary (Attribute List)

Legend
Legend
No sorry, I have no clue about how the objects are related.

I think you have to check for which attributes are common and make that the base class and then make the others as sub classes.

Re: Class Libary (Attribute List)

Valued Contributor
Valued Contributor

ok then thx for your help