Engineering Systems

Unknown File format for .sldprt file - Standalone Batch Program

Discussion created by Engineering Systems on Sep 10, 2019
Latest reply on Sep 16, 2019 by Engineering Systems

Hi Guys,

 

I have written a standalone batch script in VB.net that Checkin the .sldprt file to 3DExperience (As I have 3DExperience connector as PDM installed). When I select the file from Enoserver.BrowseforFile() API, I get this error.

 

Code:

 newSelection = server.BrowseForFile(Me.Handle.ToInt32,

                                            EnoBrowseFlag.EnoBws_ForOpen + EnoBrowseFlag.EnoBws_PermitMultipleSel + EnoBrowseFlag.EnoBws_PermitLocalFiles + EnoBrowseFlag.EnoBws_PermitVaultFiles,

                                            "(*.sldprt; *.sldasm; *.slddrw)|*.sldprt;*.sldasm;*.slddrw|All Files (*.*)|*.*||", "",

                                            "", server.RootFolderPath, "Select Files to CheckIn ")

 

But when I try to Checkin the same file from windows form (Manual Checkin) or through solidworks application, I donot get this error and CheckIn of file gets executed.

 

Could some one help me out on what needs to be included in my batch to recognize the .sldprt file.

 

Artem Taturevych SolidWorks API Support Greg Jankowski Jason Capriotti

 

 

Thanks,

Outcomes