So the aim of game is: we have Layout-file where we put dimensions. So i want to set doorheight to the dimensions. My first script here is little bit infantil, but it is a first step, look at the behavour:
How can i set the correct dimension, which is hosted to the door opening?
At the moment i have a single dimension, but i would like to have multidimensions…
Can i catch the correct dimension via bounding box? or a loctionpoint? Or can i trigger a vector on it?
What are my possibilities? so that my door is able to catch the correct dimension…
Try to get boundrybox of doors and then use Geometry Intersect node to match points of dimensions to the texts. Then you have 2 choices:
1-Create a custom node and then connect dimensions and text
2-Edit your code with:
You are connecting false element type. Try to get linked doors with BiMorphnodes. LinkedElement by Category. You will be able to transform them.
Do you want to place “Rohrbauhöhe” or “Lichthöhe” of doors?
LinkedElement.Element and then Geometry
Use Dimension.Midpoint from Rhytm Package. Try to move dimensions next to door so you can check intersection with boundingbox.
Or you can get location of doors and use Geometry.Closest to node from Clockwork.
How can i be sure with my script that the value has correlation between door and dimension.
Or they already “find” each other? the interating seems to be not correct. KOM-Link.rvt (2.4 MB)
It worked well, i will discuss a workflow with my team, actually it is just working for single dimensions.
if it is multipitch dimensions it does not work, it recognize each text, but the script can t deside where to put height… I think a learnt some stuff.
You should then specify the segments. You should know which segments belong to the door. I don’t have much time to play around but maybe you can find something better.