Imports information from a type library
(vlax-import-type-library :tlb-filename filename [:methods-prefix mprefix :properties-prefix pprefix :constants-prefix cprefix])
Arguments
A string naming the type library. A file can be one of the following types:
If you omit the path from tlb-filename, AutoCAD looks for the file in the support file search path.
cc-Calculate. This parameter defaults to “”.
Prefix to be used for method wrapper functions. For example, if the type library contains a Calculate method and the mprefix parameter is set to “cc-”, Visual LISP generates a wrapper function namedcc-get-Width and cc-put-Width. This parameter defaults to “”.
Prefix to be used for property wrapper functions. For example, if the type library contains a Width property with both read and write permissions, and pprefix is set to “cc-”, then Visual LISP generates wrapper functions namedcc-ccMaxCountOfRecords. This parameter defaults to “”.
Prefix to be used for constants contained in the type library. For example, if the type library contains a ccMaxCountOfRecords property with both read and write permissions, and cprefix is set to “cc-”, Visual LISP generates a constant namedvlax-import-type-library.
Note the required use of keywords when passing arguments toReturn Values
T, if successful.
Examples
Import a Microsoft Word type library, assigning the prefix “msw-” to methods and properties, and “mswc-” to constants:
_$ (vlax-import-type-library
:tlb-filename "c:/program files/microsoft office/msword8.olb"
:methods-prefix "msw-"
:properties-prefix "msw-"
:constants-prefix "mswc-")
T
Remarks
vlax-import-type-library are available only in the context of the document vlax-import-type-library was issued from.
Function wrappers created byvlax-import-type-library is executed at runtime, rather than at compile time. In future releases of Visual LISP, this may change. The following practices are recommended when using vlax-import-type-library:
In the current release of Visual LISP,vlax-typeinfo-available-p function.
The