Model States Retaining Parameter Data After Deletion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I've come across an issue today which I believe is unwanted behaviour to do with the model state table. If this is by design, then it would be good to understand why.
First I create a constraint between two components in an assembly. In one model state, that constraint has a value of 20mm and in the other model state it's 25mm. Because there is a difference between states, this has automatically created a new column in the model state table editor, with the header of the column showing "d5" (or whatever model parameter name is used for the constraint value). Makes sense so far... I have an existing constraint between existing parts and it's being controlled by the two different values. Great.
Now lets say I delete the constraint. This will automatically purge the d5 parameter (if it's a model parameter, user parameters will persist) that was storing the value, because it's now redundant and not being used by anything. This is normal behaviour as far as I'm concerned. But if I now open up the model state table, there is still a column showing the two different values for that parameter. The header of the column says it's controlling "d5", but if i look in the parameter list, this parameter doesn't exist anymore. This is really confusing, because there's nothing I can see indicating that the model state column is controlling a non-existent parameter.
I could understand if it was a user parameter and still existed in the parameter table, but the persistence of non-existent model parameters in the model state table doesn't make much sense to me. Maybe I'm just missing something... but perhaps there could be a tickbox to auto delete columns of non-existent parameters, or at the least throw out a warning message or highlight the column a different colour?
