See the top rated post in this thread. Click here

Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: Getting the centroid of closed polyline

  1. #21
    Active Member David.Hoole's Avatar
    Join Date
    2000-12
    Location
    Yorkshire
    Posts
    84
    Login to Give a bone
    0

    Default Re: Getting the centroid of closed polyline

    Hi csgoh

    Sorry, but I can't think of a solution other than Kennet's.

    I don't know what these polylines represent or how they are being produced, but it seems to me that such a small dimension suggests a slight misalignment in the drawing rather than a real area/object. Please don't take this as a criticism, just trying to look at the problem practically.

  2. #22
    Member
    Join Date
    2003-12
    Posts
    47
    Login to Give a bone
    0

    Default Re: Getting the centroid of closed polyline

    Hi David;
    The issue here is not how the polylines are created or what it is for. The issue here is why it gives different results in acad14 & 2002 but not acad2004 & 2005 even it is the same polyline.

    csgoh

  3. #23
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    0

    Default Re: Getting the centroid of closed polyline

    Once again, "Probably AutoCAD do better calculating nowadays ; )"

    to scale objects up and down is one solution for you, sometimes it is enough to move the objects closer to 0,0,0 especially when you are working in 3D with solids.
    the phenomenon can appear when you create hath in R14 or R2002, and there do R2002 better calculation.

    :. small and large numbers make the sense and miscalculation, the thing you can do is to avoid them.

    Happy Computing !

    kennet

  4. #24
    Member
    Join Date
    2003-12
    Posts
    47
    Login to Give a bone
    0

    Default Re: Getting the centroid of closed polyline

    Kennet,
    Thanks for your explanation and I will take heed of your advice in the future.

    csgoh

  5. #25
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    0

    Default Re: Getting the centroid of closed polyline

    OK csgoh glad if I can help, hope you enjoy the R14 centroid stuff.

    : ) Happy Computing !

    kennet


    By the way the uploaded region is a typical example that will cause trouble to AutoCAD,
    the best thing there is to avoid the unnecessary peripheral node from the beginning.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Area without a closed polyline
    By Wish List System in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2014-02-11, 03:07 PM
  2. ssget closed polyline
    By rad.77676 in forum AutoLISP
    Replies: 31
    Last Post: 2009-04-16, 07:26 AM
  3. Sweeping Closed Polyline around a Helix
    By ralph.burkey in forum AutoCAD General
    Replies: 6
    Last Post: 2008-06-04, 09:40 PM
  4. Create a Surface from a Closed Polyline
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2007-05-26, 06:42 PM
  5. C# - closed Polyline length
    By RoSiNiNo in forum ARX
    Replies: 1
    Last Post: 2005-03-02, 03:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •