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

    AutoCAD 2010/2011/2012 DWG Format

    Reply
    *Expert Elite*
    Posts: 1,555
    Registered: ‎05-21-2008

    Re: Autocad gives the wrong area for a polyline

    07-17-2012 02:38 PM in reply to: TerryDotson

    Wait a min! Didn't you say

    "The AREA command can return an invalid number, while the underlying API (Polyline Object .Area Property) returns the correct value."

     

    ?

     

    I'm getting the wrong answer both ways in that example, unless I'm misunderstanding you?

    __________________________________________________________
    Win 7 Pro, 32 bit; Intel Core i5 @ 2.80GHz; 4GB RAM—Civil 3D 2008 & 2011
    __________________________________________________________
    Credit where credit is due! Give kudos or accept as solution whenever you can.
    Please use plain text.
    Valued Mentor
    TerryDotson
    Posts: 388
    Registered: ‎06-06-2010

    Re: Autocad gives the wrong area for a polyline

    07-17-2012 04:41 PM in reply to: troma

    I'm getting the wrong answer both ways in that example, unless I'm misunderstanding you?

     

    Unless you are using some form of programming language to obtain the Area property supplied by the API, you are not seeing it (the correct value).  For example this small LISP routine will dump the properties of an object, including the area.

    Please use plain text.
    *Expert Elite*
    Posts: 1,555
    Registered: ‎05-21-2008

    Re: Autocad gives the wrong area for a polyline

    07-18-2012 05:50 AM in reply to: TerryDotson

    I tried to use that lisp, I get:

     

    Command: DUMP
    Select Object: ; error: bad argument type: lentityp nil

     

    Any ideas?

    __________________________________________________________
    Win 7 Pro, 32 bit; Intel Core i5 @ 2.80GHz; 4GB RAM—Civil 3D 2008 & 2011
    __________________________________________________________
    Credit where credit is due! Give kudos or accept as solution whenever you can.
    Please use plain text.
    *Expert Elite*
    Posts: 842
    Registered: ‎08-16-2007

    Re: Autocad gives the wrong area for a polyline

    07-18-2012 09:31 AM in reply to: troma

    Try this (slight fix)

    Please use plain text.
    *Expert Elite*
    Posts: 1,555
    Registered: ‎05-21-2008

    Re: Autocad gives the wrong area for a polyline

    07-18-2012 09:39 AM in reply to: dbroad

    Thanks for the fix.

     

    But have a look Terry, I'm still getting the wrong area:

    polyarea-dump.PNG

    __________________________________________________________
    Win 7 Pro, 32 bit; Intel Core i5 @ 2.80GHz; 4GB RAM—Civil 3D 2008 & 2011
    __________________________________________________________
    Credit where credit is due! Give kudos or accept as solution whenever you can.
    Please use plain text.
    New Member
    Posts: 1
    Registered: ‎02-07-2013

    Re: Autocad gives the wrong area for a polyline can be corrected

    02-07-2013 01:40 AM in reply to: troma

    What I found is that, copy the polyline amd move towards 0,0. List it, check with area command. I hope u may satisfy up to maximum extent.

    Please use plain text.