Jump to content

Multiple Instances of Text Attribute


Remlapw

Recommended Posts

I would like to know if it is possible to have a single attribute fill multiple strings of text. I have text that appears in more than one spot in a block of mine but when inserting the block i would like to be prompted once to fill the attribute. Is this possible? If so, how is it done?

 

 

Regards,

Remlapw

Link to comment
Share on other sites

Search for lisp + insert block, a basic lisp thats asks for attribute values first then inserts then populates the attributes accordingly.

Somethinkg like

 

[b]UNTESTESTED[/b]
(setq att1 (getstring "\nEnter attribute 1 detail"))
(setq att3 (getstring "\nEnter attribute 3 detail"))
(setq att2 "Project num")
(setq pt (getpoint "\n Pick point"))
(command "insert" Myblock pt 1 0 1 1 att1 att2 att3)
(princ "all done")

Link to comment
Share on other sites

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...