AutoCAD 2013/2014/2015

AutoCAD 2013/2014/2015

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

Looking for a way to calc lengths of multiple blocks

182 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,625
Registered: ‎08-16-2007
Message 2 of 6 (172 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 (165 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,625
Registered: ‎08-16-2007
Message 4 of 6 (143 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 (135 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,625
Registered: ‎08-16-2007
Message 6 of 6 (126 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!