Accessing Data from the Draft Database
- Last UpdatedDec 09, 2025
- 2 minute read
All Draft (PADD) attributes are accessible. For example, attribute ABCD of the current annotation element would be accessed by code #ABCD. In addition the name of any Draft element can be accessed. For example:
|
#VIEW |
The name of the View owning the annotation element |
|
#DRWG |
The name of the Drawing owning the annotation element |
Attributes of other Draft elements can be accessed using the FROM qualifier. For example:
|
#AUTH<FROM DRWG> |
Generates the Author of the Drawing owning the annotation elements. See Extracting Attribute Data from any Specified Element for full details of the FROM qualifier. |
The following special codewords are also available:
|
#DTITL |
Drawing title, equivalent to #TITL<FR DRWG> |
|
#STITL |
Sheet title, equivalent to #TITL<FR SHEE> |
|
#VTITL |
VIEW title, equivalent to #TITL<FR VIEW> |
Special functionality is provided for the following codewords that extract revision data:
|
#APPR |
Approve |
|
#APDT |
Approval date |
|
#RVSN |
Revision |
|
#RVDT |
Revision date |
|
#RVAU |
Revision author |
These codewords extract their data from the first REVI element in the Sheet’s list. If the qualifier <FR DRWG> is appended then data will be extracted from the first REVI element in the Drawing’s list. To extract data from a specific REVI element a qualifier should be used. The REVI element can be specified by name, for example:
#RVAU<FR/REV3>
or the pseudo-reference array attributes SREVAY and DREVAY can be used. For example:
|
#RVDT<FR SREVAY[2]> |
Generates the revision date from the sheet's second revision |
|
#APPR<FR DREVAY[3]> |
Generates the approver from the drawing's third revision |
For further information of the SREVAY and DREVAY attributes, see Drawing Revisions.
For further information of the FROM qualifier, see Extracting Attribute Data from any Specified Element.