I am running Vensim Version 9.0.0 - Updating a file created in an earlier version of Vensim 8.X
I needed to globally update the naming convention of two classes of variables in the attached model:
- EBPsych to EBPsy
- Psych to PSY
I followed the steps below:
1. Changed view to "View as Text"
2. Changed EBPsych to EBPsy using the Find and Replace tool.
3. Changed Psych to PSY using the Find and Replace tool.
4. Saved the model.
5. Returned view to "View as Sketch"
When I returned the model sketch, all of the renamed variables did not render. They are listed in the "Edit - Find" listing, but when I select "OK" to navigate to them, the model indicates they are not available.
What can I do to correct this?
Thank you!
James
Find and Replace
-
- Junior Member
- Posts: 14
- Joined: Thu Jul 26, 2018 7:12 pm
- Vensim version: DSS
Find and Replace
- Attachments
-
- agg_i_v15_2021_12_16.mdl
- (317.61 KiB) Downloaded 91 times
Re: Find and Replace
I suspect that your search & replace only applied to the equations, leaving the diagram disconnected after the changes.
To avoid that, uncheck the "Hide non-editable parts of the model" box in the text editor before the replace operation. Or, do the search & replace in an external editor like Notepad++.
To avoid that, uncheck the "Hide non-editable parts of the model" box in the text editor before the replace operation. Or, do the search & replace in an external editor like Notepad++.
/*
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
*/
-
- Junior Member
- Posts: 14
- Joined: Thu Jul 26, 2018 7:12 pm
- Vensim version: DSS
Re: Find and Replace
@tomfid - Thank you! Worked like a charm . . .