I want to get in a batch program the dependencies from an assembly with the method GetDependencies():
docName = "J:\\Company\\rade\\sld_dev\\myAss.SLDASM" swApp = win32com.client.Dispatch("SldWorks.Application") swMod = swApp.OpenDoc(docName, 2) dependencies = swMod.GetDependencies(1,1) swApp.CloseDoc(docName) swApp.ExitApp()
This works fine with assemblies was construct in my current SolidWorks2005 installation. But when I open assemblies from an older installation, I get the dialogue "The following documents will be converted when saved" (in german: "Die folgenden Dokumente werden beim Speichern konvertiert werden.") and I must respond to this dialogue. How can I eliminate this dialogue to run my program in batch without interaction?
When I want to get the dependencies from an assembly with missing/ nonconforming files I get a dialogue "Internal ID of document does not match the internal ID saved with the referencing document. Select yes to except or no to browse for replacement model" and I must also respond to this dialogue. How can I eliminate this dialogue to run my program in batch without interaction?
Thanks for your answer, Thomas