AutoCAD 2013/2014/2015

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

Looking for a way to calc lengths of multiple blocks

160 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)
*Expert Elite*
dbroad
Posts: 1,516
Registered: ‎08-16-2007
Message 2 of 6 (150 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 (143 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,516
Registered: ‎08-16-2007
Message 4 of 6 (121 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 (113 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,516
Registered: ‎08-16-2007
Message 6 of 6 (104 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Connect with AutoCAD

Twitter

Facebook

Blogs

Pinterest

Youtube