-
Notifications
You must be signed in to change notification settings - Fork 110
Description
What metods are used to get the reference objects.
I have handed 2 types of clash detection - from reference objects (ifc) and a native tekla objects to objects.
Working with native objects we can very easily find, and calculate the bounding box, create the cuts, using the local coordinates of the elements requried cut.
https://github.com/martin9020/cut-creator-macro/blob/main/
Here i have done it somehow proeprly and working.
Going to the harder part where we have to find the clashes, they are found but how to calculate from the reference object to create the requried cut. I am moving in a loop without clear vision to move out. Or either completely ignore the reference cut or I am missing something.
I have asked AI to research the full documentation of open API tekl, and use whatever is in there to give me a solution.
https://github.com/martin9020/cut-creator-macro/blob/main/Findings.md
Here are some great findings.
The real problem is that we are using AABB methods that transforms the reference objects from global coordinate system to the desired local coordinate system wehre we have to create the cut.
I dont really understand where is the problem and furthurmore all these normal vectors, coord trasformation. Is there any insights on ho we can actually get a prcise cut from a reference object to a clashing object.
we are using coordination trasformation to get the object reference to be projected into the panels to create the requried cuts.
Impossible to get this after I tried everything. The issue is we have infinity possibilities of local cs of the panels depending on their rotation.


This is the object-object cut thats working which tekla gives as the possibility tow work with both elements of their local cs. Cuts are done nicely and projected as expected.

I will be happy for any insights if this is even possible or to not waste time. I can try to improve the api to get a few more key missing features. But it will be time consuming, and using the hardocded .dlls files maybe it is not worth even trying.