1 Reply Latest reply on Feb 10, 2018 9:41 AM by Jacob Corder

    Reloading Sheet Format via API - Why am I getting a Popup in SolidWorks? (C#)

    Sean Donnelly

      Hello, I have a weird instance happening here. In my testing, I was able to refresh the sheet formats of multiple drawings using the below code. However, When I'm doing it live I seem to be prompted for this window in SolidWorks. Any ideas why I'm getting this message?

       

      Note: when I debugged, it said the filepath to my current template was the correct vault path, but instead of C:\Vault it is s:\Vault. We do not have a drive that exists with that name and our Vault is only on the local drive. Thoughts?

       

       

      // Reload the sheet format from the specified location
                  swDraw.SetupSheet5(swSheet.GetName(), (int)swDwgPaperSizes_e.swDwgPapersUserDefined, (int)swDwgTemplates_e.swDwgTemplateCustom, vSheetProps[2], vSheetProps[3], false, currentTemplate, 0.4318, 0.2794, "Default", true);