Hi everybody. I am trying to create connections automatically with GH, but for some reason my logic is not working. Can you guys help? What I want to do is connect the green PFCs with the Yellow beams using a shear plate component. I am using “curve Closest Point” component to try to get the list of correct parts to use as input to the component. It is kind of working but some green PFC are not been connected.
My intention is to use the same component twice as the connection has a slight difference in the attribute file depending if the closest point is either the start point of the PFC or the end. The script below shows my logic to connect only 1 side of the PFC at the start point. However, in theory, all the green PFCs should have 1 connection but this is not happening. About half of the PFCs are missing the connection. Note the figure shows only half of the parts for clarity. The structure has the same geometry repeated once more time further to the right. Just showing half for clarity.
I believe my issue is after Dispatch component. For instance, some yellow beams can have 5 PFCs with the star point close to them to create the connection. but I am only getting max 3 PFCs matching the criteria.
It will be difficult for anyone to help without any data. I suspect the problem is related to your data tree, but I cannot see any of the tree statistics in your file.
I would re-post your file without the part below. I have the same template and posted a gh file before and annoyed a long time poster here. That part of the script screws up many stock settings once opened.
Thanks Brad, good to know the issue with script. I couldn’t delete it but I am reposting it here without the part you mention it might cause some issues. Shear-Plate.gh (16.3 KB)
I also added some tree info in the script. I am really stuck here so I really hope someone could help.
I found the issue! It looks like there were some distances not quite equal to 0, so the similarity component was giving me incorrect false values. Playing around with the threshold did not make a difference so I ended up adding a round to decimal place component that did the trick.
I post a different version of my scripts when asking for help. I delete the python script and dumb down the problem so others can either replicate the problem or generate a small model to help. Keep in mind we have some grasshopper experts, but they might not be tekla experts or construction people.
Thanks Brad, for taking the time. To answer your question, I am using “shear Plate (103)” components from Tekla Australasia environment. you are right, it does not need a point. I am just using the points to calculate the distance to the beam line.
Anyway, I manged to sort it out by adding a round to decimal place component which was causing me trouble. you can see the solution now.
Yes, I noticed that you had a solution. I am not sure if you have created your own CC’s before. You can build a lot of better logic into them if you want. You might find that will simplify your scripts in some cases.