Jump to content

Recommended Posts

Posted

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

Posted

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?

 

 

Posted (edited)

The "Edit Attributes" window?

 

 

 

Yes. DDATTE or ATTEDIT attribute editor

 

Steve

Edited by StevJ

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...