AutoCAD 2013/2014/2015

AutoCAD 2013/2014/2015

Reply
Distinguished Contributor
Anthony
Posts: 387
Registered: ‎10-03-2011
Message 1 of 6 (194 Views)
Accepted Solution

Looking for a way to calc lengths of multiple blocks

194 Views, 5 Replies
07-24-2012 01:08 AM

Are there any working .arx files or lisp routines that would enable me to calculate a total length of multiple blocks ? I know there is TLEN out there but this does't work for blocks, I need something that will calc combined lenghts of my user defined blocks which are basically simple lines of varying lenghts. Thanks

Anthony Goodwin ~ Cad Manager/Senior Designer
Autodesk Inventor Professional 2013 SP2 64-Bit Edition
Windows 7 HP Z400, Intel Xeon W3550 3.07GHz
12.0GB RAM, ATI FirePro V4800 (FireGL)

The attached lisp should work.

*Expert Elite*
dbroad
Posts: 1,648
Registered: ‎08-16-2007
Message 2 of 6 (184 Views)

Re: Looking for a way to calc lengths of multiple blocks

07-24-2012 04:57 AM in reply to: Anthony

Blocks don't have a length property.  What are you tabulating?  Does the block contain a single line?

Distinguished Contributor
Anthony
Posts: 387
Registered: ‎10-03-2011
Message 3 of 6 (177 Views)

Re: Looking for a way to calc lengths of multiple blocks

07-24-2012 07:10 AM in reply to: dbroad

Thanks yes I realize blocks do not have a length, I just thought there might be a lsp routine or some similar arx function which could identify the lengths of the plines within the blocks and provide a total. My blocks only contain one single pline with a predetermined length.

Anthony Goodwin ~ Cad Manager/Senior Designer
Autodesk Inventor Professional 2013 SP2 64-Bit Edition
Windows 7 HP Z400, Intel Xeon W3550 3.07GHz
12.0GB RAM, ATI FirePro V4800 (FireGL)
*Expert Elite*
dbroad
Posts: 1,648
Registered: ‎08-16-2007
Message 4 of 6 (155 Views)

Re: Looking for a way to calc lengths of multiple blocks

07-25-2012 06:20 AM in reply to: Anthony

The attached lisp should work.

Distinguished Contributor
Anthony
Posts: 387
Registered: ‎10-03-2011
Message 5 of 6 (147 Views)

Re: Looking for a way to calc lengths of multiple blocks

07-25-2012 08:58 AM in reply to: dbroad

Perfect ! Just what I was looking for, works a treat. Many thanks. :smileyhappy:

Anthony Goodwin ~ Cad Manager/Senior Designer
Autodesk Inventor Professional 2013 SP2 64-Bit Edition
Windows 7 HP Z400, Intel Xeon W3550 3.07GHz
12.0GB RAM, ATI FirePro V4800 (FireGL)
*Expert Elite*
dbroad
Posts: 1,648
Registered: ‎08-16-2007
Message 6 of 6 (138 Views)

Re: Looking for a way to calc lengths of multiple blocks

07-25-2012 11:07 AM in reply to: Anthony

You're welcome.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.