How to export Visual Lisp functions to AutoLISP/AutoCAD?
C: functions are automatically exported to AutoLISP. Plain vlisp/vill lisp functions must be exported either with (vl-acad-defun funcname) or their symbols may be exported with a special compiler pragma, defined either in the LSP file or in the GLD (global declarations) file. Better use special prefixes for such functions. .GLD: (AUTOEXPORT-to-ACAD-PREFIX ;| name prefixes for functions to be autoexported to AutoCAD: (strings) |; “myx-*” ) or one by one .LSP: (pragma ‘((export-to-acad myx-func1 myx-func2))) Note: There may exist known bugs in vlisp and vill with lists of atomic symbols and dotted pair lists in such functions arguments and return values. See [7]. Functions exported by external apps which are used in your application must be defined via XDF. Symbols (variables) whose values are updated in Visual Lisp and which values are also used in AutoLISP or AutoCAD (the menu e.g.), first may be marked for the compiler to be external with: (pragma ‘((not-localize myx:symbol))) but the