How to add your knowledge

Title Block setup overview

    Table of contents
    No headers

    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.

    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.

    NoteThe 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.

     

    References

    Setup title block update

    Creates or modifies the link between title block attributes and project and drawing values.

     Ribbon: Project tabOther Tools panelTitle Block Setup.
     Menu: ProjectsTitle Block Setup
     Command entry: AESETUPTITLEBLOCK

    The link between AutoCAD Electrical and the title block is defined by either an external WDT text file or by an invisible WD_TB attribute added to your existing title block. If the WDT method is used, you can use a project-specific file or the Default.wdt file. In either case, the title block attribute names are mapped to the project-wide LINEx values and to several drawing-specific setting values.

    Method 1

    Project.wdt

    Create a project-specific mapping file that only references for drawings in the current project. The file name is the same as the project name with a .wdt extension.

    DEFAULT.WDT

    Create a default mapping file in the project's subdirectory that is referenced if a project-specific file is not found and if a WD_TB attribute is not present in the title block.

    DEFAULT.WDT

    Create a default mapping file in the default AutoCAD Electrical subdirectory that is referenced if a project-specific file is not found and if a WD_TB attribute is not present in the title block.

    Note

    When using this method, open a drawing that contains the title block inserted as a block before running the Title Block Setup.

    Method 2

    The title block contains an invisible attribute with a value that defines the mapping between the title block and AutoCAD Electrical. No external WDT file is required because the mapping information is self-contained on the title block.

    The attribute name = WD_CODE mapping information is encoded on the WD_TB attribute on the title block of the drawing. The value of the attribute gives the mapping information in the format of a semi-colon delimited text string. For example:

    TITLE-1=LINE1;TITLE-2=LINE2;SH=SHEET;SH_TOTAL=SHEET_MAX

    where project wide values for LINE1 and LINE2 codes update attributes TITLE-1 and TITLE-2. The %S sheet value is copied to the title block attribute SH, and the number of drawing files in the project is written out to attribute SH_TOTAL.

    Note

    When using this method, open the title block base drawing that contains the attribute definition objects before running the Title Block Setup.

    Title block setup

    Defines what pieces of AutoCAD Electrical project data or drawing specific data that AutoCAD Electrical should copy to that attribute. The information is written to the WDT file or the WD_TB attribute depending on the method chosen.

     Ribbon: Project tabOther Tools panelTitle Block Setup.
     Menu: ProjectsTitle Block Setup
     Command entry: AESETUPTITLEBLOCK

    Specify the title block link method, enter a block name, and click OK.

    Title block name

    Lists the available title block names.

    Add New

    Adds new title blocks to the project. Enter a block name. For multiple blocks, separate with a comma. For example, DEMOTBLK,DEMOTBLK2,DEMOTBLK3

    Edit

    Edits the selected title block.

    Remove

    Removes the selected title block.

    Pick on

    Selects an attribute directly on the drawing if you do not know the name of attribute.

    Attribute

    Specifies the attribute to use for the drawing, project, or plotting value. Select an attribute from the list.

    Project Values / Drawing Values / Plotting Values

    Shows the project, drawing-specific, and plotting values.

     

    Displays the first set of description lines

     

    Displays the previous set of description lines

     

    Displays the next set of description lines

     

    Displays the last set of description lines, where one of the lines has a value

    User Defined

    Maps attributes to text constants or AutoLISP values.

    Title block setup (user-defined)

    Assigns text constants and AutoLISP expressions to a title block attribute.

     Ribbon: Project tabOther Tools panelTitle Block Setup.
     Menu: ProjectsTitle Block Setup
     Command entry: AESETUPTITLEBLOCK

    Specify the title block link method, enter a block name, and click OK. Click User Defined on the Title Block Setup dialog box.

    Current User-defined Assignments

    Lists the attributes and assigned text constant or AutoLISP expression.

    Attributes

    Modify an existing link by selecting it from the attribute list. To clear an existing link, select -none- from the attribute list.

    Text constant or AutoLISP expression

    Enter a text constant or an AutoLISP expression to assign to the attribute. For example, you can assign (getvar “LOGINNAME”) to attribute DWGBY, or you can assign YourName to DWGBY.

    Update list

    Adds the text constant or AutoLISP expression to the user-defined list.