Customization > Automation Interface > Functions > For Modeler Items > Functions for Projects > GetClassProperties function (automation interface)
GetClassProperties function (automation interface)
Syntax:
GetClassProperties("<object type>")
Where:
<object type> is a string that specifies the object type for which class properties are returned.
The GetClassProperties function returns a string that lists the following properties of an object type:
Standard properties, such as Name and Type.
Text tab properties.
Tag Definition properties that have been applied to the object type, or applied to any items of that type. Tag Definition properties that are listed may not be available to all items of the specified type.
The returned string contains the following information about each property:
The name of the property.
The role of the property, either attribute or association.
Access to the property, either read-only (ro), read/write (rw) read-only private (rop) or read/write private (rwp).
Multiplicity rules, 0, 0+, 1+, 1.
A paragraph break.
To use the GetClassProperties function, the Dictionary must be loaded.
If you want to list the properties of a specific object, you can use the Property Descriptors argument for that object.
If you want to list only the extended properties of an object, you can use the GetExtendedClassProperties function or Extended Property Descriptors argument.
Example
This example displays the property descriptors of the Actor object type.
strDescriptors = ActiveProject.GetClassProperties("Actor")
Call Msgbox(strDescriptors)
Was this helpful?