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

    Visual Basic Customization

    Reply
    *Johnston, Rick

    Points along a polyline arc(bulge)...

    305 Views, 2 Replies
    04-26-2001 03:16 AM
    Does anyone have a VBA applet to extract points along a arc of a polyline
    object based on the bulge factor? I have automated thru VBA an SDF Export
    utility that needs to handle bulges so I need a way to calc the points. I
    have written one for arc, but there is no clean way to extract all info
    needed from polyline as with an arc (i.e. start angle end angle radius,
    etc...)...any assistance would be greatly appreciated!

    Thanx.

    Rick...
    Please use plain text.
    *Oquendo, Frank

    Re: Points along a polyline arc(bulge)...

    04-26-2001 03:31 AM in reply to: *Johnston, Rick
    Here's some formulas to make use of the bulge factor:

    Included angle = 4 * Atn(Abs(bulge factor))
    Chord = Distance from startpoint of to endoint of arc
    Radius = 1/2 chord / Cos(1/2 included angle - 1/2 PI)

    Knowing the radius as well as the start and end points should give you
    enough information to calculate points along the arc. Good luck and
    let us know what you find out.

    --
    http://www.acadx.com
    Win an autographed copy of
    "Mastering AutoCAD 2000 Objects"
    by Dietmar Rudolph

    "Rick Johnston" wrote in message
    news:smileyvery-happy:A431CE27F10D7AFFFA1F6FDC0A3CE1C@in.WebX.maYIadrTaRb...
    > Does anyone have a VBA applet to extract points along a arc of a
    polyline
    > object based on the bulge factor? I have automated thru VBA an SDF
    Export
    > utility that needs to handle bulges so I need a way to calc the
    points. I
    > have written one for arc, but there is no clean way to extract all
    info
    > needed from polyline as with an arc (i.e. start angle end angle
    radius,
    > etc...)...any assistance would be greatly appreciated!
    >
    > Thanx.
    >
    > Rick...
    >
    Please use plain text.
    *Daum, Ivo

    Re:

    04-26-2001 07:11 PM in reply to: *Johnston, Rick
    I have a Tool an my Homepage http://www.cad-daum.at/POLYBOEGEN.htm
    that konverts polylines with arcs in polylines with only points (on the old
    arcs).

    The tool is in german, you can test it for 14 Days !
    You can send me an mail office@cad-daum.at if it is good for you.

    Ivo
    _______________________________________________________
    www.cad-daum.at

    "Frank Oquendo" schrieb im Newsbeitrag
    news:6CF7CEF327C34398BB6D48667F6E6B28@in.WebX.maYIadrTaRb...
    | Here's some formulas to make use of the bulge factor:
    |
    | Included angle = 4 * Atn(Abs(bulge factor))
    | Chord = Distance from startpoint of to endoint of arc
    | Radius = 1/2 chord / Cos(1/2 included angle - 1/2 PI)
    |
    | Knowing the radius as well as the start and end points should give you
    | enough information to calculate points along the arc. Good luck and
    | let us know what you find out.
    |
    | --
    | http://www.acadx.com
    | Win an autographed copy of
    | "Mastering AutoCAD 2000 Objects"
    | by Dietmar Rudolph
    |
    | "Rick Johnston" wrote in message
    | news:smileyvery-happy:A431CE27F10D7AFFFA1F6FDC0A3CE1C@in.WebX.maYIadrTaRb...
    | > Does anyone have a VBA applet to extract points along a arc of a
    | polyline
    | > object based on the bulge factor? I have automated thru VBA an SDF
    | Export
    | > utility that needs to handle bulges so I need a way to calc the
    | points. I
    | > have written one for arc, but there is no clean way to extract all
    | info
    | > needed from polyline as with an arc (i.e. start angle end angle
    | radius,
    | > etc...)...any assistance would be greatly appreciated!
    | >
    | > Thanx.
    | >
    | > Rick...
    | >
    |
    Please use plain text.