Search objects by type and name function API
Issue #203
resolved
Public Function SearchObjectByTypeAndName(type As String, name As String) As OBrIMObj
Above function only searches current level. It would be helpful if there is an API call which can search child objects also. It can return to list of OBrIMObj if there is more than one object.
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Actually, despite its name, SearchObjectByTypeAndName function seems to be only matching types and ignoring name. This seems to be a bug corrected in v3.160604.
Added another function which does the same thing recursively. Look for SearchObjectByTypeAndNameDeep function. The implementation is fairly simple. In case you need to search objects by other criteria in the future, I am pasting the code here, you can customize and use: