View Full Version : error: no function definition: VLAX-GET-ACAD-OBJECT
ccowgill
2009-07-14, 05:05 PM
Here is probably a new one for you.
I have AutoCAD 2010 32 and 64 bit, when we run our customizations, on the 64 bit version, everything loads properly.
If I attempt to run 32 bit, I get this message:
error: no function definition:
VLAX-GET-ACAD-OBJECT
Here is my code:
(vl-load-com)
(setq acadObject (vlax-get-acad-object))
Is there a separate arx file that AutoCAD should be loading that allows the visual lisp commands to function? Even in VLIDE, the function isnt blue, it shows as black.
I'm confused, any suggestions?
Once you run the vl-load-com, your vlax-get-acad-object should turn blue in the vlide. It is starting out black in my 32-bit version. Once I run vl-load-com, it is turning blue and becomes functional.
ccowgill
2009-07-14, 07:53 PM
Once you run the vl-load-com, your vlax-get-acad-object should turn blue in the vlide. It is starting out black in my 32-bit version. Once I run vl-load-com, it is turning blue and becomes functional.
no dice. It stays black on mine. If I paste the lines in my code above directly to the command line, I still get the error. I did notice some additional info that may be helpful. Here is my command history at the startup of the program:
Customization file loaded successfully. Customization Group: ACAD
Customization file loaded successfully. Customization Group: CUSTOM
Customization file loaded successfully. Customization Group: IMPRESSION
Customization file loaded successfully. Customization Group: AUTODESKSEEK
Customization file loaded successfully. Customization Group: EXPRESS
Regenerating model.
"0"
; warning:AutoCAD type library load failed: "Library not registered"
; warning:AutoCAD type library load failed: "Library not registered"
AutoCAD menu utilities loaded.; error: no function definition:
VLAX-GET-ACAD-OBJECT
Command: _RIBBON
Command: properties
Command:
the "0" is a line I have set to print inside my acad.lsp file. I'm guessing that the Library not being registered is something that is occurring within Acad2010doc.lsp. but when I run it manually I dont get these library not registered errors, but the function definition error still doesnt go away.
dgorsman
2009-07-15, 12:09 AM
If you run (arx) at the command line, is "vl.arx" a member of the returned list? Is vl.arx a valid file in your 32-bit AutoCAD install?
ccowgill
2009-07-15, 12:28 PM
If you run (arx) at the command line, is "vl.arx" a member of the returned list? Is vl.arx a valid file in your 32-bit AutoCAD install?
The same arx files are loaded in both the good and "bad" install. How would I determine if it is a valid arx file? I would guess that it would not load if it is no good.
VL functions are still working (vl-string-left-trim) and such, its just the VLAX and VLA functions that are not recongized
irneb
2009-07-15, 01:02 PM
Did you download & install the VBA thingy for 2010? I think the ActiveX stuff only works on the 64bit if you haven't installed the VBA extensions as well. May be wrong, but I wouldn't be surprised as VBA is for 32bit & works with the ActiveX stuff.
ccowgill
2009-07-15, 01:06 PM
Did you download & install the VBA thingy for 2010? I think the ActiveX stuff only works on the 64bit if you haven't installed the VBA extensions as well. May be wrong, but I wouldn't be surprised as VBA is for 32bit & works with the ActiveX stuff.
but why would the 64 bit work fine and not the 32?
irneb
2009-07-15, 01:13 PM
Because the 64 & 32 ARX files should not be the same files. ARX is a binary compiled DLL executable ... this means it will be specifically compiled for the OS and Product it runs in.
Do you have both the 64 & 32 AC installed on the same PC? No sure you can, but it would probably overwrite any "common" ARX's with the last installed.
Or maybe that's why I had the problem last time ... I think the ActiveX libraries are only installed with the 64 bit installation. The PC I tested 2010 on was 32 bit ... the only solution I got to using VLAX was to install the VBA extension for 2010.
ccowgill
2009-07-15, 01:19 PM
Because the 64 & 32 ARX files should not be the same files. ARX is a binary compiled DLL executable ... this means it will be specifically compiled for the OS and Product it runs in.
Do you have both the 64 & 32 AC installed on the same PC? No sure you can, but it would probably overwrite any "common" ARX's with the last installed.
Or maybe that's why I had the problem last time ... I think the ActiveX libraries are only installed with the 64 bit installation. The PC I tested 2010 on was 32 bit ... the only solution I got to using VLAX was to install the VBA extension for 2010.
I understand that the arx is compiled specifically for 32 or 64.
Yes they are both on the same system. As my signature states I am running a dual environment of both 09 and 10. However I am only experiencing this issue in 32bit 2010.
When I ran the install of 32, it did not install all the proper dll files where they belonged and I had to manually copy them from the cd to the proper locations, i used 64 bit as my template to make sure they were in the proper locations. I followed the exact steps I used to install 32 bit 2009 to install 32 bit 2010. Maybe Autodesk is just making it even more difficult to run 32 on 64.
Are you saying that you have had this exact issue?
irneb
2009-07-15, 01:42 PM
Yes, I installed 2010-32bit on a 32bit XP and it did nor run any vlax stuff. Then only after I've installed VBA (http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112&id=12900036&linkID=9240617) did these run. Some others had similar problems with some code of mine in 2010, which was resolved after they installed the VBA extensions. Check posts #27 & #28 in this thread: http://forums.augi.com/showthread.php?t=78139
When you say you manually copied the 32bit arx's did you have to change any registry settings to point AC to the correct folders?
ccowgill
2009-07-15, 09:43 PM
Yes, I installed 2010-32bit on a 32bit XP and it did nor run any vlax stuff. Then only after I've installed VBA (http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112&id=12900036&linkID=9240617) did these run. Some others had similar problems with some code of mine in 2010, which was resolved after they installed the VBA extensions. Check posts #27 & #28 in this thread: http://forums.augi.com/showthread.php?t=78139
When you say you manually copied the 32bit arx's did you have to change any registry settings to point AC to the correct folders?
I never changed any registry settings, all of the 32 bit arx's automatically loaded like they should, the reason they needed to be copied was AutoCAD was looking in the correct location, they just didnt get put there when I installed AutoCAD
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.