| 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: 0.8.1.0 (0.8.1.0)
Syntax public static IThirdPartyStreamHandler Access3rdPartyStream(
this IModelDoc2 model,
string name,
bool write
)
<ExtensionAttribute>
Public Shared Function Access3rdPartyStream (
model As IModelDoc2,
name As String,
write As Boolean
) As IThirdPartyStreamHandler
public:
[ExtensionAttribute]
static IThirdPartyStreamHandler^ Access3rdPartyStream(
IModelDoc2^ model,
String^ name,
bool write
)
Parameters
- model
- Type: IModelDoc2
Pointer to document - name
- Type: SystemString
Name of the stream - write
- Type: SystemBoolean
True to open for writing, false to open for reading
Return Value
Type:
IThirdPartyStreamHandlerPointer 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