Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

dSettings cannot work tranpeearently when calling inside lisp code

22 REPLIES 22
SOLVED
Reply
Message 1 of 23
GeryKnee
716 Views, 22 Replies

dSettings cannot work tranpeearently when calling inside lisp code

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

22 REPLIES 22
Message 21 of 23
paullimapa
in reply to: GeryKnee

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.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 22 of 23
GeryKnee
in reply to: paullimapa

 

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

Message 23 of 23
paullimapa
in reply to: GeryKnee

You are very welcome...glad I'm able to help.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost