Refactoring without "Error: undeclared property ... " Follow
Hi Mps-Team,
i have a very special questions:
(1) If i have a concept "MyConcept" with a boolean property mybool
(2) and there are already instances of MyConcept in some solutions
(3) and i remove the mybool property in the MyConcept
then instances of MyConcept in the solution get red underlined with the message saying "Error: undeclared property mybool"
How can i avoid that - or automatically refactor it in a way, that the mybool gets deleted in the instances ?
Best,
Dan
i have a very special questions:
(1) If i have a concept "MyConcept" with a boolean property mybool
(2) and there are already instances of MyConcept in some solutions
(3) and i remove the mybool property in the MyConcept
then instances of MyConcept in the solution get red underlined with the message saying "Error: undeclared property mybool"
How can i avoid that - or automatically refactor it in a way, that the mybool gets deleted in the instances ?
Best,
Dan
Please sign in to leave a comment.
We are now thinking about how to handle such "undeclared properties". If you are interested in discussion or have some ideas - I can write here my thoughts about it.
Currently, you can use the "Remove undeclared child and references" script, which will correct your models after refactoring of this type. See screenshot (the "Scripts" submenu not visible on screenshot).
Thanks for your attention,
Mihail.