I just started in Dynamo a little while ago so I apologize if I get some terms wrong.
I’m using REVIT 2019 and Dynamo core 2.0.3 and using only out of the box nodes and a few nodes from Rhythm.
Script is a bit long so I’ve attached it here for ease of viewing.
Working Tag Placement 7-10.dyn (188.8 KB)
I’ve been working on a script that will allow me to automatically place tags on piping and modify the leader line. I was able to get the script to place tags on the pipe and then offset the head position and the elbow position by using out of the box nodes and some of Rhythm’s nodes. The next day I tried my script out and the leader lines were nothing like what I had set up the night before. I even tried the script on the same test file I had used the night before, the leader lines were off.
After looking into this a bit I noticed that the Dynamo preview nodes (the blue squares) in the REVIT program were in the correct place and but the leader line didn’t locate itself at that point. Below is the correct looking leader lines from the night before and then the leader lines from this morning.
I’m not sure what has caused this issue and this is what I need help to figure out.
Here are a few things that I tried and the results, unfortunately I don’t know what they mean.
I tried a simple change a value to the elbow coordinate, run script, reset coordinate to original location, and then run the script again. This resulted in the leader line looking like it should. However, as soon as I close the script the same issue happens. I’m not looking to have to do this every time in order to tag my pipes. Below is the section of my script that I had to alter the value of and revert back, node circled in red.
The second thing I tried was to take the script segment above and remove everything else so that I can select specific elements rather than have the selection be based on the tags that were created. I also moved the coordinate for the elbow far away to see if that would help me figure out what might be going wrong. Running this script resulted in the leader lines getting close to the Dynamo preview in REVIT but running it a second time without changing anything resulted in the correct placement. Below is the script that I used for this test.
After that I tried running the original script twice in a row and didn’t get the result desired.
Can anyone help me figure out why I’m getting this discrepancy between the Dynamo preview and what is being generated in REVIT?