algorithmic modeling for Rhino
Hello,
Although I'm told 'Mid' is a bit anachronistic, in VB you can use:
Dim s As String = "test string"Mid(s, 7, 1) = "p"
In C# you can use:
string s = "test string";
var sb = new StringBuilder(s);
sb[7] = 'p';
s = sb.ToString();
In python, there are a bunch of different ways to do this. Here's one way using string slices
s = "M2363_7034_574523"
s = s[:6] + "0" + s[7:]
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by