AutoCAD Electrical can link project description lines and some of the drawing properties to attributes on the drawing title block . There are two methods:
During a title block update, AutoCAD Electrical follows this sequence to determine which method to use.
AutoCAD Electrical can map the following project and drawing specific values to attributes on the title block.
Mapping Code |
Description |
---|---|
LINEx |
project description line, where “x” is the project description line number |
SHEET |
sheet number value (the %S value) assigned in the Drawing Properties dialog box |
SHEETMAX |
number of drawings in the active project (the "N" value in title block "SHEET x of "N") |
DWGNAM |
drawing name value (the %D value) assigned in the Drawing Properties dialog box |
DD1 (or DWGDESC), DD2, DD3 |
the drawing descriptions assigned in the Drawing Properties dialog box |
DWGSEC |
optional Section code assigned in the Drawing Properties dialog box |
DWGSUB |
optional Subsection code assigned in the Drawing Properties dialog box |
FILENAME |
drawing file name without path or extension |
FULLFILENAME |
drawing file name with path and extension |
FILENAMEEXT |
drawing file name with .dwg extension only |
IEC_P |
Project value of the drawing assigned in the Drawing Properties dialog box |
IEC_I |
Installation value of the drawing assigned in the Drawing Properties dialog box |
IEC_L |
Location value of the drawing assigned in the Drawing Properties dialog box |
PLOTTIME |
current time (24-hr military format) |
PLOTTIME12 |
current time (12 hr am/pm format) |
PLOTDATE |
current date (MM:DD:YYYY format) |
PLOTDATEMMDDYY |
current date (MM:DD:YY format) |
PLOTDATEYYMMDD |
current date (YY:MM:DD format) |
PLOTDATEYYYYMMDD |
current date (YYYY:MM:DD format) |
You can also map user-defined values such as fixed text within quotes, environment variables, system variables, and AutoLISP variables.
You can map system variable values, or values extracted by AutoLISP programs, to attributes on the title block.
AutoCAD Electrical allows three description lines per drawing. If more description lines are needed, each description line can be broken into multiple pieces by the “|” character. Each piece is then mapped to a different attribute on the title block.
For example, to map the first description line to three attributes, use this format:
attrname1|attrname2|attrname3=DD1
Then, in the Description 1 value in the Drawing properties: drawing settings tab dialog box, delimit the value with “|” at the break points. For example, “Main cabinet|120VAC|PLC I/O”. The Update Title Block command splits this string of text across the three title block attributes.
If the title block setup maps any of the AutoCAD Electrical PLOT* values to attributes, these attributes update during plotting. If the attribute carries a prompt value, this value is used as a prefix.
For example: