Hi! Corpus v 6.2.100.261
It is a MAKRO made on the door that drills on the side with a distance between the front and back, but the holes in the back change depending on the position of the back in depth, as seen in the picture, all the holes align after “BACK1”, how can I identify in MAKRO that I have “BACK” multiple times and know the distance of the back? Thanks
The macro can get the properties of all objects in the element.
If you want the z position of a board called “back”, simply write:
position_z=back.z
In the same way you can get the “start” of that board with:
position_y=back.y
You can get the height of the back with:
position_height=back.height
.
In the above mentioned way you can determine where to drill holes for the first back.
To find out if there are more boards that are backs you have to play a little trial and error.
You have to guess their names. I would say they could be called Back1, Back2 and Back3.
To check if those backs exist, check their z position values. If these values are non-zero, they exist because Corpus will assign zero values to unknown properties.
Finally you have to make additional hole patterns for each additional back according to their corresponding positions and heights.