AutoCAD Electrical Forum
Welcome to Autodeskā€™s AutoCAD Electrical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Electrical topics.
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

Attribute dialog box does not display

1 REPLY 1
Reply
Message 1 of 2
wassapi
989 Views, 1 Reply

Attribute dialog box does not display

I am an occasional AutoCAD user.
When I open an existing AutoCAD drawing, click the "Insert Component" button, at the bottom of the AutoCAD screen, the command line displays "Enter new value for ATTREQ <1>:" instead of display a dialog box with selections.
I searched the AutoCAD web site and found the following message stated that I have to modify the AutoLISP file.
But the problem is that I don't know which *.LSP file to modify. I tried the file: "attredef.lsp". What's in the file did not match exactly to what the following message indicated. It didn't work either. Anyone can help me by identify what is the specific file name, and where is the described text locate.

Published date: 1999-09-29
ID: TS32444
Applies to:
AutoCADĀ® 2000
Issue

The following AutoLISP code does not work correctly even though the same syntax is functional in AutoCAD Release 14:


(setvar "ATTREQ" 1)
(setvar "ATTDIA" 1)
(command "-insert" "MyBlock" InsertionPoint Xscale Yscale Zscale Rotation)


The code inserts a block with attributes, then displays the Enter Attributes dialog box (where the attributes are entered), and the block is placed in the drawing.

Solution

This functionality is new in AutoCAD 2000. The Insert Attribute dialog box will not display when called from an AutoLISP function unless ATTDIA is set to 1, and the INITDIA function is called prior to executing the -INSERT command.

To do this, the AutoLISP code needs to be as follows:


(setvar "ATTREQ" 1)
(setvar "ATTDIA" 1)
(initdia)
(command "-insert" "MyBlock" InsertionPoint Xscale Yscale Zscale Rotation)
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: wassapi

What version of AutoCAD Electrical do you have (Acade 2005, acade 2006,
Acade 2007)?

Also, when this happens, could you hit the F2 key to get to the text screen
and see if there are any other messages above the message: "Enter new value
for ATTREQ <1>:"

It is acting like it is unable to find the menu file that controls the
Insert Component dialog. This file woudl be name something like:
ACE_JIC_MENU.DAT

Steve

wrote in message news:5153487@discussion.autodesk.com...
I am an occasional AutoCAD user.
When I open an existing AutoCAD drawing, click the "Insert Component"
button, at the bottom of the AutoCAD screen, the command line displays
"Enter new value for ATTREQ <1>:" instead of display a dialog box with
selections.
I searched the AutoCAD web site and found the following message stated that
I have to modify the AutoLISP file.
But the problem is that I don't know which *.LSP file to modify. I tried
the file: "attredef.lsp". What's in the file did not match exactly to what
the following message indicated. It didn't work either. Anyone can help me
by identify what is the specific file name, and where is the described text
locate.

Published date: 1999-09-29
ID: TS32444
Applies to:
AutoCADĀ® 2000
Issue

The following AutoLISP code does not work correctly even though the same
syntax is functional in AutoCAD Release 14:


(setvar "ATTREQ" 1)
(setvar "ATTDIA" 1)
(command "-insert" "MyBlock" InsertionPoint Xscale Yscale Zscale Rotation)


The code inserts a block with attributes, then displays the Enter Attributes
dialog box (where the attributes are entered), and the block is placed in
the drawing.

Solution

This functionality is new in AutoCAD 2000. The Insert Attribute dialog box
will not display when called from an AutoLISP function unless ATTDIA is set
to 1, and the INITDIA function is called prior to executing the -INSERT
command.

To do this, the AutoLISP code needs to be as follows:


(setvar "ATTREQ" 1)
(setvar "ATTDIA" 1)
(initdia)
(command "-insert" "MyBlock" InsertionPoint Xscale Yscale Zscale Rotation)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

ā€Boost