Lookups in new equation editor
Lookups in new equation editor
Apologies if this has been previously dealt with. With the new equation editor there seems to be no way to input different equations for subscript sub-ranges for lookup functions. The dialogue box doesn't allow selection of sub-ranges only the subscript family. This seems to only be the case for lookups as it is okay for other variables. I can fix it using the legacy editor and then when I reinstate the new editor I can modify the equations. Seems just to be an issue for new lookups.
Re: Lookups in new equation editor
It works - example:
Click the Subscripts button the first time you add ranges to set the relevant families
Use the [+] button to add a tab if you need an additional element
Right-click the new tab to set Subranges and Elements (and Exceptions if any)
... or use the Subranges and Elements option in the dropdown menu on the Subscripts button (which otherwise defaults to setting the family)
This takes more clicks than the old way, but it screens out a lot more errors.
Another option - if you're creating lots of elements - is to switch to the text editor, so you can use copy-paste.
Procedure:Click the Subscripts button the first time you add ranges to set the relevant families
Use the [+] button to add a tab if you need an additional element
Right-click the new tab to set Subranges and Elements (and Exceptions if any)
... or use the Subranges and Elements option in the dropdown menu on the Subscripts button (which otherwise defaults to setting the family)
This takes more clicks than the old way, but it screens out a lot more errors.
Another option - if you're creating lots of elements - is to switch to the text editor, so you can use copy-paste.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Lookups in new equation editor
Not sure why but I don't get that screen. My model has a subscript family called "Plant species" with 3 sub-ranges. If I create a new lookup I get the attached screen when I select subscripts which only shows the family. I am not seeing any "+" button.
- Attachments
-
- Screenshot 2025-05-04 112506.png (58.24 KiB) Viewed 279 times
Re: Lookups in new equation editor
It's a two-tier process.
First (and only once), set the family associated with the equation: Then, if you need distinct equations for subranges or specific elements, right-click the tab or use the dropdown on the Subscripts button to set those:
First (and only once), set the family associated with the equation: Then, if you need distinct equations for subranges or specific elements, right-click the tab or use the dropdown on the Subscripts button to set those:
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Lookups in new equation editor
Note that the [+] button becomes visible after you make the initial family selection:
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Lookups in new equation editor
Got it now. That last step was the issue as this seems to be different that for normal variables. Thx