UtilityEx.CheckDataIntegrity Method
It compares item-by-item all the master collections of all the Environment instances, searching for objects used in more than one Environment.
Public Shared Function CheckDataIntegrity( _
ByRef log As String, _
ByRef sharedItems As Dictionary(Of String, Dictionary(Of Object, HashSet(Of String))) _
) As Boolean
This language is not supported or no code example is available.
Parameters
- log
- string
The log file containing details about shared items.
- sharedItems
- Dictionary<string, Dictionary<object, HashSet<string>>>
The dictionary containing the shared items.
Listed below are the element types you can find in it
- Layer: items that belong to the Environment.Layers collection.
- Block: items that belong to the Environment.Blocks collection.
- Material: items that belong to the Model.Materials collection.
- TextStyle: items that belong to the Environment.TextStyles collection.
- LineType: items that belong to the Environment.LineTypes collection.
- HatchPattern: items that belong to the Environment.HatchPatterns collection.
- Entity: items that belong to the Environment.Entities collection.
- BlockEntity: items that belong to the Block.Entities collection.
- BlockEntity+Entity: items that belong both to the Block.Entities and to the Environment.Entities collections.
Return Value
boolTrue when no instances are shared between different Environment controls, otherwise false.