Nov 03, 2011 Wow that works great! Do you have a lsp that can add a vertex to the middle of a polyline? I know you can put your mouse on a grip and wait till Add Vertex shows up and hit “a” and it will add another vertex but it would be nice if you could click multiple points without having to wait. Learn Autocad basic tutorial how to add and remove vertex in line or polyline object with pedit command Don't forget guys, if you like our videos please 'Sub.
I don't want to select the specific polyline in runtime. Is there a way to directly get all polylines in .dwg file using C# without selection during runtime ? AutoCAD has a command called DATAEXTRACTION to get related information for different objects (e.g polyline, circle, point ...etc), but I don't know if it can be called and used in C#.
FYI: Sample code to get specific polyline during runtime from
http://through-the-interface.typepad.com/through_the_interface/2007/04/iterating_throu.html:
3 Answers
Sounds like you're looking for something like this. Remove the layer criteria if not needed.
MiiirMiiirUpdated 1/12/2015
This will work as well and keep you from having to deal with all the typedvalues...
I wrote a blog post about this subject, Check it out.
Trae MooreTrae MooreI know it is old question, but maybe someone will find it useful.
Using SelectionFilter to select only opened or closed polylines (any type of polyline):
Autocad Add New Point To Polyline
List of all drawing entities: link 1 (older) or link 2 (newer)
Autocad Add Vertex
In this link we see that code 70 with value of 1 is closed polyline.
And in this link we see that same applies for polyline 2d/3d, but additionaly with value 8 we define if it is 2d or 3d polyline. Values can be bitwise combined, so 8|1 means closed 3d polyline.