Small Fish 发表于 2022-7-6 09:14:36

(vl-load-com) not loading in a

Hi I have just starting using acad 2010 (from acad 2007) for some reason I get the message
 
; error: no function definition: VLAX-GET-ACAD-OBJECT
 
when I try my code with vl functions.
 
In the vlide my vlisp functions are black text instead of the usual blue(meaning vlisp functions are not loaded)
 
In 2007 there is no problem- but for some reason I can not make it work in 2010. I have tried typing (vl-load-com) to load
Any ideas???
thanks
S.F.

Shawndoe 发表于 2022-7-6 09:20:29

Hi,
 
Is this a new installation?If so did it go smoothly?It sounds like an install problem.
 
You could try to manually load vl.arx from the ACAD root install directory, then try (vl-load-com) again.
 
Have a good one.
Shawn

lpseifert 发表于 2022-7-6 09:21:41

Maybe you need to install VBA. I don't think it comes with the 2010 installation. See here...
http://usa.autodesk.com/adsk/servlet/autoindex?siteID=123112&id=12715663&linkID=9240618
 

The above is probably wrong... have a look here
http://www.theswamp.org/index.php?topic=29484.0
http://www.theswamp.org/index.php?topic=29707.0

gile 发表于 2022-7-6 09:27:10

Hi,
 
No need to install VBA.
The COM Interop is still available with A2010 and will continue to be after VBA will go away (many other languages than VB(A) as Visual LISP, dotNET can use COM).

Lee Mac 发表于 2022-7-6 09:27:39

Type (vl-load-com) at the command line, and then restart/refresh VLIDE. I found I had to do this with 2010, in future, just put (vl-load-com) in your ACADDOC.lsp

Small Fish 发表于 2022-7-6 09:31:38

Yes I tried typing (vl-load-com) in the command line then restarting the vlide
....but that does not work. I looked at the posts that Gile had supplied but it does not give a definitive answer.
 
When I start up I also get the message:
 
 
 
Shaun Huley from Autodesk says:
 
I have also tried to manullly load the vl.arx file but this had no effect.
 
I have also tried typing in ACADINFO
and at the resulting text file and I get an error with
 
 
God knows why its looking for the ACAD2009DOC.lsp when I have never used acad 2009 on this machine!!???
 
I am reluctant to do a reinstall as results from other posts say this did not always fix the problem.
 
I have just found out that every other user in our office has the same problem:(
 
I will keep researching and experimenting........

Shawndoe 发表于 2022-7-6 09:36:03

Check this thread out.It saying try a repair in control panel.
 
http://discussion.autodesk.com/forums/thread.jspa?messageID=6224939
 
Have a good one.
Shawn

Small Fish 发表于 2022-7-6 09:38:05

The problem has been fixed - so just for the record and if anyone else has the same problem:
 
Install "Trueview" and "Design review"

rkmcswain 发表于 2022-7-6 09:42:35

 
If you are saying that you have to install Trueview and Design Review in order for AutoCAD to be able to access the VL functions, then this is false.
 
If that worked for you then it sounds like the AutoCAD install failed at some point and maybe the TrueView install completed whatever else was needed.

Small Fish 发表于 2022-7-6 09:45:24

 
Yes its true - are you telling me I'm lying?
The problem is not just on one computer but many in this country and other branches overseas.
 
Autocad 2010 installed perfectly well. There was no error in the install. As I understand Trueview is optional in the install. Because we jumped from acad 2007 to acad 2010, there is some sort of conflict with dll files overwritten or not installing
 
The point I'm making is that it's important to tick the optional Trueview box during install of acad 2010 (if going from from acad 2007 to 2010).
It works for us - and anyone that has this problem I recommend trying it.
页: [1] 2
查看完整版本: (vl-load-com) not loading in a