帮助里的

- Examples
- To see how vl-arx-import works, try the following:
- 1 Copy the following code into the VLISP editor and save the file:
- (vl-doc-export 'testarx)
- (defun testarx ()
- (princ "This function tests invoking an ARX app ")
- (vl-arx-import 'c:cal)
- (c:cal)
- )
- 2 Use Make Application to build a VLX with this code. Select Separate- Namespace Application Options.
- 3 Load geomcal.arx, if it is not already loaded.
- 4 Load and run the application.
- To verify the effect of 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.
- In the example above, you could have replaced the vl-arx-import call with the following:
- (vl-arx-import "geomcal.arx")
- This would import all functions defined in geomcal.arx, including c:cal.
|