AutoCAD 2012 帮助 | ![]() |
VLISP adds a set of functions to the AutoLISP language that provides access to ActiveX objects. The function names are prefixed with vla-: for example, vla-addCircle, vla-get-ModelSpace, vla-getColor. These functions can be further categorized as follows:
VLISP also adds a set of ActiveX-related functions whose names are prefixed with vlax-. These are more general ActiveX functions, each of which can be applied to numerous methods, objects, or properties. For example, with the vlax-get-property function, you can obtain any property of any ActiveX object. If your drawing contains custom ActiveX objects, or if you need to access objects from other applications, such as a Microsoft Excel spreadsheet, you can use the vlax-invoke-method, vlax-get-property, and vlax-put-property functions to access their methods and properties; you'll see examples using these functions in Using ActiveX without Importing a Type Library.
Working with ActiveX | ![]() | |
Using ActiveX Objects with AutoLISP | ||
Understanding the AutoCAD Object Model | ||
Accessing AutoCAD Objects | ||
Using Visual LISP Functions with ActiveX Methods | ||
Determining the Visual LISP Function You Need | ||
Determining How to Call a Function | ||
Converting AutoLISP Data Types to ActiveX Data Types | ||
Viewing and Updating Object Properties | ||
Using ActiveX Methods That Return Values in Arguments | ||
Listing an Object's Properties and Methods | ||
Working with Collection Objects | ||
Releasing Objects and Freeing Memory | ||
Converting Object References | ||
Handling Errors Returned by ActiveX Methods | ||
Using ActiveX to Interact with Other Applications |