Jump to content

insert block with tags (attributes)


rodrigo_sjc_sp

Recommended Posts

How to insert a block and its attributes?

I did the following command

 

(command "insert" (strcat BLOCKNAME) pause "" "" pause)

 

More when I run the command and tags only appear

explode if I do, is there any way to insert the block

without having to blow to see the tags?

Link to comment
Share on other sites

This is unclear. Did you resolve your problem? TAGS do not normally show up for the user when INSERTing, but rather the prompts. However, they do show up under Properties and in the Enhanced Attribute Editor.

Link to comment
Share on other sites

Assuming I have understood the issue, the easiest solution using your existing code would be to set ATTREQ to 1 and populate the attributes directly through the -INSERT command, e.g.:

 

(setq att (getvar 'attreq))
(setvar 'attreq 1)
(command "_.-insert" blockname "_S" 1.0 "\\" "\\")
(while (= 1 (logand 1 (getvar 'cmdactive))) (command "Attribute Value"))
(setvar 'attreq att)

Alternatively, you can use any of these functions to modify the attributes values of the block reference following insertion.

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