Richards766 Posted May 24, 2011 Posted May 24, 2011 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. Quote
CyberAngel Posted May 24, 2011 Posted May 24, 2011 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. Quote
Richards766 Posted May 24, 2011 Author Posted May 24, 2011 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. Quote
CyberAngel Posted May 24, 2011 Posted May 24, 2011 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! Quote
Recommended Posts
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.