The Tool Command must be changing the layer before the Lisp executes. It still does not change the layer back.
|
The Tool Command must be changing the layer before the Lisp executes. It still does not change the layer back.
You need to post exactly what it is your using Tom is right in that the suggested code resets the layer back to what it was before adding the mtext.
This is what I have in the lisp:
This is what I have in the Tool CommandCode:; Mtext at Viewtwist rotation (defun mtr (curlayer / clayer) (setq clayer(getvar'clayer)) (setvar 'clayer curlayer) (setq twang (-(/ (* (GETVAR "viewtwist") 180.0) PI)) ) (initdia) (command "mtext" PAUSE "R" twang "J" "TC") (setvar 'clayer clayer) )
Using these commands I always end up on layer V-SITE-DECK-TEXT.Code:^c^c^p(mtr "V-SITE-DECK-TEXT")