GstarCAD 2022 LISP Tips
GstarCAD 2022 LISP Tips
Contents
Definition error of AI_ABORT
Phenomenon:
When using appload to load some lisp programs in GstarCAD, the command line prompt: ”error: no function definition: AI_ABORT”.
Possible Reason:
AutoCAD's ai public library “ai_utils.lsp” has been called when developing lisp. The ai public library in GstarCAD is "ai_utils.fas". It's different with AutoCAD. So may caused the program can't find the reference.
Suggestion:
Please change “ai_utils.lsp” to “ai_utils.fas”.
For example:
Replace:
“((not (findfile "ai_utils.lsp"))”
With:
“((not (findfile "ai_utils.fas"))”
OpenDCL is unavailable
Phenomenon:
When executing the command OpenDCL in GstarCAD, the command line prompt: unknown command "OpenDCL".
Possible Reason:
In AutoCAD, as long as the OpenDCL plug-in has been installed, you can run the "OpenDCL" command to start the plug-in and perform functions.
In GstarCAD, Opendcl.grx needs to be loaded manually. After loading, you can use OpenDCL functions like in AutoCAD.
Suggestion:
Load Opendcl.grx file manually.
For example:
Load Opendcl.grx file (located at the installation path of GstarCAD) manually with command “Appload”.
