- Sub kkk()
- Dim acaddoc As AcadDocument
- Dim selectset1 As AcadSelectionSet
- Set acaddoc = ThisDrawing
- On Error Resume Next
- Set selectset1 = acaddoc.SelectionSets("kkk")
- If Err Then
- Set selectset1 = acaddoc.SelectionSets.Add("kkk")
- End If
-
- selectset1.SelectOnScreen
- Dim entry As AcadEntity
- For Each entry In selectset1
- If entry.ObjectName = "AcDbPolyline" Then
-
- entry.LinetypeGeneration = True
- End If
- Next entry
- selectset1.Clear
- End Sub
|