Hide Table of Contents
Get3rdPartyStorageStore Method (ISwDMDocument19)

Gets the IStorage interface to the specified third-party storage store of this model document.

.NET Syntax

Visual Basic (Declaration) 
Function Get3rdPartyStorageStore( _
   ByVal SubStorageName As System.String, _
   ByVal IsStoring As System.Boolean _
) As System.Object
Visual Basic (Usage) 
Dim instance As ISwDMDocument19
Dim SubStorageName As System.String
Dim IsStoring As System.Boolean
Dim value As System.Object
 
value = instance.Get3rdPartyStorageStore(SubStorageName, IsStoring)
C# 
System.object Get3rdPartyStorageStore( 
   System.string SubStorageName,
   System.bool IsStoring
)
C++/CLI 
System.Object^ Get3rdPartyStorageStore( 
&   System.String^ SubStorageName,
&   System.bool IsStoring
) 

Parameters

SubStorageName
Name of the storage
IsStoring
True if writing data, false if reading data

Return Value

Pointer to Unknown (see Remarks)

Example

Remarks

After calling this method, you must call ISwDMDocument19::Release3rdPartyStorageStore. Otherwise, the third-party node might remain locked and prevent future access.

NOTE: The name given to the storage should be registered so that no conflicts occur. Once registered, the storage name is reserved exclusively for your application.

Passing the unique ID string and a flag to determine if data is being stored or loaded returns an IUnknown pointer. You must then use QueryInterface() to get the Microsoft.VisualStudio.OLE.Interop.IStorage interface. The storage object is used for serialization and then released in the third-party code.

The IStorage object used by the third party is written under an IStorage object called ThirdPtyStore in the SOLIDWORKS compound document. Each third party writes to a single IStorage whose name is assigned by SOLIDWORKS.

SwRootStorage --|

        |-- ThirdPtyStore --|

                |-- <SW Assigned IStorage name 1> --|

                                  |-- <Application 1 IStream name 1>

                                  |-- <Application 1 IStream name 2>

                |-- <SW Assigned IStorage name 2> --|

                                  |-- <Application 2 IStream name 1>

                                  |-- <Application 2 IStream name 2>

                                  |-- <Application 2 IStorage name 2> --|

                                                     |-- <Application 2 IStream name 3>

NOTE: If you are using serialization, then be careful with the standard MFC macros. Otherwise, you may get a message like Unexpected File Format after your application is unloaded. One way of using IMPLEMENT_SERIAL:

IMPLEMENT_SERIAL( CCustomAttr, CObject, VERSIONABLE_SCHEMA|0 )

 

See Also

Availability

SOLIDWORKS Document Manager API 2015 SP0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Get3rdPartyStorageStore Method (ISwDMDocument19)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2024 SP04

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.