Get Interface

You are currently viewing the documentation for version 1.7.5. To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ To use the latest version, visit the Mech-Mind Download Center to download it.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

Get Steps Used in the Current Mech-Viz Project

The function to get Steps used in the current Mech-Viz project is as follows.

def get_viz_task_names(self, msg={}, timeout=None):
    result = self.call_viz("getAllTaskNames", msg, timeout)
    logging.info("Property result: {}".format(json.loads(result)))
    return result

After get_viz_task_names() is called, a string in JSON format that represents all obtained Steps will be returned.

Get Parameters in Mech-Viz or Mech-Vision Project

The function to get parameters in Mech-Viz or Mech-Vision project is as follows.

def get_property_info(self, msg={}, get_viz=True, timeout=None):
    result = (self.call_viz if get_viz else self.call_vision)("getPropertyInfo", msg, timeout)
    logging.info("{0} property result: {1}".format("Viz" if get_viz else "Vision", json.loads(result)))
    return result

When the function is called with no “type” specified for the “msg” parameter, all parameters will be obtained. If a certain type is specified, only parameters of the corresponding Step will be obtained. For example, after get_property_info(msg={"type": "move"}) is called, a string in JSON format that represents parameters of the Fixed-Point Move Step will be returned.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.