CompoundStructure.IsValid
Description:
Checks for errors or inconsistencies in the data in this CompoundStructure.
Checks for errors or inconsistencies in the data in this CompoundStructure.
Remarks:
This check is run before the CompoundStructure may be assigned to a particular ElementType.
This check is run before the CompoundStructure may be assigned to a particular ElementType.
public bool IsValid(
Document doc,
out IDictionary<int, CompoundStructureError> errMap,
out IDictionary<int, int> twoLayerErrorsMap
)
-
docAccess to the document in which the CompoundStructure will be used.
-
errMapThis map will associate each problematic layer index to a value in CompoundStructureError. General structure errors are reported as associated to layer index -1.
-
IDictionary<Int32Int32>%twoLayerErrorsMapThe map is associated to a check run only for vertically Compound Structures. Essentially the Compound Structure is sliced at representative heights. It looks at the region from exterior to interior, and requires that the assigned layer indices do not decrease. If they do, an entry is generated for this map. The first entry is the last valid layer index encountered. The second entry is a region id whose assigned layer index is too small: it should be at least as large as the first entry.
-
A non-optional argument was null