乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 44|回复: 19

[编程交流] (vl-load-com) not loading in a

[复制链接]

55

主题

243

帖子

188

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
275
发表于 2022-7-6 09:14:36 | 显示全部楼层 |阅读模式
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.
回复

使用道具 举报

6

主题

47

帖子

36

银币

初来乍到

Rank: 1

铜币
36
发表于 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
回复

使用道具 举报

4

主题

940

帖子

961

银币

初来乍到

Rank: 1

铜币
12
发表于 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
回复

使用道具 举报

15

主题

687

帖子

169

银币

中流砥柱

Rank: 25

铜币
582
发表于 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).
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 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
回复

使用道具 举报

55

主题

243

帖子

188

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
275
发表于 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........
回复

使用道具 举报

6

主题

47

帖子

36

银币

初来乍到

Rank: 1

铜币
36
发表于 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
回复

使用道具 举报

55

主题

243

帖子

188

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
275
发表于 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"
回复

使用道具 举报

24

主题

1265

帖子

1028

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
362
发表于 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.
回复

使用道具 举报

55

主题

243

帖子

188

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
275
发表于 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.
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-7 06:14 , Processed in 0.504381 second(s), 72 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表