Author Topic: Verify existence of a command  (Read 2012 times)

0 Members and 1 Guest are viewing this topic.

Lupo76

  • Bull Frog
  • Posts: 343
Verify existence of a command
« 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?

bruno_vdh

  • Guest
Re: Verify existence of a command
« Reply #1 on: April 13, 2015, 07:55:27 AM »
Hello,
(getcname cname) ?
Best regards

Lupo76

  • Bull Frog
  • Posts: 343
Re: Verify existence of a command
« Reply #2 on: April 13, 2015, 08:22:19 AM »
Hello,
(getcname cname) ?
Best regards

Perfect!
Thanks !!

peterba

  • Guest
Re: Verify existence of a command... or loaded .Net function
« Reply #3 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.