Hi.
I want to get vertex from survey figure or parcel.
I have seen this for feature line:
http://adndevblog.typepad.com/infrastructure/2012/10/getting-civil-3d-land-featureline-vertices.html
But "Autodesk.AECC.Interop.Land" doesn´t have AeccLandSurveyFigure.
How can I do it?
Is it necessary convert survey figure to polyline?
Thank you.
Figures, feature lines, alignments and parcels inherit the AcDbCurve object. You should be able to get the the vertices by accessing the Curve object in .net.
In lisp you can use the vlax-curve-getpointatparam function.
Yes but:
"Autodesk.AECC.Interop.Land" doesn´t have AeccLandSurveyFigure.
How I get Survey Figure from Interop?
I´m trying this:
using (Transaction trans = db.TransactionManager.StartTransaction()) { Autodesk.AutoCAD.DatabaseServices.DBObject obj = trans.GetObject(id, OpenMode.ForRead); DBObjectCollection entitats = new DBObjectCollection(); SurveyFigure SF = obj as SurveyFigure; if (SF != null) { // get the projected curve from SurveyFigure Curve baseCurve = SF.BaseCurve; }
but "baseCurve" which is the property or method to get all vertex?
With feature Line and Parcel, I can create a new polyline for each entity and then ,I can get all vertex from polyline.
Finally, I erase that polylines.
However, with "Survey Figure" I can´t create a polyline
This may be some help. They are using the .NET API instead of COM.
Hi,
In the following blog post you can see how to "Convert Civil 3D SurveyFigure to Polyline object" and then you can get the vertices from the polyline.
Cheers,
Partha