Model .droplink for in-model text
Posted: Fri Jun 06, 2025 5:28 am
I am having trouble programming a file to drop an identity within a model created via @append.
Say I had an identity Z= X+Y within a model object as a text-equation via '[model].append @identity Z=X+Y' and the model object has listed that as Eq3 after an equation for X and Y. Now suppose I want to change that identity for some reason. Before creating my new identity I have to delete the old one (to avoid two equations with the same RHS variable). I can do this manually by clicking on Eq3>right-click>delete and it uses .droplink in the capture window. Coding for an equation object Eq1 I can use '[model].droplink Eq1' but this does not seem to work for text equations such as Eq3 in this example, despite capture window showing droplink is used. Any help would be great?
Happy to provide a file but hopefully the simple example above is enough.
Thank you
Say I had an identity Z= X+Y within a model object as a text-equation via '[model].append @identity Z=X+Y' and the model object has listed that as Eq3 after an equation for X and Y. Now suppose I want to change that identity for some reason. Before creating my new identity I have to delete the old one (to avoid two equations with the same RHS variable). I can do this manually by clicking on Eq3>right-click>delete and it uses .droplink in the capture window. Coding for an equation object Eq1 I can use '[model].droplink Eq1' but this does not seem to work for text equations such as Eq3 in this example, despite capture window showing droplink is used. Any help would be great?
Happy to provide a file but hopefully the simple example above is enough.
Thank you