Extending product function with VBA > The System Architect object model > Object model classes > MetaProperty class
  
MetaProperty class
The MetaProperty object allows you to retrieve information about each property of a specific object in the encyclopedia. This object corresponds to the Property keyword in saprops.cfg and usrprops.txt files.
This graphic is described in the surrounding text.
Attributes
The following properties can all be retrieved using this example and by replacing name with one of the described properties.
Dim sa As SA2001.Application
Set sa = New SA2001.Application
With sa.Encyclopedia.MetaModel.MetaClasses.Item(1).SupportedMetaItems.Item(1).MetaProperties.Item(1)
Debug.Print .NameEnd With
Set sa = Nothing
AltLabelLong
The Alternative System Architect long label for the property.
Data type: String
Read-only
AltLabelShort
The Alternative System Architect short label for the property.
Data type: String
Read-only
Class
The class type of the parent object of the property . Also known as the Major Type Number.
Data type: Long
Read-only
Default
The default value set for the property on first use.
Data type: String
Read-only
EditFlags
The number of properties that must be filled in for a property.
Data type: Long
Read-only
EditLength
The edit length of the property.
Data type: Long
Read-only
EditType
See table below for a list of SAEditTypes
Data type: String
Read-only
EditTypeNum
See table below for a list of SAEditType numerical constants.
Data type: Long
Read-only
Help
The help text set for this property.
Data type: String
Read-only
HelpID
The ID number of the help text.
Data type: Long
Read-only
Key
Whether the property is a key or not.
Data type: Boolean
Read-only
KeyedBy
The property is keyed by another property or not.
Data type: SACollection
Read-only
Label
The standard System Architect label for the property.
Data type: String
Read-only
MetaItem
Provides access to the parent MetaItem object.
Read-only
Name
The name of the property.
Data type: String
Read-only
OfFlags
The number of flags for the property.
Data type: Long
Read-only
OfMajorType
The numerical constant of the parent objects class.
Data type: Long
Read-only
OfMajorTypeName
The type name of the parent objects class.
Data type: String
Read-only
OfMinorType
The current parent objects numerical type constant.
Data type: Long
Read-only
OfMinorTypeName
The current parent objects type name.
Data type: String
Read-only
OfRelateType
The parent objects relationship number.
Data type: Long
Read-only
RangeMax
The maximum edit range value.
Data type: Long
Read-only
RangeMin
The minimum edit range value.
Data type: Long
Read-only
Required
The required property for the object.
Data type: Long
Read-only
TypeNumber
The type number of the parent object.
Data type: Long
Read-only
EditType
Number
Description
Text
1
The property defined as text can be a list, or any alphanumeric characters typed in by the user.
Date
2
The length of the property must be 10 characters and is based on the date format set in Windows.
Numeric
3
Specifies that the property must contain values that are numbers.
Boolean
4
The property has one of two values: True (T) or False (F), and will appear in a definition dialog as a check box.
Expression
5
The value of the property must be entered as a series of strings separated by the + sign. This word has been replaced by EXPRESSIONOF.
Minispec
6
A property whose value expresses the processing logic of a process symbol. Minispecs are written using a formal syntax often referred to as Structured English.
Time
7
The property will contain a time stamp, in the notation appropriate to the time format defined to Windows.
ListOf
8
Forms a one-to-one or many relationship between the current definition type and the definition type named after the ListOf setting for all items in the list property.
ExpressionOf
9
Forms a one-to-one or many relationship between the current definition type and the definition type named after the ExpressionOf setting for all items which exist in the property.
OneOf
10
Forms a one-to-one relationship between the current definition type and the definition type named after the OneOf setting for the item that exists in the property.
TemplateOf
11
Syntax of a trigger template.
ParmListOf
12
Forms a one-to-one or many relationship between the current definition type and the definition type that is specified by its name and parameters and named after the ParmListOf setting for all items in the list property.
ParmOneOf
13
Forms a one-to-one relationship between the current definition type and the definition type that is specified by its name and parameters and named after the OneOf setting for the item that exists in the property.
See also
Object model classes