Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Geometry Namespace / UtilityEx Class / CheckDataIntegrity Method
The log file containing details about shared items.
The dictionary containing the shared items.

Listed below are the element types you can find in it

- Layer: items that belong to the devDept.Eyeshot.ViewportLayout.Layers collection.

- Block: items that belong to the devDept.Eyeshot.ViewportLayout.Blocks collection.

- Material: items that belong to the devDept.Eyeshot.ViewportLayout.Materials collection.

- TextStyle: items that belong to the devDept.Eyeshot.ViewportLayout.TextStyles collection.

- LinePattern: items that belong to the devDept.Eyeshot.ViewportLayout.LineTypes collection.

- Entity: items that belong to the devDept.Eyeshot.ViewportLayout.Entities collection.

- BlockEntity: items that belong to the devDept.Eyeshot.Block.Entities collection.

- BlockEntity+Entity: items that belong both to the devDept.Eyeshot.Block.Entities and to the devDept.Eyeshot.ViewportLayout.Entities collections.


In This Topic
    CheckDataIntegrity Method
    In This Topic
    Checks the data integrity between the ViewportLayouts.

    It compares item-by-item all the master collections of all the ViewportLayout instances, searching for objects used in more than one ViewportLayout.

    Syntax
    'Declaration
     
    Public Shared Function CheckDataIntegrity( _
       ByRef log As String, _
       ByRef sharedItems As Dictionary(Of String,Dictionary(Of Object,HashSet(Of String))) _
    ) As Boolean
    public static bool CheckDataIntegrity( 
       out string log,
       out Dictionary<string,Dictionary<object,HashSet<string>>> sharedItems
    )

    Parameters

    log
    The log file containing details about shared items.
    sharedItems
    The dictionary containing the shared items.

    Listed below are the element types you can find in it

    - Layer: items that belong to the devDept.Eyeshot.ViewportLayout.Layers collection.

    - Block: items that belong to the devDept.Eyeshot.ViewportLayout.Blocks collection.

    - Material: items that belong to the devDept.Eyeshot.ViewportLayout.Materials collection.

    - TextStyle: items that belong to the devDept.Eyeshot.ViewportLayout.TextStyles collection.

    - LinePattern: items that belong to the devDept.Eyeshot.ViewportLayout.LineTypes collection.

    - Entity: items that belong to the devDept.Eyeshot.ViewportLayout.Entities collection.

    - BlockEntity: items that belong to the devDept.Eyeshot.Block.Entities collection.

    - BlockEntity+Entity: items that belong both to the devDept.Eyeshot.Block.Entities and to the devDept.Eyeshot.ViewportLayout.Entities collections.

    Return Value

    True when no instances are shared between different ViewportLayouts, otherwise false.
    Remarks
    You can't share objects (i.e. devDept.Eyeshot.Entities.Entity, devDept.Eyeshot.Block, devDept.Graphics.Material, etc.) between different ViewportLayouts, but you need to clone them before adding to another ViewportLayout. If you get wrong display results or artifacts, you can use this method to check out shared elements.
    See Also