PDA

View Full Version : Points along a lwpoly arc



tozjerimiah
17th Aug 2010, 09:40 pm
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

SEANT
18th Aug 2010, 11:11 am
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).

tozjerimiah
18th Aug 2010, 10:49 pm
Phenomenally useful. Thanks!!
:)

SEANT
22nd Aug 2010, 12:32 pm
The previous spreadsheet had bugs (thanks for bringing those to my attention, tozjerimiah :)).

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

tozjerimiah
23rd Aug 2010, 12:06 pm
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.