Message 1 of 15
Civil3D 2016 .NET API - Comprehensive FeatureLine Functionality
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I feel I speak for many when I say that the next version of Civil3D badly needs a comprehensive Managed .NET API. While COM was hot stuff back in 1993 it's undesirable now. For the moment we'll only discuss FeatureLines.
- Model the API after the AutoCAD Polyline object API, they really aren't that different.
- Include the ability to create a new FeatureLine, no hoops like COM AddFromPolyline.
- Include point manipulation tools like SetPointAt(Index), AddVertexAt(Index ...), RemoveVertexAt, etc.
- Include bulge manipulation like GetBulgeAt(Index) and SetBulgeAt(Index), see note below.
- Evaluate every method and property of the AutoCAD Polyline and Polyline3d API and if it applies, implement it.
- Make it fast, direct ARX wrappers, no COM.
To say that the current COM GetBulgeAt(Point) is inefficient is an understatement. This method requires the API to loop through the coordinates doing at least two precision comparisons (northing, easting) to determine the return value. For example if the point is at the end of the FeatureLine it has to compare to all the points just to find it. If you have a drawing with hundreds of long FeatureLines attempting to get all the bulges creates the appearance of an application lock up.
Sometimes I wish I was representing all US DOTs or the largest Civil3D user company so that requests like these didn't get swept under the rug as they have before.
Sometimes I wish I was representing all US DOTs or the largest Civil3D user company so that requests like these didn't get swept under the rug as they have before.