I'm learning about programming for AutoCAD in VB.NET and still kinda new to things.
I was wondering how to develop a Selection Set Filter that will select only Cogo Points? I know I need to use Dxf.Start as the code, but then what's the string associated with Cogo Points? Can't find any documentation on this or any Civil 3D-unique entities...I know Line is just "Line" and "Arc" is just arc...but Polyline is the unintuitive "LWPolyline" and "Cogo Point" isn't working...
Solved! Go to Solution.
Solved by Jeff_M. Go to Solution.
Instead of doing it with a selection set filter, look a the PromptEntityOptions object and the "AddAllowedClass" method. This is a really easy to limit the objects that can be selected. You can add the "SetRejectMessage" as well to give feedback when entities of the wrong type are selected.
Here are the lines in C#
PromptEntityOptions peo = newPromptEntityOptions("Select a COGO Point");
peo.AddAllowedClass(typeof(Autodesk.Civil.DatabaseServices.CogoPoint), true);
Cheers,
Peter Funk
Autodesk, Inc.