Hello,
There are different swDocumentTypes_e in SolidWorks. In that what is the meaning of swDocumentTypes_e::swDocIMPORTED_PART and swDocumentTypes_e::swDocIMPORTED_ASSEMBLY?
If available please share the test case of it.
Hello,
There are different swDocumentTypes_e in SolidWorks. In that what is the meaning of swDocumentTypes_e::swDocIMPORTED_PART and swDocumentTypes_e::swDocIMPORTED_ASSEMBLY?
If available please share the test case of it.
Hi,
If you want to import files from other CAD software and you did not change their file type into Parasolid or other data exchange format.
In that case, you need to use swDocIMPORTED_ASSEMBLY, swDocIMPORTED_PART enums for importing those files in Solidworks software.
Example:
I have Autodesk Inventor and Solidworks in my company.
Now I want to use Inventor files (an assembly let us say) directly into Solidworks without converting into Parasolid or IGES then I will import Inventor file using swDocIMPORTED_ASSEMBLY enum.
Now I need to tell my program that the file I am using is a Solidworks file or not.
Since I am using an Inventor software file, then the program will be crashed might be giving an error of unrecognized file format !!
To avoid these we use Import type documents.
Now you can say that I can convert the file and import directly.
Then I have to programmatically convert each file into exchange data formats which is extra steps and I personally tried to avoid this due to performance issues.
Another thing is that the Inventor file might be used by some other person at the same time.
So converting the Inventor file after small modification will be an issue.
If you want a Test case then I found one in official Solidworks API help at below link:
2020 SOLIDWORKS API Help - 3D Interconnect to Import Third-Party Native CAD Files Example (C#)
If you want to read about those document type then visit below link:
2020 SOLIDWORKS API Help - swDocumentTypes_e Enumeration
I hope this will help you.
Please correct me if I am wrong I don't mind being corrected.
Thanks
Probably for 3-D Interconnect files.