Search Results for

    Show / Hide Table of Contents

    Method CreateClass

    CreateClass(DocumentId, string, string, string)

    Creates a first level class entity in a classification document.

    Declaration
    [OperationContract]
    [AvailableSinceVersion(7, 10, 0, 0)]
    ElementId CreateClass(DocumentId inDocumentId, string inDescription, string inCode, string inComment)
    Parameters
    Type Name Description
    DocumentId inDocumentId

    Identifier of the classification document to modify.

    string inDescription

    Class description.

    string inCode

    Class code, or empty string if none.

    string inComment

    Class comment, or empty string if none.

    Returns
    Type Description
    ElementId

    Identifier of the created class entity.

    Remarks

    StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.

    The classification document must contain at least one level entity otherwise an exception is thrown.

    This method is available since v7.10.

    In this article
    Back to top
    • Term of use
    • Corporate information
    • Privacy Policy - GDPR

    Copyright ©2025 TopSolid - All rights reserved.