|
Top Document: comp.cad.autocad AutoLISP FAQ (part 1/2) - general Previous Document: [16] LISP programs operating over multiple drawings Next Document: [A] Disclaimer, Notes from the authors See reader questions & answers on this topic! - Help others by sharing your knowledge 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 value must be exported with (vlisp-export-symbol 'myx:symbol) each time the value is changed in Visual Lisp and control is returned to AutoCAD to be able to get the latest value in AutoLISP or in AutoCAD with !myx:symbol You may forget this whole chapter with AutoCAD 2000, however you might need to export your function from the protected namespace then with VL-DOC-SET. See also http://www.autodesk.com/support/techdocs/td17/td175363.htm User Contributions:Top Document: comp.cad.autocad AutoLISP FAQ (part 1/2) - general Previous Document: [16] LISP programs operating over multiple drawings Next Document: [A] Disclaimer, Notes from the authors Part1 - Part2 - Single Page [ Usenet FAQs | Web FAQs | Documents | RFC Index ] Send corrections/additions to the FAQ Maintainer: rurban@xarch.tu-graz.ac.at (Reini Urban)
Last Update March 27 2014 @ 02:11 PM
|

Comment about this article, ask questions, or add new information about this topic: