Function Entry: VLISP-EXPORT-SYMBOL

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: VLISP-EXPORT-SYMBOL

Name

vlisp-export-symbol

Class

BricsCAD VLX Namespace Function (obsolete)

Syntax

(vlisp-export-symbol symbolOrList)

Arguments and Values

  • symbolOrList
  • a single Lisp symbol (string or symbol)
  • or a list of Lisp symbols

Description

This function exports the specified symbol / variable (or the list of symbols / variables) to the global document namespace (where normal Lisp code is operating); then those symbols / variables are accessible from any other normal Lisp code and function. It exports the actual value of the symbol / variable, not a "reference" to the symbol / variable ! If the value is changed within the VLX NameSpace code, the symbol / variable need to be re-exported again. see (vl-doc-set)

Return Values

the value of the last evaluated symbol / variable

Examples

(vlisp-export-symbol 'MyVar1)
   returns the value of "MyVar1"

(vlisp-export-symbol (list 'MyVar1 'MyVar2
'MyVar3))    returns the value of "MyVar3"

Notes

if (vlisp-export-symbol) is called from the global document namespace, then it does nothing and returns the value of the last evaluated symbol / variable;

obsolete function ! please use (vl-doc-set)

Availability

  • AutoCAD 2026: not documented.
  • BricsCAD V26: documented.
  • Status: BricsCAD-only.

Source Notes