I have a function that needs to be able to pick objects by combing strings (e.g. variable_foo&"bar"&variable_baz).
I don't want to have to copy over object names into instance variables since that's going to increase the manual work significantly, so I'd like to be able to pick objects by names specifically.
Is this possible to do, and if so, how can I achieve this?
I feel like this should work:
But for some reason it doesn't.
Would appreciate some help on this.
Thanks in advance.
EDIT:
I should probably mention that it's the picking object-aspect that's important, because I also need to know when it returns false (so that I can insert an "else" case to determine whether any objects matching the name exists). Otherwise I would've just used a foreach loop on a family and compared the ObjecTypeName.