I am having trouble when outputting IFCs using the SolidWorks API.
swModel = (ModelDoc2)swApp.ActiveDoc;
swSlcMan = (SelectionMgr)swModel.SelectionManager;
int i = 0;
i = swSlcMan.GetSelectedObjectCount2(0);
swComponent = swSlcMan.GetSelectedObject6(i, 0);
int boolstat;
boolstat = swModel.SaveAs3(@"C:\Desktop\IFC\TEST.ifc", 0, 0);
This Code works fine, however all other components become unsuppressed.
Is there a way to control the suppression of the components when being saved with the API?
Many Thanks
I have found a way that seems to work very well.
Select and Delete all the suppressed components, then Export the IFC, then use swModel.EditUndo2().
This will then Un-Delete the components, returning the model back to its original state.
Hope that helps your guys too.