Countersunk hole and Weld Preps

Hello everyone!

I need your help with the following:

1- I need to “grab” only the part that has the countersunk hole, of all the parts bolted by a countersunk bolt.

To do that, I’ve created a Selection Filter in Tekla Structures, that has “Object type” = Bolt group, and “Template” = BOLT_COUNTERSUNK = 1. Then, I did this script in GH:

But I “grab” all the parts that are bolted. How can I filter only the part that effectively has the countersunk hole?

2- Something similar to the previous point, but for Weld Preps.

I’ve created a Selection Filter in Tekla Structures, that has “Object type” = Weld, and “Template” = WELD_TYPE1 or WELD_TYPE2 = W2 W3 W4 W5 W6 W7 W8 W18 W19 W21 W22 (the welds that needs weld preps). Then, in GH:

I know that I’m getting only the secondary objects, but even if I add the main objects, how can I be certain that the part has the weld prep? Because if I just check that the part has cuts for example, maybe it has because of other reasons and not for the welds.

I hope this all make sense and I await for all your comments and ideas about all these subjects.

Thank you!

Luciano

PS/ TS2021-SP13 and Rhino6

Hi Luciano,

I’ve been digging around in the API and in the forums and as far as I can tell there is no attribute or similar to differentiate the part with the countersunk hole or a part with a weld prep from the other parts affected by that bolt group or weld.

For bolts you could probably determine the order geometrically by grabbing the solid of the bolts and the solids of the bolted parts and check the resulting intersections.

All the bolted parts to examine can be grabbed by expanding the bolt group similar to how you’re doing with the weld and combine the PartToBoltTo, PartToBeBolted and OtherPartsToBolt outputs.

image

Then you can use the Convert to Mesh or Convert to Brep component. Or just get the bounding boxes if that makes the intersection cleaner - for that you can try the new Get Bounding Box component in version 1.16:

https://drive.google.com/drive/folders/1qnDUaCr7rkJgawBJ7UgL2CkuePwGmAHK?usp=sharing

The bounding box of the bolt group will be aligned with the bolt coordinate system so you can sort the intersections according to the plane of that box to get the top and bottom parts.

For weld preps I’m not sure about the best strategy - you can get the solid of the weld though with the above components, if that helps to determine where the weld prep goes.

Cheers,

-b

1 Like

Thank you very much Sebastian for replying. Ok, I’ll try something like that. If I can find a solution I’ll post it in here.

Thank you again.

Luciano

2 Likes