Create a User Defined Element Type Definition
- Last UpdatedDec 20, 2021
- 1 minute read
The creation of a User Defined Element Type (UDET) has many similarities to the creation of a User Defined Attribute (UDA) covered in the previous chapters of this document.
UDET definitions must be created in the dictionary database as members of a UDET group (UDETGR) or as members of a UDET world (UDETWL).
A typical Lexicon session could be as follows:
|
Example: |
|
|
NEW UDETWL /MYUDETWL1 |
|
|
NEW UDETGR /MYUDETGR1 |
|
|
NEW UDET /MYUDET |
Create new UDET |
|
UDNA 'TESTUDET' |
Name the new UDET |
|
BASETY EQUIP |
Base the new UDET on an equipment |
As with UDAs, the User Defined Attribute Name (UDNAME) attribute is used to hold the UDET name. The name will then be used for identification in the constructor modules.
Subsequently in constructor modules, elements of this type will be identified with a prefix colon, for example.
:TESTUDET
The UDNAME name may be up to 50 characters long. Unlike UDAs there is no minimum abbreviation.
A UDET must be based on any visible element type in the Model, Draw, Catalog and Property DBs. The BASETY attribute indicates what system type the UDET is derived from.