Information from a Drawing
- Last UpdatedJan 08, 2026
- 2 minute read
For every drawing it is possible to extract detailed information about all objects, shown on the drawing.
The following is an overview of all relevant keywords: Datext_Drawing.xls
Note: It is possible to specify the source data bank for the DRAWING keyword. This is done by suffixing the drawing name with the '@' sign followed by the "drawing type". If no optional data bank is given, the default data bank is "General Drawing" (SB_PDB).
The drawing type can be given as:
-
the logical name of the data bank ( for example, SB_PDB)
-
the description of the data bank (for example, "General Drawing")
-
an integer corresponding to the type ( 1 for SB_PDB, 2 for SBD_BACKUP etc)
Example 1
DRAWING( 'XYZ'*).NAME
DRAWING( 'XYZ@SB_PDB'*).NAME
DRAWING( 'XYZ@General Drawing'*).NAME
DRAWING( 'XYZ@1'*).NAME
Equivalent ways to extract the names of all drawings starting with XYZ in the SB_PDB data bank.
|
Example 2 |
|---|
|
DRAWING( 'XYZ@SBD_PICT'*).NAME |
Equivalent ways to extract the names of all drawings starting with XYZ in the SBD_PICT data bank.
|
Example 3 |
|---|
|
DRAWING( 'XYZ@SB_PDB'*, 'ABC@SBD_PICT'*).NAME |
Equivalent ways to extract the names of all drawings starting with XYZ in the SB_PDB data bank and all drawings starting with ABC in the SBD_PICT data bank.
|
Example 4 |
|---|
|
DRAWING( 'XYZ90' : 'XYZ99').NAME |
Equivalent ways to extract the names of all drawings in the interval XYZ90 to XYZ99 in the SB_PDB data bank and three equivalent ways to extract the names of all drawings in the interval XYZ90 to XYZ99 in the SBD_PICT data bank.
Note: When giving intervals, the optional drawing type is given in the lower (first) limit. A drawing type in the upper (second) limit will be ignored.
Example:
DRAWING( 'XYZ90@SBD_PICT' : 'XYZ99@SB_PDB').NAME
is the same as:
DRAWING( 'XYZ90@SBD_PICT' : 'XYZ99').NAME
and:
DRAWING( 'XYZ90' : 'XYZ99@SBD_PICT').NAME
is the same as:
DRAWING( 'XYZ90@SB_PDB' : 'XYZ99').NAME