Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Valued Mentor
mdhutchinson
Posts: 2,291
Registered: ‎11-18-2003
Message 1 of 7 (1,017 Views)

Lisp and support for VLAX functions in 2012

1017 Views, 6 Replies
03-30-2011 07:54 AM

Is there still support in AutoCAD 2012 Visual Lisp for VLA and for VLAX functions?

*Expert Elite*
Kent1Cooper
Posts: 5,411
Registered: ‎09-13-2004
Message 2 of 7 (1,010 Views)

Re: Lisp and support for VLAX functions in 2012

03-30-2011 11:15 AM in reply to: mdhutchinson

mdhutchinson wrote:

Is there still support in AutoCAD 2012 Visual Lisp for VLA and for VLAX functions?


[Does anyone have it yet, to be able to answer?]  There is a 2012 Product Launch "virtual event" coming up:

 

http://usa.autodesk.com/adsk/servlet/index?id=16353133&siteID=123112

 

It will apparently have opportunity to ask questions, so you might get an answer by registering for that.  Or poke around the site -- there may be some kind of features listing that would give you an answer.

Kent Cooper
Valued Mentor
martti.halminen
Posts: 324
Registered: ‎12-31-2009
Message 3 of 7 (974 Views)

Re: Lisp and support for VLAX functions in 2012

03-31-2011 04:07 AM in reply to: mdhutchinson

mdhutchinson wrote:

Is there still support in AutoCAD 2012 Visual Lisp for VLA and for VLAX functions?


Yes, seems to exist in AutoCAD Mechanical 2012, so presumably in other variants, too.

- There is even some new documentation (at least compared to 2010, I don't have 2011) regarding how to construct

 the calls from Lisp. Still relies partially on the VBA and ActiveX Reference, though; that is installed on the disk, but not (at least easily, I didn't find it) directly accessible from the Help dialog.

 

--

 

Distinguished Contributor
Caduser_zero
Posts: 194
Registered: ‎01-21-2009
Message 4 of 7 (959 Views)

Re: Lisp and support for VLAX functions in 2012

03-31-2011 08:53 AM in reply to: mdhutchinson

im giving 2012 the 30 day test run and i see vlax, vlr but no vla commands in the developer help reference.

*Expert Elite*
dgorsman
Posts: 5,277
Registered: ‎10-12-2006
Message 5 of 7 (950 Views)

Re: Lisp and support for VLAX functions in 2012

03-31-2011 12:05 PM in reply to: Caduser_zero

You wouldn't, since the particular methods and properties available would be specific to the ActiveX object in question e.g. vla-get-Endpoint would work for AutoCAD objects while it wouldn't do anything for the MSXML interface.  I think for now the best we can hope for is an up-to-date object model with the applicable methods and properties, along with any notations where the Visual LISP implementation may differ from "normal" e.g. specifying quoted symbol names for output-only method arguments.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


*Expert Elite*
Kent1Cooper
Posts: 5,411
Registered: ‎09-13-2004
Message 6 of 7 (947 Views)

Re: Lisp and support for VLAX functions in 2012

03-31-2011 01:10 PM in reply to: Caduser_zero

Caduser_zero wrote:

im giving 2012 the 30 day test run and i see vlax, vlr but no vla commands in the developer help reference.


I would take that to mean that yes, there is still support for VL.... functions of the various types, just as there is in earlier versions.  My 2004 supports (vla-....) functions, even though it only has documentation in the AutoLISP Reference for (vl-...), (vlax-...) and (vlr-...) functions [and perhaps not all of those].  The Developer's Guide talks about (vla-...) functions and how to choose and use them in a sort of indirect way, but doesn't have what I wish it did -- the kind of entries for them that the AutoLISP Reference has, with syntax and arguments and all.  But despite the difference in documentation, they are nevertheless supported.  Since it looks like 2012 has similar documentation, I would assume they are still supported there.  And since the Subject line is about VLAX functions specifically, it seems that category is covered in 2012, even if some other categories may not be.

Kent Cooper
Distinguished Contributor
wkiernan
Posts: 148
Registered: ‎12-08-2003
Message 7 of 7 (916 Views)

Re: Lisp and support for VLAX functions in 2012

04-01-2011 08:22 PM in reply to: mdhutchinson

You might want to run the C:GETVLS function I posted the other day  in

 

http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/vl-function-listing/td-p/2109110

 

for a list of all the vla-* functions in AutoCAD 2012.  As I mentioned in that post, in AC2007 there exist ActiveX methods (and corresponding vla-* functions) which are not even listed in the ActiveX documentation; the only way I could figure out what the arguments were for the totally undocumented vla-* functions was to look at acadi.h, which is supplied in the ObjectARX SDK.

 

If you aren't interested in ObjectARX (or whatever they call it these days) but only in ActiveX or Visual LISP and all you want is that one headerfile, it would seem kind of like overkill to download and install the entire SDK; however, Autodesk might not appreciate it if I uploaded just that one file to this forum.  If there are any moderators reading this, what do you think?  It could be a big help for ActiveX/Visual LISP users if they could look at the declarations for otherwise undocumented ActiveX methods.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.