|
|
If I run a ruby script using the UI when I have a simulation results object in focus, I can access the network using net = WSApplication.current_network, a row object using ro = net.row_object, and the results and gauge results for the object using ro.gauge_results. This is because the network is a WSOpenNetwork object.
If however I obtain a reference to a network with results using the Exchange not in the UI, e.g., via net = db.model_object_from_type_and_id, this returns a WSSimObject, which I have no way to turn into a WSOpenNetwork object and therefore access the results in ruby.
There should be the ability to call net.open or similar to "open" a WSSimObject object and allow access to the underlying results and gauge results.
Disclaimer: The development, release, and timing of any features or functionality described or discussed for our products in this User Feedback Forum for Autodesk Water Products and Services remains at our sole discretion. This User Feedback Forum for Autodesk Water Products and Services is not a commitment, promise, or legal obligation to deliver any functionality, is intended solely to outline and gather feedback about our general product direction, and should not be relied on in making purchasing decisions.