|
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? |
|