Table of Contents

Class SolidworksManager

Namespace
Hymma.Solidworks.Extensions
Assembly
Hymma.Solidworks.Extensions.dll

Handles SolidWorks.Interop.sldworks.ISldWorks

public static class SolidworksManager
Inheritance
SolidworksManager
Inherited Members

Methods

StartNewSolidworksApp(ProcessStartInfo, int)

starts a new SOLIDWORSK instance and returns the SolidWorks.Interop.sldworks.ISldWorks

public static ISldWorks StartNewSolidworksApp(ProcessStartInfo info, int timeoutSec = 10)

Parameters

info ProcessStartInfo
timeoutSec int

Returns

ISldWorks

A new instance of SolidWorks.Interop.sldworks.ISldWorks

Exceptions

TimeoutException

StartNewSolidworksApp(string, int)

starts a new SOLIDWORSK instance and returns the SolidWorks.Interop.sldworks.ISldWorks

public static ISldWorks StartNewSolidworksApp(string executablePath = "C:\\Program Files\\SOLIDWORKS Corp\\SOLIDWORKS\\SLDWORKS.exe", int timeoutSec = 10)

Parameters

executablePath string

Its best to ask users to explicitly browse to the location of solidworks install. However the default install path is the value of this parameter. When calling from your addins, use extension

ISldWorks.GetExecutableFullFileName()
timeoutSec int

Returns

ISldWorks

A new instance of SolidWorks.Interop.sldworks.ISldWorks

Exceptions

TimeoutException