Registered forum members do not see this ad.
Hello all!
I have an AutoLISP code that goes to the client along with drawings. The code contains a sequence for attribute editing with either EATTEDIT built-in command or an AutoLISP snippet.
On this stage, I don't know if the EATTEDIT built-in command is implemented under the client CAD platform, so that I must check the availability of the command.
Is there any possibility to obtain via AutoLISP a complete list of AutoCAD internal (built-in) commands?
Thank you in advance.
Sorry, but atoms-family function don't return the built-in command names. Please try it.
ARX command, "C" option.
Here is an entire thread on this topic, including some good lisp routines.
I know the trick with ARX, option "C".
EATTEDIT still missing from the list (AutoCAD 2015). Please give it a try.
Not a full list .. but here's a quick check:Code:...
Last edited by ronjonp; 12th Apr 2018 at 05:18 pm. Reason: *removed code suggestion does not work DOH!
How about?:
Code:(getcname "_eattedit")
BricsCAD 18
(vl-cmdf "abcde") return: Unknown command "abcde". Press F1 for help. T
(command "abcde") return: Unknown command "abcde". Press F1 for help. nil
Finally, always vl-cmdf function return T and command function return nil.
How could I manage an error like "Unknow command" without an error code??
Testing the AutoCAD version may be a path... But if the client uses an other CAD platform? First test the platform (PROGRAM system variable). Then test the version (VERNUM system variable) and decide if EATTEDIT is implemented or not by reading specific CAD manuals. No, please...
Registered forum members do not see this ad.
Use Roy's suggestion .. or better yet get rid of command calls in your code.![]()
Bookmarks