Search Results for

    Show / Hide Table of Contents

    Method EndModification

    EndModification(bool, bool)

    Ends performing modifications.

    Declaration
    [OperationContract]
    [AvailableSinceVersion(7, 11, 300, 80)]
    void EndModification(bool inIsOk, bool inUpdates)
    Parameters
    Type Name Description
    bool inIsOk

    Whether the modifications have been successful.

    bool inUpdates

    Whether to perform an update.

    Remarks

    This method must be called after the StartModification(string, bool) method has been called and has returned true.

    If the modifications have not been successful, they are undone when possible.

    This method is available since v7.6.

    Examples
    if (TopSolidHost.Application.StartModification("My Modification", false)) 
    {
    	try
    	{
    		// Perform my modification.
    
    		TopSolidHost.Application.EndModification(true, true);
    	}
    	catch
    	{
    		TopSolidHost.Application.EndModification(false, false);
    	}
    }
    In this article
    Back to top
    • Term of use
    • Corporate information
    • Privacy Policy - GDPR

    Copyright ©2025 TopSolid - All rights reserved.