TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Lupo76 on April 13, 2015, 07:15:54 AM

Title: Verify existence of a command
Post by: Lupo76 on April 13, 2015, 07:15:54 AM
Hello everyone,
I need to check whether a command exists.
Let me explain: I made an application compatible with AutoCAD and BricsCAD.
Unfortunately, some commands are not available in all applications cad, so I would like, through lisp code, check whether a given command exists.

eg.

(check "LINE")  -->T
(chech "TRTRTR" --> nil


How can I do this?
Title: Re: Verify existence of a command
Post by: bruno_vdh on April 13, 2015, 07:55:27 AM
Hello,
(getcname cname) ?
Best regards
Title: Re: Verify existence of a command
Post by: Lupo76 on April 13, 2015, 08:22:19 AM
Hello,
(getcname cname) ?
Best regards

Perfect!
Thanks !!
Title: Re: Verify existence of a command... or loaded .Net function
Post by: peterba on June 16, 2015, 11:37:53 AM
I have been searching a way to determine whether a .NET function is loaded.

Some things might be so easy!  ;-)
Thanks for the hint.