tozjerimiah Posted August 17, 2010 Posted August 17, 2010 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 Quote
SEANT Posted August 18, 2010 Posted August 18, 2010 (edited) 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 August 22, 2010 by SEANT Removed buggy spreadsheet Quote
SEANT Posted August 22, 2010 Posted August 22, 2010 (edited) The previous spreadsheet had bugs (thanks for bringing those to my attention, tozjerimiah ). This newer version should perform better, I hope. FacetBulge_rev1.zip Edited August 22, 2010 by SEANT Quote
tozjerimiah Posted August 23, 2010 Author Posted August 23, 2010 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. Quote
Recommended Posts
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.