几何尺寸与公差论坛

 找回密码
 注册
查看: 1001|回复: 0

【转帖】what is the error activex cant create the objec

[复制链接]
发表于 2009-4-13 15:24:38 | 显示全部楼层 |阅读模式
what is the error: activex can't create the object.
i am using the swdocumentmgr 2007 type library.
my license key is apisupport assigned.
when run the following code , the error can see.
dim swdocmgr as swdocumentmgr.swdmapplication
dim swdoc as swdocumentmgr.swdmdocument
dim classfac as swdocumentmgr.swdmclassfactory
set classfac = createobject("swdocumentmgr.swdmclassfactory")
set swdocmgr = classfac.getapplication("license key") 'specify your license key
set swdoc = swdocmgr.getdocument("e:\1.sldprt", swdmdocumentpart, true, swdmdocumentopenerrornone)
debug.print "param string:" & swdoc.getcustomproperty("name", swdmcustominfotext)
swdoc.closedoc
set swdoc = nothing
set swdocmgr = nothing
set classfac = nothing
end sub
set swdocmgr = classfac.getapplication("license key") 'specify your license key
error: activex can't create the object.
what about it ?
license key is wrong ?
edited: 09/15/2008 at 11:03 pm by sha zhehua
license key is wrong thats pretty much the only problem. or dm isn't installed on the system, or you have not put the zlib or implode dll files into the same folder as your program/macro (although i don't think it would error out at this stage because of that)
dm is installed on my system . the zlib and implode dll files in the same folder(c:\program files\common files\solidworks shared).
then i'd say its the license key. triple check it
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 12:34 , Processed in 0.037180 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表