Click or drag to resize

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)
Syntax
public static Task<MethodReturn<ModelDoc2>> OpenDocumentAsync(
	this SldWorks swApp,
	string filename
)

Parameters

swApp
Type: SldWorks
SldWorks object.
filename
Type: SystemString
Complete pathname of the SOLIDWORKS document.

Return Value

Type: TaskMethodReturnModelDoc2
MethodReturn 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