One of our users has a site plan model with hundreds of levels (z elevations) that he wants to change by a certain amount. For example change 119.00m to 119.20m.
I seem to recall that a number of years ago someone posted a macro that did this, but can't find it following a search.
Any ideas how to do this or does anyone have a macro that does this?
stuartw said:How to change text on multiple text elements?
If I understand your question correctly, you want to modify multiple text elements that have numeric content. You want to add/subtract a number to that numeric text.
There's a freeware macro here that does exactly that.
The TextIncrementor VBA project is a working project that implements a text locator along with the text increment function. It works with simple text elements and with text node elements.
It's sensitive to selection sets and fences. If a fence is active, or a selection set is present, the macro processes the elements in that collection. Otherwise, it provides a pick tool, which prompts you to pick text or text node elements.
Just to be clear, the Text Incrementor macro does not modify element coordinates. It's a text editor specialised for numeric text.
ModZ is another macro whose task is to modify the Z elevation of an element. It's not a text editor.
Regards, Jon Summers LA Solutions