Imports ObjectARX/ADSRX functions into a separate-namespace VLX
(vl-arx-import ['function | "application"])
vl-arx-import to explicitly import functions from ObjectARX/ADSRX applications.
By default, separate-namespace VLX applications do not import any functions from ObjectARX/ADSRX applications. UseArguments
A symbol naming the function to import.
A string naming the application whose functions are to be imported.
nil) is specified, vl-arx-import imports all function names from the current document namespace.
If no argument (orReturn Values
Unspecified.
nil, as all ADS-DEFUN function names are automatically imported to document VLX applications.
If executed from a document VLX, this function does nothing and returnsExamples
vl-arx-import works, try the following:
To see how(vl-doc-export 'testarx)
(defun testarx ()
(princ "This function tests an ObjectARX application ")
(vl-arx-import 'c:cal)
(c:cal)
)
vl-arx-import, comment out the vl-arx-import call in the code, save the change, then rebuild and run the application. Without the vl-arx-import call, the c:cal function will not be found.
To verify the effect ofvl-arx-import call with the following:
In the example above, you could have replaced the(vl-arx-import "geomcal.arx")
c:cal.
This would import all functions defined in geomcal.arx, including