Click or drag to resize

ModelDocExtensionAccess3rdPartyStream Method

Access the 3rd party storage (stream) for reading or writing

Namespace:  SolidWorks.Interop.sldworks
Assembly:  CodeStack.SwEx.AddIn (in CodeStack.SwEx.AddIn.dll) Version: (
public static IThirdPartyStreamHandler Access3rdPartyStream(
	this IModelDoc2 model,
	string name,
	bool write


Type: IModelDoc2
Pointer to document
Type: SystemString
Name of the stream
Type: SystemBoolean
True to open for writing, false to open for reading

Return Value

Type: IThirdPartyStreamHandler
Pointer to the stream handler

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IModelDoc2. 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