Jump to content

Deleting un-used block attributes using Lisp


mlcadman

Recommended Posts

I am looking for some help.. I have a program that inserts a block and within that block there are many attributes. I would like to then have my program delete the un-used attributes. Can someone get me pointed in the right direction?

Link to comment
Share on other sites

why do you want to do this?

 

Once you have the block in the drawing with however many attributes you end up with, you won't be able to insert that block again with a different number of attributes. If you write the code to delete the unused attributes on insertion and your newly inserted block has fewer attributes than your previous block the previous block will be re-defined to the lower number of attributes.

 

Having said all that it shouldn't be too hard but I have forgotten all the LISP I ever knew so I'll let somebody else answer your question.

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