- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to write a programme for selecting all polylines in a layer and make their start and end width as 0. The below command works with individual selection of polylines with 4 no. of vertices.
(command "PEDIT" pause "E" "W" "0" "0.0075" "N" "N" "W" "0.0075" "0" "X" "")))
However, instead of individual selection, i need a programme which selects all polylines in a layer and makes start and end vertices as 0.
I used following function for selection of all polylines in autocad drawing
(setq ss (ssget "_x" '((0 . "*POLYLINE") (8 . "Layername"))))
But i am struggling to pass each object from selection set to PEDIT command in a loop. Can someone provide me the programme/guidance.
Thanks in advance
Solved! Go to Solution.