Jump to content

Points along a lwpoly arc


tozjerimiah

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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