SaveInstanceNetworkW

This function saves the selected instance and its dependancies on location file name.

Syntax

//
//   Strong typing definition
//
int64_t         SaveInstanceNetworkW(
                        OwlInstance             owlInstance,
                        bool                    includeInverseRelations,
                        const wchar_t           * fileName
                    );

static  inline  int64_t SaveInstanceNetworkW(
                                OwlInstance             owlInstance,
                                bool                    includeInverseRelations,
                                wchar_t                 * fileName
                            )
{
    return  SaveInstanceNetworkW(
                    owlInstance,
                    includeInverseRelations,
                    (const wchar_t*) fileName
                );
}


//
//   Weak typing definition
//
int64_t __declspec(dllexport) __stdcall SaveInstanceNetworkW(
                                                int64_t                 owlInstance,
                                                bool                    includeInverseRelations,
                                                const wchar_t           * fileName
                                            );

static  inline  int64_t SaveInstanceNetworkW(
                                int64_t                 owlInstance,
                                bool                    includeInverseRelations,
                                wchar_t                 * fileName
                            )
{
    return  SaveInstanceNetworkW(
                    owlInstance,
                    includeInverseRelations,
                    (const wchar_t*) fileName
                );
}
    

Property owlInstance

Size: 64 bit / 8 byte (value)
The handle to the specific instance in the design tree. The instance handle is static within one open model but is most probably different when the same instance is opened in another model. The instance is always exactly of one unique class.

Property includeInverseRelations

Size: 8 bit / 1 byte (value)
When deciding what instances should be included in the network, each instance related through an inverse relation (recursively) should be included if this value is set to true.

Property fileName

Size: 64 bit / 8 byte (reference)
The file name of the file as available in the file system in Unicode (wchar_t *). The given wchar_t array will not be adjusted. The size of each wchar_t element is depending on the OS, both 16 bit / 2 bytes wchar_t elements as well as 32 bit / 4 byte wchar_t elements are recognized and supported.