|
ExtensionOpenDocument Method
|
Opens the specified SOLIDWORKS document silently.
Namespace:
CADSharpTools.SOLIDWORKS
Assembly:
CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntaxpublic static MethodReturn<ModelDoc2> OpenDocument(
this SldWorks swApp,
string filename,
string configurationName = ""
)
<ExtensionAttribute>
Public Shared Function OpenDocument (
swApp As SldWorks,
filename As String,
Optional configurationName As String = ""
) As MethodReturn(Of ModelDoc2)
Parameters
- swApp
- Type: SldWorks
SldWorks object. - filename
- Type: SystemString
Complete pathname of the SOLIDWORKS document. - configurationName (Optional)
- Type: SystemString
Configuration name.
Return Value
Type:
MethodReturnModelDoc2MethodReturn of ModelDoc2.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SldWorks. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also