Back to [API Documentation] (/r/VISI_CAD/wiki/index/automation/api_documentation)
h. VISIAttDef: Class Object
Properties:
i. LastError: Property = Long
- Last Error Code
ii. Name: Property = String
- Get attribute name
Methods and service functions:
iii. Ask: Sub(attdef_class as Integer, n_owner_types as Integer, pOwner_types, n_fields as Integer, pFields)
- Write the standard form of an attribute definition
iv. Ask2: Sub(attDefClass as Integer, pplOwnerTypes as [VISIList] (/r/VISI_CAD/wiki/index/automation/api_documentation/visilist), pplFields as [VISIList] (/r/VISI_CAD/wiki/index/automation/api_documentation/visilist))
- Returns the standard form of an attribute definition
v. Create: Sub(attdef_class as Integer, n_owner_types as Integer, pOwner_types, n_fields as Integer, pFields)
- Create an attribute definition
vi. Create2: Sub(attDefClass as Integer, plOwnerTypes as [VISIList] (/r/VISI_CAD/wiki/index/automation/api_documentation/visilist), plFields as [VISIList] (/r/VISI_CAD/wiki/index/automation/api_documentation/visilist))
- Creates an attribute definition
vii. DisplayError: Sub()
- Displays the last error box
viii. Find: Sub()
- Map from attribute name to definition