Jump to content
tozjerimiah

Points along a lwpoly arc

Recommended Posts

tozjerimiah

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

Share this post


Link to post
Share on other sites
SEANT

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).

Edited by SEANT
Removed buggy spreadsheet

Share this post


Link to post
Share on other sites
tozjerimiah

Phenomenally useful. Thanks!!

:)

Share this post


Link to post
Share on other sites
SEANT

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

 

This newer version should perform better, I hope. :geek:

FacetBulge_rev1.zip

Edited by SEANT

Share this post


Link to post
Share on other sites
tozjerimiah
The previous spreadsheet had bugs (thanks for bringing those to my attention, tozjerimiah :)).

 

This newer version should perform better, I hope. :geek:

 

Yes it works! Thanks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...