About the Title Block Update Setup

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 values

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.

Note: The Title Block Setup utility maps the appropriate codes based on selections on the Title Block Setup dialog box.

Map AutoLISP Values to Title Block Attributes

You can map system variable values, or values extracted by AutoLISP programs, to attributes on the title block.

  • Assign a variable to one of the project description lines which then maps to an attribute on the title block.
  • Map a variable directly to an attribute on the title block
Note: If the expression is a full AutoLISP function, it must return a string value (not an integer, real, list, or nil value). The program must be encoded into the project description data as "(load 'filename.lsp')." It must be self-starting upon load.

Set up multiple descriptions

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.

Note: The Title Block Setup command does not support this method. Use a text editor, such as Notepad, to edit your WDT file manually. Use the DDEDIT command to edit the WD_TB attribute definition manually.

Plotting

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:

  • The title block maps PLOTDATE (MM:DD:YYYY format) to the DATE attribute.
  • The DATE attribute has a prompt value of "Date: ".
  • For a plot created on January 1, 2012 the attribute updates to "Date: 01/01/2012".