Hi ! I use a macro connected to face 5 and when the elements overlap, the macro does not work correctly.. what can I do?
Red Cat Edited question 08/08/2024
It all depends on what type of macro you use.
If you use the “Connect” type, you need to determine the minimum and maximum distance of the other object.
In case of overlap, the minimum distance must be negative. Example:
[JOINT] MaxDistance=-50 MinDistance=10 Connect=24
Send us your macro so we can see.
saracie88 Posted new comment 08/08/2024
I tried exactly as you wrote above but the holes disappeared .. I can’t attach the macro so I wrote it below
thanks!
[VARIJABLE]
CONECTOR_TYPE=0
CONECTOR_FACE=0
CONECTOR_NUMBER=3
CONECTOR_FACE_EDGE=0
FRONT_HOLE=50
BACK_HOLE=50
[JOINT]
maxdistance=1
mindistance=-1
connect=5
[FORMULE]
dist=pmaxy-FRONT_HOLE-BACK_HOLE
d2gs=dist/(CONECTOR_NUMBER-1)
***************** EURO ****************
[RASTER1]
J=0
GB=if(CONECTOR_TYPE=0;CONECTOR_NUMBER;0)
GN=Euro 50×5
GD=52-obj2.thickness
GF=5
GX=if(CONECTOR_FACE_EDGE=0;obj1.thickness/2;if(CONECTOR_FACE_EDGE=2;pmaxx-9;if(CONECTOR_FACE_EDGE=1;+pminx+9;0)))
GY=FRONT_HOLE
GS=obj1.autost
GK=0
GP=0
GR=d2gs
[RASTER2]
J=1
GB=if(CONECTOR_TYPE=0;CONECTOR_NUMBER;0)
GN=Euro 50×5
GD=obj2.thickness/2-0.5
GF=8
GX=if(CONECTOR_FACE_EDGE=0;obj1.thickness/2;if(CONECTOR_FACE_EDGE=2;pmaxx-9;if(CONECTOR_FACE_EDGE=1;+pminx+9;0)))
GY=FRONT_HOLE
GS=obj2.autost
GK=0
GP=0
GR=d2gs
[RASTER3]
J=1
GB=if(CONECTOR_TYPE=0;CONECTOR_NUMBER;0)
GN=Eurosurub 50×5 in ob adiacent
GD=obj2.thickness/2-0.5
GF=8
GX=if(CONECTOR_FACE_EDGE=0;obj1.thickness/2;if(CONECTOR_FACE_EDGE=2;pmaxx-9;if(CONECTOR_FACE_EDGE=1;+pminx+9;0)))
GY=FRONT_HOLE
GS=obj2.autost
GK=0
GP=0
GR=d2gs
GSI=1