@c.poupin - This worked perfectly for multiple instances in multiple text notes both inside and and outside of detail groups. Thanks!
Now here’s the second part: this works if I need to replace specific text, with specific other text. I have a specific format for sheet numbers that are referenced within the text notes: A0.00. I need to replace them with the following format: A-000. Each project could have different sheet notes referenced throughout all of the text notes in the project.
I’ve created another script to apply this change to all sheet numbers, for the sheets themselves (see the 3-part images).
Basically, it:
- Gets a list of all the sheets, gets their values for a parameter called “Sheet Discipline”, and then filters out any sheets that have 3 specific values for that “Sheet Discipline” parameter.
- Then, it removes the period from all of the sheet numbers.
- Then, it splits the strings of all of the sheet numbers into 2 lists where one list has the letter(s) for each sheet number, and the other has the numbers for each sheet number.
- Then a “-” is added to the end of all of the items in the letter list.
- The 2 lists are then recombined to have all of the sheet numbers have the correct format (i.e. A-000, instead of A0.00).
- Finally, all of the Sheet Numbers are replaced with the newly formatted value.
The reason I mention all that is because it’s able to make the change to any sheet number that happens to exist (each project will have different sheet numbers). As mentioned above, I need the script that we’re talking about here to do the same thing.
Any thoughts on how I can implement that (and whether or not the script I built that I describe above could be useful for this)?
Thanks VERY much as always!
Scott