bim:attributeset-create-property


(bim:attributeset-create-property  asetName  propName  propLabel  propDesc  visible  [dataType])

This functions create a new Property propName within AttributeSet asetName using the (optional) propLabel Property label and with (optional) propDesc Property description; visibility status visible is mandatory, an optional preset data type for the property can be specified.

Arguments

asetName  (string) the name of the AttributeSet where to create the new Property

propName  (string) the name for the new Property to be created

propLabel  (string or NIL)  specifies the (optional) label for the new Property; if specified as NIL, the name will be used automatically

propDesc  (string or NIL)  specifies the (optional) description for the new Property, the description remains empty

visible  (T or NIL) the visibility status of the new Property

dataType  (optional, integer or NIL)  specifies the data type for the new property;

supported data types are : bool, integer, double, string (use bcBimTypeBool or bcBimTypeInteger or bcBimTypeDouble or bcBimTypeString), see Property DataType Constants

Return

T or NIL, indicating success or failure

Example

(bim:attributeset-create-property  "TestSet"  "TestProp" "---label---" NIL T)  T

Remarks

the "visible" status means whether the AttributeSet is visible in PropertiesPanel

Note

if dataType is omitted or NIL, the new property will be created with undefined property data  type (shown as "[Extended type]" in BimProperties dialog);
the effective property data type is then defined with the first assignment of a value by bim:attributeset-set-property



©  Bricsys NV. All rights reserved.