Clean up workpage
Posted: Thu Dec 20, 2018 11:11 am
Hi
I have a workpage that contains a lot of unnecessary objects (i.e. series, scalars, vectors etc). In that workpage I have a model. I would like to remove all objects that are not related to the model.
I can find the series objects that are not related to the model using the @wflookup("*", "series") and model.@varlist commands. however, i do not know how to do the same for scalars and vectors. some equations in the model use information from some of the scalars and vectors, but not all of the scalars and vectors are used in the model object.
how can I find the scalars and vector that are NOT used by the model object, and the delete them from the workfile?
Thomas
I have a workpage that contains a lot of unnecessary objects (i.e. series, scalars, vectors etc). In that workpage I have a model. I would like to remove all objects that are not related to the model.
I can find the series objects that are not related to the model using the @wflookup("*", "series") and model.@varlist commands. however, i do not know how to do the same for scalars and vectors. some equations in the model use information from some of the scalars and vectors, but not all of the scalars and vectors are used in the model object.
how can I find the scalars and vector that are NOT used by the model object, and the delete them from the workfile?
Thomas