Search Results for

    Show / Hide Table of Contents

    Method SetCondition

    SetCondition(ElementId, SmartBoolean)

    Sets the condition of an operation.

    Declaration
    [OperationContract]
    [AvailableSinceVersion(7, 12, 0, 0)]
    void SetCondition(ElementId inElementId, SmartBoolean inCondition)
    Parameters
    Type Name Description
    ElementId inElementId

    Identifier of the operation to modify.

    SmartBoolean inCondition

    Condition, or null if none.

    Remarks

    An exception will be thrown when trying to set a non-null condition to an operation that is not deactivable.

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

    This method is available since v7.12.

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

    Copyright ©2025 TopSolid - All rights reserved.