Jump to content

Recommended Posts

Posted

Hi,

 

Firstly I hope this post makes sense as I am a newbie to forums!

 

Ok, my problem is that I have a multiple blocks in my drawing and I would like to select certain obejects within these block from model space, i.e all lines = White, and then return their their combined length.

 

At the moment I have to explode all of the blocks, use qselect, run length.lsp to get the combined length of the selection and then undo the actions previous to the block explosion.

 

If there is a easier/better way of doing this I would be very greatful for the advice.

 

Thanks in advance.

Posted

If you are handy with AutoLISP, it should be fairly simple to run through all the block definitions, collect the proper objects, and add up the lengths.

 

If not, consider saving the drawing before doing all the explosions. Then, instead of undoing everything, you only have to reload the drawing.

Posted

Thanks for the reply CyberAngel.

I can vaguely follow basic LISP code but I have never written a program in this language before. I have been keen to learn AutoLISP lisp for sometime so this could be an ideal starting project.

Posted

Before you start writing code, try searching for a routine that does what you want. It may not be out there, but if it is, you've saved some time.

 

If you do develop the code, consider posting it here for others to use and refine.

 

And welcome to the forum!

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