I’ve written a dynamo script to set sump elevation, rim to sump height and sump depth to pipe network structures that have already been created. The script works and values are populated within structure properties however there is no visual update in the structure height.
The work around that I have found is to select each structure after running the script and “edit structure properties” and then click apply(this updates the height in 3d). I’m just checking if there is a way to automate this last process so that I don’t have to manually select each structure after running the script.
Thanks Vladimir. The script (attached) itself is working fine. It’s just the next step to update the structure in 3D that I currently have to do manually and would like to update. I have no issue sharing the DWG however I don’t think you have the parts list I am using. The test file file contains only 3 structures.
Variable or Action? I’m talking about the second to last nodes in your graph.
What I’m trying to say is that you only need one of those three Action nodes to do what you’re trying to do.
I suggest, if you haven’t already, to freeze RimToSumpHeight and RimSumpElevation, then run your graph again. If the structure doesn’t change, alternate the frozen Action nodes so you’re testing each Action at once.
Thanks @JPhil , I’ve tried freezing structure.setrimtosumpheight, structure.setsumpdepth, structure.sump elevation two at a time so that the third in each case is isolated but still no luck.
Actually it does not work, sorry about that. I have only used this when changing pipe inverts with dynamo and then updating the structure sumps by using the apply rules node. This works. Changing the sump elevation directly through dynamo and applying rules does not fix your problem.
I’ve found a workaround. There were previously just structures on the drawing. When creating pipes and connecting them to the structure and therafter running the script for sumpdepth the structure obtained the required depths. I then deleted the pipes and the structure depth stayed the same.