Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How to adjust the code to work on multiple polylines:
(defun ERR (s) (if (/= s "Function cancelled\n") (if (= s "quit / exit abort") (princ) (alert (strcat " >> No Polyline Selected << \n")) ) ) (setq *error* olderr) (princ) ) (defun c:vert () (setq olderr *error* *error* err ) (setq pl (entget (car (entsel "Select polyline :")))) ;;To get the vertax numbers : (if (setq vert (cdr (assoc 90 pl))) (progn (princ "\nNumbers of Vertices : ") (princ vert) ) (princ "\nThis is not a Polyline") ) (princ) ) (princ "\nType VERT to run lisp")
Solved! Go to Solution.