Add (PropertyTypes)


Description

Declare a new property type by adding a PropertyType object to a model's PropertyTypes collection.

Syntax

somePropertyTypes.Add(Name, Description, PropTypeType, bArray, EnumValues)

 

Parameter Description
somePropertyTypes a PropertyTypes collection
Name Optional. A string specifying a name for the new property type. If no string or the empty string is given, a new name is generated.
Description Optional. A string specifying a description of the new property type. If no string is given, the empty string is used.
PropTypeType Optional. A  PROPTYPETYPE value specifying the "typetype" of new property type.  If no value is given,  pttReal is used, meaning that the values with this property type must be double-precision floating-point numbers. The other possible values are pttString and pttEnumerated.
bArray Optional. A Boolean value. If true, the values with this property type are arrays. By default, the values are scalars.
EnumValues A string of comma-separated enumeration values. Used when PropTypeType has value pttEnumerated.

Return Value

The newly created PropertyType object.

collection.

Example

See: Properties: an Overview

Applies To

PropertyTypes