Lee, can you explain why if the vlx is compiled to a separate Namespace you nid to use sendcommand, I had some problems with a vlx that can run in one PC, but when I distribute it, it doesn´t work anymore.
Hi Marco,
When working with AutoLISP, all symbols & functions are usually defined either within the document namespace or blackboard namespace (if
vl-bb-set is used); in this way, all defined symbols (functions / constants / global variables etc.) defined in the namespace for one document (drawing) will be accessible by (and may also interfere with!) all other defined symbols in the same namespace, but cannot be accessed by functions defined in another namespace, e.g. in another drawing, unless a function such a
vl-propagate has been used to propagate the symbol across multiple namespaces.
Hence, if a VLX is compiled to a separate namespace, all symbols & functions defined by the VLX will reside in a separate namespace (perhaps think of it like a 'container') isolated from the document & blackboard namespaces, and such functions won't be accessible by functions evaluated within the document namespace, unless either exported using
vl-doc-export, or defined directly in the document namespace using the
vl-doc-set function evaluated from within the VLX namespace.
Here's another brief explanation of a namespace (from an AutoLISP perspective).
Lee