Hi!
Corpus 6.2.100.205
I made a makro added to the front and to give raster 32 holes on the sides as long as the height of the front..but I have a problem and I can’t solve it
when one of the sides is above the bottom,the holes move higher than the side that is at the same level with the bottom
How do I identify the elements in the macro, or what would be the solution?
thanks!
I hope it is understood in the video what I mean
Edit:
I seem to have misunderstood the problem. The solution I described at the bottom is for a simple grid on the sides of the cabinet when placing shelves.
If drawers are used, then the macro should be placed on the bottom of the drawer (for example), and the holes on both sides will be aligned
[JOINT]
CONNECT=23
mindistance=0
maxdistance=40
In this case, the hole positions will be calculated relative to the position of the drawer bottom. The position and angle of the sides are completely irrelevant.
I will leave a solution for a similar problem if it is necessary to do a grid on the horizontals of the cabinet.
If a regular grid is used on the sides of the cabinet when placing shelves, the Y drilling position should be set to count from the element origin.
For this it is enough to use the Y position of the board. For example, if the first object is drilled, and the position of the first hole is 200m from the element origin, then the GY parameter will be:
GY=-obj1.y+200
“-obj1.y” will move the start of the measurement to the Y origin.
If the second object is drilled then the position will be:
GY=-obj2.y+200
Of course, instead of the number 200, a predefined variable can be used.
In that case, the macro will look like this:
[VARIABLES]
FirstPoint=200
HoleQuantity=20
HoleDeep=10
HoleDiameter=10
HoleXpos=50
Raster=32
HoleDistance=350
[RASTER1]
J=0
GB=HoleQuantity
GN=HoleRaster
GD=HoleDeep
GF=HoleDiameter
GX=HoleXpos
GY=-obj1.y+FirstPoint
GS=0
GK=0
GP=0
GR=Raster
[RASTER2]
J=0
GB=HoleQuantity
GN=HoleRaster
GD=HoleDeep
GF=HoleDiameter
GX=HoleXpos+HoleDistance
GY=-obj1.y+FirstPoint
GS=0
GK=0
GP=0
GR=Raster
I solved it with 2 macros,thank you very much I appreciate your help
I have put a link to a short video below.
https://streamable.com/v6palq