SOLIDOS API - SolidosFindObjectByName(parentHandle, objectName)
SolidosFindObjectByName(parentHandle, objectName) - searches for a SOLIDOS object by its name
- Input Parameters
- parentHandle (Dynamo: String, Visual Lisp: Entity Name) - the identifier of the parent item
- objectName (String) - the name of the object to be searched for
It does not matter if the name is in the parent name. in lowercase letters or not
- Output (String) - the handle of the searched object, if it exists or "0" if it does not exist
- Errors that may occur
- BadParentHandle - the handle entered is not valid or does not exist
Example of usage in Visual Lisp:
(setq networks (SolidosGetRootNode "Networks")
network (SolidosFindObjectByName networks "REDE 01"))
;<Entity name: 262ec7c0150>
Example usage in Dynamo:
networks = SolidosAPI.SolidosGetRootNode("Networks");
network = SolidosAPI.SolidosFindObjectByName(networks, "REDE 01");
#"5201"