几何尺寸与公差论坛

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

【转帖】reading solidworks file configuration without opening the file

[复制链接]
发表于 2009-4-12 19:21:32 | 显示全部楼层 |阅读模式
reading solidworks file configuration without opening the file
hi all,
is there a way to extract properties from solidworks files without actually opening them in solidworks application?
currently we create a solidworks application object and open the file in it using opendoc6(...) method to get a modeldoc2 document. then using the methods in modeldoc2 (getconfigurationbyname) we read the configurations and sub-configurations and their properties to display in the application.
the problem that we see with this method is that it is opening each and every file in solidworks, reading the configurations and properties and then closing them. this i guess crashes solidworks after processing around 50 files. solidworks then refuses to open a file using the opendoc6 method (returns nothing in vb).
we have made changes to re-start solidworks application after processing 50 files which has solved the issue (skipping of files) to some extent but still some files are being skipped.
application details:
the application is written for excel in vba and we are using solidworks 2009 sp 0.0
answer you can use the solidworks documentmanager object to access this type of information in sw. swdm requires a license key, which is free but must be requested.
roland,
how can i request for this key? should i ask for the documentmanager license key?
thanks
ujwal
also, is the key specific to the solidworks license or will the same key works with different sw licenses?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-22 23:32 , Processed in 0.035662 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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