ilenia Posted January 8 Posted January 8 Hello, I have a block named "A". I can copy this block in a defined position and rotation with the following code: (command "-insert" "A" "1,1" 1 1 0) Many forums say that is also possibile to insert automatically the content of the attribute (NAME) using this code: (command "-insert" "A" "1,1" 1 1 0 "cir") In this case the attribute is NAME and its content is cir. If i try to run this code, AutoCAD doesn't insert automatically the content, it asks to type it manually, as you can see in the screenshot. How can I solve? Thank you! Quote
BIGAL Posted January 8 Posted January 8 There are 2 variables that control this action ATTREQ & ATTDIA. ATTREQ will allow or stop input of attributes. ATTDIA controls the dcl display You home work is have a look at help, HINT the values are 0 or 1 using (setvar 'ATTREQ x) 1 Quote
Emmanuel Delay Posted January 10 Posted January 10 Oh, never heard of ATTREQ. This could be useful Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.