|
ExtensionOpenDocumentAsync 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 Task<MethodReturn<ModelDoc2>> OpenDocumentAsync(
this SldWorks swApp,
string filename
)
<ExtensionAttribute>
Public Shared Function OpenDocumentAsync (
swApp As SldWorks,
filename As String
) As Task(Of MethodReturn(Of ModelDoc2))
Parameters
- swApp
- Type: SldWorks
SldWorks object. - filename
- Type: SystemString
Complete pathname of the SOLIDWORKS document.
Return Value
Type:
TaskMethodReturnModelDoc2MethodReturn 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