Jump to content

How can I clear all fitting models while keeping some.


Priyank Dwivedi

Recommended Posts

A simple IronPython script allows me to clear "ALL" fitting models from any visualization as:

vis.FittingModels.Clear()

 

What if I have 5 fitting models and I want to keep the first 2 but delete the rest. Note that the number of fitting models in a vis is DYNAMIC. For example, it could be 5 or 10, but I always have to clear all but the top 3 fitting models.

I tried using vis.FittingModel.contains(...) but it did not work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...