AnsweredAssumed Answered

Find substring in a string

Question asked by Shekhar Tanji on Apr 25, 2017
Latest reply on May 2, 2017 by Shekhar Tanji

Hi,

I have a part open with the feature displayed. I have written a macro to get the numbers and the names of each feature. I would like to separate them with the types(Boss extrude, cut extrude and holes).

The features recognized have names like "Boss-Extrude1", "Cut-Extrude1" which is dynamic and changes with the parts. So i want to find the string "Boss-Extrude" or "Cut-Extrude" in those strings. With this i can easily find types in it.

 

Is it possible in a macro to write such a logic?

or is there any string function like Substring(mainString,stringToMatch) ?

 

Thank you.

Outcomes