Request

Response

    IElementDataModel.Classify method

    Find-or-creates the (system, value) classification nested under parent (root if null), attaches element under the deepest classification, and returns the handle. Reuse-on-identical / throw-on-conflict by SourceId (D-6).

    public IClassification Classify(IElement element, ClassificationSystem system, string value, 
        IClassification parent = null, string sourceId = null)
    
    parameterdescription
    element The element to classify (from AddElement).
    system The classification system, e.g. Category / Layer, or Custom for a host-specific or industry-specific system (GroupAsset.Description).
    value Classification value, e.g. "Walls" (GroupAsset.ObjectInfo.Name).
    parent Parent classification handle from a prior Classify, or null for a root.
    sourceId Optional connector id; empty/null = "no opinion" (reuse). Differing non-empty = conflict (throws).

    Return Value

    The classification handle (the deepest node this element now hangs under).

    See Also