Hi,
I am using Microstation Connect Edition Update 15
Is there a way I can increment existing text by a certain value? I know of the copy/increment text tool but I do not want to copy, only to update the existing text by a value of 7.
Thanks
MicroStation VBA Increment Numeric Text (la-solutions.co.uk)
Gerd,
Thanks for this. I've just managed to run this and it works as intended.
Is there a way to make it work with text that is suffixed with numbers? i.e if my string is "EM-3614NS-ISS-17" the copy/increment text tool will give me
"EM-3614NS-ISS-24" which is what I want, however the VBA tool gives me and error 13 type mismatch.
If you read the comments in Jon's macro, its not currently written to cater for text elements containing hyphens:
The code in this project 'TextIncrementor' illustrates various ways to use VB to increment (or decrement) numeric text. By 'numeric text'' we mean a text string that is either purely numeric (e.g. 1234.56) or contains a mixture of alpha-numeric text and numbers (e.g. 'Drawing001').
Yes, well this is free example. You can see how it quickly gets complicated when you try to solve a seemingly simple task.
Maybe you can file an IDEA with Bentley to enhance the Text Increment with an option to increment in place OR copy increment.