Good Morning
I have generated a script in which it has been perfectly calculated (it makes a radial distribution of an arc and the distribution of the lines is drawn with the vector from the center and the assigned length). the problem I have is that I have a family generated with a line and it sets it to level 0 (at the assigned level), not to the level and radiation calculated by dynamo.
I am not 100% sure I understand your question, but as i understand it:
Try calculating the offset value by taking the insertion point Z value and subtracting the level’s Elevation parameter. Then use SetParameterByName to set the Elevation from Level.
I have had to do this for some scripts to get the correct elevation.
Thank you very much, but I don’t know how to take that value off the list I know I have it since it’s been calculated by dynamo. As you can see in the photo gives the relative value of Z, do not remove it from the list to add it to the value of Element.SetParameterbyname
I don’t know if this is what you’re asking, but this tweak should get you the correct elevations.
The direction cannot be decided by Dynamo with the familycreation node as it is hosted by the level plane.
I suggest you try implementing this point based version of your family, which I have edited to be parametrically rotateable in all directions. The updates to the script will handle this rotation, and you can enter Diameter and Length into the nodes in there as well. You have to make the script work with your Excel file again. bulon prueba point.rfa (524 KB) Automatización cerchas túnel con arco 3 P + bulones.dyn (308.1 KB)
Hi, I had the same problems some time ago. We had a Line based family for Rock bolts, and I must say that it is a pain working with Line based families. So to solve my problem I created basic Two-Point adaptive generic model for Rock bolts.
It looks something like this: