Message 1 of 8

Not applicable
07-03-2019
11:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
(defun C:conlabel (/ ep seglen Yes No)
(while
(INITGET 1 "Yes No")
(OR
(SETQ RETKWORD (GETKWORD "\nLabel New Line?: [Yes/No]:"))
(SETQ RETKWORD "Yes")
)
(IF (= RETKWORD "Yes")
(PROGN
(setq ep (entsel))
(setq seglen (getdist "\nSegment length"))
(command "measure" ep "Block" "contour elevation label" "_Y" seglen)
)
)
(IF (= RETKWORD "No")
(PROGN
(command "attsync" "s" pause "y")
(princ)
)
)
)
Ive written this code but when I load it there are no errors but when I type the command nothing happens. Any ideas?
Solved! Go to Solution.