+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Junior Member
    Using
    Architecture 2009
    Join Date
    Jul 2008
    Posts
    15

    Default Points along a lwpoly arc

    Registered forum members do not see this ad.

    Hi,

    Firstly I should probably say I am using VBA...

    I have created code which will output coordinates for polylines. This info is then transformed to WGS84 & displayed on google maps.

    My issue is that google maps will not draw curves. I therefore want to split lwpoly curves into segments of a fixed length (say 100mm), and output the coordinates.

    I have the start coords of the arc, the end coords, the bulge. I am able to get the radius, arc length etc, but I'm struggling to determine fixed points along the arc.

    If anyone can help I would be very grateful!

    Thanks
    Toz

  2. #2
    Super Member SEANT's Avatar
    Using
    AutoCAD 2012
    Join Date
    Aug 2005
    Location
    Rhode Island
    Posts
    1,968

    Default

    VBA does not have any direct access to all of AutoCAD’s curve analysis functionality (unlike AutoLisp, VB.NET, etc). There is a third party hook out there; search for Curve.cls and Vlax.cls. That hook, unfortunately, has a couple of problems that may crop up in certain situations.

    It is possible, however, to mimic some of those functions mathematically. For instance, to subdivide a polyline bulge see the attached examples (DWG and XLS).
    Last edited by SEANT; 22nd Aug 2010 at 12:25 pm. Reason: Removed buggy spreadsheet

  3. #3
    Junior Member
    Using
    Architecture 2009
    Join Date
    Jul 2008
    Posts
    15

    Default

    Phenomenally useful. Thanks!!

  4. #4
    Super Member SEANT's Avatar
    Using
    AutoCAD 2012
    Join Date
    Aug 2005
    Location
    Rhode Island
    Posts
    1,968

    Default

    The previous spreadsheet had bugs (thanks for bringing those to my attention, tozjerimiah ).

    This newer version should perform better, I hope.
    Attached Files
    Last edited by SEANT; 22nd Aug 2010 at 10:17 pm.

  5. #5
    Junior Member
    Using
    Architecture 2009
    Join Date
    Jul 2008
    Posts
    15

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by SEANT View Post
    The previous spreadsheet had bugs (thanks for bringing those to my attention, tozjerimiah ).

    This newer version should perform better, I hope.
    Yes it works! Thanks.

Similar Threads

  1. Constraint on points, how to get points, axis
    By linnmaster in forum Autodesk Inventor
    Replies: 16
    Last Post: 22nd Feb 2010, 10:00 pm
  2. low points and high points on a 3d poly
    By iain9876 in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 8th Dec 2009, 12:04 am
  3. Graphing points, scaling the points
    By live4soccer7 in forum AutoCAD General
    Replies: 0
    Last Post: 25th Jul 2008, 09:44 pm
  4. points
    By yiyan in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 16th Jan 2007, 02:12 pm
  5. points in 3d
    By yiyan in forum AutoCAD General
    Replies: 0
    Last Post: 16th Jan 2007, 02:43 am

Bookmarks

Posting Permissions

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