When you use the command to insert a block with attributes you must address the following system variables.
;|
ATTDIA
Controls whether the -INSERT command uses a dialog box for attribute value entry. See "INSERT Command Line."
0 Issues prompts on the command line
1 Uses a dialog box
ATTMODE
Controls display of attributes.
0 Off: Makes all attributes invisible
1 Normal: Retains current visibility of each attribute: visible attributes are
displayed; invisible attributes are not
2 On: Makes all attributes visible
ATTREQ
Determines whether the INSERT command uses default attribute settings during insertion of blocks.
0 Assumes the defaults for the values of all attributes
1 Turns on prompts or dialog box for attribute values, as specified by ATTDIA
TEXTEVAL
Controls the method of evaluation of text strings.
0 All responses to prompts for text strings and attribute values are taken literally
1 Text starting with an opening parenthesis [ ( ] or an exclamation mark (!) is
evaluated as an AutoLISP expression, as for nontextual input
|;
(setq sysattdia (getvar "ATTDIA"))
(setq sysattreq (getvar "ATTREQ"))
(setq systxteva (getvar "TEXTEVAL"))
(setvar "ATTDIA" 0)
(setvar "ATTREQ" 0)
(setvar "TEXTEVAL" 0)
<do your lisp>
(setvar "ATTDIA" sysattdia)
(setvar "ATTREQ" sysattreq)
(setvar "TEXTEVAL" systxteva)
;;================================================================
;|
Alternately you can use the sys var EXPERT
EXPERT
Type: Integer
Not saved
Initial value: 0
Controls whether certain prompts are issued.
0 Issues all prompts normally.
1 Suppresses "About to regen, proceed?" and "Really want to turn the current layer off?"
2 Suppresses the preceding prompts and "Block already defined. Redefine it?" (BLOCK) and "A drawing with this name already exists. Overwrite it?" (SAVE or WBLOCK).
3 Suppresses the preceding prompts and those issued by the LINETYPE command if you try to load a linetype that's already loaded or create a new linetype in a file that already defines that linetype.
4 Suppresses the preceding prompts and those issued by UCS Save and VPORTS Save if the name you supply already exists.
5 Suppresses the prompt, "That name is already in Use, redefine it?" issued by the -DIMSTYLE Save option when you supply the name of an existing dimension style.
When a prompt is suppressed by EXPERT, the operation in question is performed as
though you entered y at the prompt. Setting EXPERT can affect scripts, menu
macros, AutoLISP, and the command functions.
|;