TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: andrew_nao on March 16, 2012, 04:09:48 PM
-
i cant seem to find this in the help files...
am i looking in the right spot?
the documentation for this type of code
(vla-get-activedocument (vlax-get-acad-object))
-
There are no vla help docs per se. You have to use the vba help docs and translate. This (http://www.theswamp.org/index.php?topic=5185.msg62997;topicseen#msg62997) may help (or not).
-
There's also the Visual Lisp Developer's Bible as discussed HERE (http://www.theswamp.org/index.php?topic=39403.0)
-
Something to keep in mind, is the (vla-...)/(vlax-...) syntax can apply to many different objects, not just AutoCAD ones. For example, using dom_obj as an MSXML2 DOMDocument object then the documentElement property of that object can be accessed using (vlax-get-property dom_obj 'documentElement).
-
Andrew - I am unsure what version you're using, but in addition to what has already been suggested, consider using the VLIDE's Apropos functionality... It's not 100%, but it can help with certain Methods/Functions again depending on your version.
Autodesk Exchange does a good adequate job of making Developer Documentation available online; sadly though the VBA documentation is not among that lot. Either keep a copy of the necessary acad_##_dev.chm (and others), or use VBAIDE docs.
HTH