AnsweredAssumed Answered

EDrawings/SolidWorks Batch Save As

Question asked by 1-90URGO on Apr 20, 2009
Latest reply on Apr 24, 2009 by 1-YJ1IM

I am writing a custom program (C# .NET) to batch Save As SolidWorks files (.SLDASM, .SLDPRT, .SLDDRW) to their EDrawing equivalents. I have tried using the EDrawings viewer component to do this but it duplicates parts within the assembly (See Figure 1 - "save_as_edrawing.jpg"). I had our Engineering dept Save As through SolidWorks and it works like a charm (See Figure 2 - "save_as_solidworks.jpg").

How would I do this using the SolidWorks API? I have only worked with the EDrawings API. Also, what are the licensing issues around this? I will not be viewing files through SolidWorks, only EDrawings. Another thought... I have been passing an empty string through to the EModelControl Save function's CommandString argument, is there a CommanString to stop the duplicate parts? (maybe a link that shows the possible CommandStrings and their imapct?).