Priyank Dwivedi Posted January 12, 2022 Share Posted January 12, 2022 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 More sharing options...
Anna Lundberg Posted January 17, 2022 Share Posted January 17, 2022 vis.FittingModels.Contains(..) should work since this is a FittingModelCollection. Note the s in the end on FittingModels and capital C on Contains. See more information in the C# API documentation here: https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/tib_sfire-a... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now