Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

get vertex from survey figures or parcels

6 REPLIES 6
Reply
Message 1 of 7
joantopo
425 Views, 6 Replies

get vertex from survey figures or parcels

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.

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
6 REPLIES 6
Message 2 of 7
stacy.dunn
in reply to: joantopo

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.

Stacy Dunn
Message 3 of 7
joantopo
in reply to: stacy.dunn

Yes but:

"Autodesk.AECC.Interop.Land" doesn´t have AeccLandSurveyFigure.

 How I get Survey Figure from Interop?

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
Message 4 of 7
joantopo
in reply to: joantopo

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?

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
Message 5 of 7
joantopo
in reply to: joantopo

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.

 

http://adndevblog.typepad.com/infrastructure/2013/04/creating-featureline-using-com-api-iaecclandfea...

 

However, with "Survey Figure" I can´t create a polyline 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
Message 6 of 7
stacy.dunn
in reply to: joantopo
Message 7 of 7
Anonymous
in reply to: stacy.dunn

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.

 

http://adndevblog.typepad.com/infrastructure/2013/01/convert-civil-3d-surveyfigure-to-polyline-objec...

 

Cheers,

Partha

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report