2008

Table Of Contents
Assigns text constants and AutoLISP expressions to a title block attribute.
Access:
From the Project menu, select Title Block Setup. Specify the title block link
method, enter a block name, and click OK. Click User Defined on the Title Block
Setup dialog box.
Lists the attributes and assigned text constant or
AutoLISP expression.
Current User-Defined Assignments
Modify an existing link by selecting it from the attrib-
ute list. To clear an existing link, select -none- from
the attribute list.
Attributes
Enter a text constant or an AutoLISP expression to
assign to the attribute. For example, you can assign
Text constant or AutoLISP expression
(getvar LOGINNAME) to attribute DWGBY, or you
can assign YourName to DWGBY.
Adds the text constant or AutoLISP expression to the
user-defined list.
Update list
Map AutoLISP values to the title block
You can vector to the title block system variable values or values extracted by
AutoLISP programs. For example, let's say that your system's environment
variable "USERNAME" contains a value that must show up on the drawing
title block. You set up your default.wdt file to map the AutoCAD Electrical
"LINE12" value to attribute "DWGBY" on your standard title block. Now you
want to automatically have LINE12 point at the USERNAME environment
variable so that, during title block update, the USERNAME value goes to LINE12
which, in turn, sends it on to the "DWGBY" attribute on the title block. Encode
the AutoLISP (getenv " ") function into the LINE12 value for your current
project description data.
Now when you run the Title Block update, make sure that LINE12 is selected.
During the update AutoCAD Electrical evaluates the expression (getenv
"USERNAME"), retrieves the environment value, and writes that value out to
724 | Chapter 11 Project-Wide Tools