Oh how I wish I could use wildcards … but perhaps you guys can help me out.
I have a list of revit elements, some loadable families start with our firm’s code: and now I’d like to strip that code since it’s of no use (therefor clutters) to others.
So raw input:
10_VDP_GM - test
16_VDP_C - weeeee
54_VDP_DET - bleegghhh
family5
Should become:
test
weeeee
bleegghhh
family5
I’d like to have the ‘explanation’ part. So first thoughts: String.split " - " … right? My thoughts to – initially. BUT string.split does break EVERY instance of that separater.
So somehow I have to count the sublist items
IF > 1: remove first sublist item and join the others
IF == 1: do nothing
OR is there a better way?
Basicly [VDP - ] would be sufficient -.-
Find the index of “-”, get the total length of the string, return all characters after index+1. Also, you could use excel to do this then retrieve the processed data in Dynamo; way more efficient.