vl-doc-export

AutoCad AutoLISP Functions

 
vl-doc-export
 
 
 

Makes a function available to the current document

(vl-doc-export 'function) 

When issued from a VLX that runs in its own namespace, vl-doc-export exposes the specified function to any document namespace that loads the VLX.

The vl-doc-export function should be used only at the top level in a file, and never inside other forms (for example, not within a defun).

Arguments

'function

A symbol naming the function to be exported.

Return Values

Unspecified.

Examples

The following code shows the contents of a file named kertrats.lsp. This file is compiled into a VLX that runs in its own namespace. The VLX file is named kertrats.vlx. The vl-doc-export call makes the kertrats function visible to any document that loads kertrats.vlx:

(vl-doc-export 'kertrats)
(defun kertrats ()
  (princ "This function goes nowhere") 
)