7 Replies Latest reply on May 2, 2017 1:15 PM by Shekhar Tanji

    Find substring in a string

    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.