ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
fgfeesa g13/03/2025

Hi,

I want to replace Part model in all the views of a drawing file,
I am using the below code:
 

ModelDoc2 Drawingfile = (ModelDoc2)swApp_Active.GetOpenDocumentByName(NEW_FILE_PATH.Replace(".SLDPRT", ".SLDDRW")); if (Drawingfile == null) Drawingfile = swApp_Active.OpenDoc6(NEW_FILE_PATH.Replace(".SLDPRT", ".SLDDRW"), (int)swDocumentTypes_e.swDocDRAWING, (int)swOpenDocOptions_e.swOpenDocOptions_Silent,