Page 1 of 1

Find and Replace

Posted: Sun Jan 09, 2022 4:35 pm
by james.m.rollins
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

Re: Find and Replace

Posted: Sun Jan 09, 2022 7:34 pm
by tomfid
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++.

Re: Find and Replace

Posted: Mon Jan 10, 2022 4:26 pm
by james.m.rollins
@tomfid - Thank you! Worked like a charm . . .