the following lisp command
(defun C:TT ()
(command "._+dsettings" "2")
(setq ChMode (logand OutMode 16383))
(setvar "osmode" ChMode)
(princ)
)
works when when calling from autocad
when you try to call it tranparently (example Polyline pnt1 pnt2 .. 'TT ..) does not work
Please answer me if there is a solution to work
Thanks
Regards,
Gery
Solved! Go to Solution.
Solved by paullimapa. Go to Solution.
The ; error: bad argument type: fixnump you are receiving is because you did not define what OutMode is before it was evaluated.Since OutMode is nil, then the (logand OutMode 16383) call will fail.
This has nothing to do with the Transparency of the TT function.
It sounds like you want to check if the user selected OK or Cancel when the OSNAP window appeared.
One way this can be done is if you define your own DCL with the OSNAP options for end user to select.
Then in the LISP code you can check if the user chose Cancel or OK.
Not sure if this explanation helps.
Thank you very much for the solution
It works perfectly
The error caused because i'm not experianced in lisp and forgot one line of the code
Thanks again
Regards,
Gery
You are very welcome...glad I'm able to help.