StevJ Posted June 22, 2012 Posted June 22, 2012 Searching the CAD sites has been a bit frustrating, mostly because I’m not sure what to search for, but in the past few days of looking, I haven’t found anything even similar to what I want to do. Here’s the line of code: (Command "attdef" "" "NAME" "Enter NAME." textdat dscord "") There’s much more to this program, but in this case I must be careful what I share on a public forum. What the program does is assign an attributed region to single line text by collecting corner coordinates, and then prompt the user to select the text to assign the attributes to (textdat). What I would like to do is automatically insert a prefix to textdat. It currently works like this: pick the corners, select the text (let’s use the text DRAFT). Upon selecting the text, the program opens the attribute edit window for further entries, with the word DRAFT properly placed on a line in the edit window. My wish is to have characters like “Z@”, minus the quotes, inserted before the text DRAFT in the edit window so that it when the edit window opens , the text Z@DRAFT would be in the edit window. Is this possible, and can someone please show me how? I have been able to get one or the other, but getting them both has been out of reach for my poor program skills. Thanks, Steve Quote
pBe Posted June 22, 2012 Posted June 22, 2012 Sounds easy enough. ...pick the corners.... Attribute blocks selection? Upon selecting the text, the program opens the attribute edit window for further entries, with the word DRAFT properly placed on a line in the edit window The "Edit Attributes" window? Quote
StevJ Posted June 22, 2012 Author Posted June 22, 2012 (edited) The "Edit Attributes" window? Yes. DDATTE or ATTEDIT attribute editor Steve Edited June 23, 2012 by StevJ 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.