Search Results for

    Show / Hide Table of Contents

    Method CreateSubclass

    CreateSubclass(ElementId, string, string, string)

    Creates a class entity as a subclass of a higher level class entity.

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

    Identifier of the higher level class entity 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 enough level entities 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.