Add one

Hello

I have the following Dynamo scheme, that doesn’t work the way I want it to:

I want to add 1 to T-005 so that it will become T-006 …how to solve this issue?
The outcome in my situation will be T-0051

You would need to deconstruct the string, modify it, and then reconstruct it. See below:


add one.dyn (21.5 KB)

2 Likes

Ok thanks for your reply…the only thing is that our sheetnames have different formats like:
D-00-03-02
T-0.05
U-00-03-11
and I want one tool for all off the formats.
I want a tool that finds the last numbers and adds +1…is that possible aswell?

I’ll probably manage to create a tool with your given code so another thanks :smiley: