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 PolyLine vertices using com/Active X

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
NoelRico
554 Views, 2 Replies

Get PolyLine vertices using com/Active X

NoelRico
Advocate
Advocate

Hi,

 

Can somebody help me in getting  polyline vertices using C# and ActiveX/Com. I know how to do it in .Net but just want to use .Com for some method testing.

 

I start with code below,

 

acadApp.ActiveDocument.Utility.GetEntity(out object FG, out object pkpt);

FG.coordinates;  // not working

 

 

Thanks,

0 Likes

Get PolyLine vertices using com/Active X

Hi,

 

Can somebody help me in getting  polyline vertices using C# and ActiveX/Com. I know how to do it in .Net but just want to use .Com for some method testing.

 

I start with code below,

 

acadApp.ActiveDocument.Utility.GetEntity(out object FG, out object pkpt);

FG.coordinates;  // not working

 

 

Thanks,

2 REPLIES 2
Message 2 of 3
Jeff_M
in reply to: NoelRico

Jeff_M
Consultant
Consultant
Accepted solution

This works:

            acadApp.ActiveDocument.Utility.GetEntity(out object FG, out object pick, "\nSelect pline: ");
            var pline = FG as AcadLWPolyline;
            var coords = pline.Coordinates;
Jeff_M, also a frequent Swamper
EESignature
0 Likes

This works:

            acadApp.ActiveDocument.Utility.GetEntity(out object FG, out object pick, "\nSelect pline: ");
            var pline = FG as AcadLWPolyline;
            var coords = pline.Coordinates;
Jeff_M, also a frequent Swamper
EESignature
Message 3 of 3
NoelRico
in reply to: Jeff_M

NoelRico
Advocate
Advocate

Thank you very much Jeff_M, it really works,

 

Noel

0 Likes

Thank you very much Jeff_M, it really works,

 

Noel

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

Post to forums  

Rail Community


Autodesk Design & Make Report