• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD 2013/2014 DWG Format

    Reply
    Distinguished Contributor
    Anthony
    Posts: 351
    Registered: ‎10-03-2011
    Accepted Solution

    Looking for a way to calc lengths of multiple blocks

    131 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

    Please use plain text.
    *Expert Elite*
    Posts: 845
    Registered: ‎08-16-2007

    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?

    Please use plain text.
    Distinguished Contributor
    Anthony
    Posts: 351
    Registered: ‎10-03-2011

    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.

    Please use plain text.
    *Expert Elite*
    Posts: 845
    Registered: ‎08-16-2007

    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.

    Please use plain text.
    Distinguished Contributor
    Anthony
    Posts: 351
    Registered: ‎10-03-2011

    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:

    Please use plain text.
    *Expert Elite*
    Posts: 845
    Registered: ‎08-16-2007

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

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

    You're welcome.

    Please use plain text.