
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey Fellows!
I'm having an issue when I try to call a Lisp already set in the autocad into the new program I'm writing.
Here's what's happening:
RTSV routine: changes color to those texts non-standardized (this one works perfectly)
AZG routine: Changes color on layer 0, then creates a rectangle, then it should perform the RTSV command in ALL texts on drawing
--------------------------------------------------------------------------
(defun C:RTSV (/ names txtss n txt)
(setq
names '("A/V RM"
"AUDITORIUM"
"BEVERAGE"
"SERVER & EQUIPMENT RM"
"STORAGE"
"WKST"
"WORK RM");
txtss (ssget '((0 . "*TEXT")))
); setq
(repeat (setq n (sslength txtss))
(setq txt (vlax-ename->vla-object (ssname txtss (setq n (1- n)))))
(if (not (member (vla-get-TextString txt) names))
(vla-put-Color txt 2); then
); if
); repeat
); defun
---------------------------------------------------
(defun c:AZG ()
(command "_.Layer" "_Make" "0" "_Color" "11" "" "LType" "Continuous" "" "")
(command "rectangle" "0,0" "@250,250")
(defun c:RTSV "ALL")
(princ)
)
-----BOTTOM LINE------
could anyone tell me why the RTSV is not working combined with the AZG routine??
thanks!
Solved! Go to Solution.