Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Acad 11 vs 12.....Inserting Block with Attr....Different behaviour

1 REPLY 1
SOLVED
Reply
Message 1 of 2
jerry.bryant
447 Views, 1 Reply

Acad 11 vs 12.....Inserting Block with Attr....Different behaviour

I’ve got a simply routine that inserts a block with attributes….allowing the Dialog Box to pop-up for user to enter Attr Values.

 

(setvar "attdia" 1)

(setvar "attreq" 1)

(command "_insert" title_box "0,0" ins_sf ins_sf 0.0)

 

Works fine in AutoCAD 2011….dialog Box pops up, user enter values.

 

In AutoCAD 2012, it stays with the command line prompts

I can’t find any differences in the SYSVARS that would cause this.

Any ideas?

Thx

Jerry Bryant
"Swing hard and hope you hit it!"
1 REPLY 1
Message 2 of 2
hmsilva
in reply to: jerry.bryant

Try

(setvar "attdia" 1)
(setvar "attreq" 1)
(initcommandversion)
(command "_.-insert" title_box "0,0" ins_sf ins_sf 0.0)

 

hope that helps
Henrique

EESignature

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

Post to forums  

Autodesk Design & Make Report

”Boost