Finding and replacing is a common feature, I've explained it For Excel. When applied in mapping or CAD, the possibilities of finding what we are looking for are more complex, since it is not only the Attribute search.
The problem, replace texts
I have a map with more than 800 numbered buildings. I need the land numbers that represent the streets, rivers and other assets of public use have only one text.
The issue is that in order to re-link it, I require that instead of having 92345, which was an allocated land number, have a river R, a street C, a L of lagoon, etc.
So I need, for example, the texts above 92,000 to place an R, because they are rivers. Then to the texts above 93,000 put a C, because they are streets. bla bla bla.
Use regular expressions
This in previous versions of Microstation always existed, but from the versions V8i, it brings a little tab that suggests it, and it can activate or not the functionality.
It is always done from Edit> find and replace.
The panel that is displayed, gives us the option to place what we are looking for, what content is going to replace it, and some conditions like control of capitulas, search in blocks, fence.
We select the "Use Regular Expressions" option, which activates the top tab, which shows what possibilities can be included in the search string.
Notice that if I put the text 92, then three points, I can have all the numbers greater than 92,000. And so select to be replaced with a letter R.
With the Find option, the display scrolls to the selected text, and navigates to the next ones.
If I execute "Replace All", all texts will be replaced.
Similarly, to replace street text, which has a range above 93,000, I need to put 93 ... and replace with C.
Other regular expressions
The possibilities of using other search needs are varied.
- The ^ symbol is used to indicate the beginning of a line. Suppose we have an 292010 number, we would not want it to be included. Then the string would be ^ 92 ..., so you will find only texts that begin with 92, which have three characters in a row.
- The symbol $ for the ending. Suppose I need to find the texts that end with the number 10, then write 10 $
- The dot is used for characters, the asterisk for zero or more, the + sign for 1 number or more.
- If you expect to find only ASCII digits, then we use the acronym: dy if we wait only alphabetically, we use: a
- If we want a range of characters, we can use the square brackets
To know more, I suggest the basics: Wikipedia .