Find and Replace

Use this forum to post Vensim related questions.
Post Reply
james.m.rollins
Junior Member
Posts: 14
Joined: Thu Jul 26, 2018 7:12 pm
Vensim version: DSS

Find and Replace

Post 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
Attachments
agg_i_v15_2021_12_16.mdl
(317.61 KiB) Downloaded 91 times
tomfid
Administrator
Posts: 3808
Joined: Wed May 24, 2006 4:54 am

Re: Find and Replace

Post 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++.
james.m.rollins
Junior Member
Posts: 14
Joined: Thu Jul 26, 2018 7:12 pm
Vensim version: DSS

Re: Find and Replace

Post by james.m.rollins »

@tomfid - Thank you! Worked like a charm . . .
Post Reply