Overkill on Selection Set (Polyline) - 2012

Overkill on Selection Set (Polyline) - 2012

conveyor1
Enthusiast Enthusiast
411 Views
1 Reply
Message 1 of 2

Overkill on Selection Set (Polyline) - 2012

conveyor1
Enthusiast
Enthusiast

Afternoon,

I have some code for removing the (0) length sections from a selected polyline and it works on 2013 autocad forward.

 

        ' Remove 0 Length lines in Polyline
        Dim myPSR As PromptSelectionResult = myEd.SelectAll
        If myPSR.Status = PromptStatus.OK Then myEd.Command("_-overkill", myPSR.Value, "", "")

myEd is my EditorInput.Editor.

 

However, I have (1) guy still using 2012.  The .Command is not a member of Document in the 2012 build.  So I have been trying to write an equivalent just for 2012 without success.

 

Does anyone have any thoughts?  The suggestions from Visual Studio did not work.

 

0 Likes
412 Views
1 Reply
Reply (1)
Message 2 of 2

_gile
Consultant
Consultant

Hi,

 

See this topic.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes