// Script für Ausschnittsmatrix, mike k. 29.06.2015 Units(1[mm]); L = Parameter("Länge", 1000, LINEAR, Interval(10, 2000)); W = Parameter("Breite", 500, LINEAR, Interval(10, 1000)); H = Parameter("Höhe", 10, LINEAR, Interval(0.1, 20)); Rect = Rectangle(L, W); BoxX = Thickness(Rect, H); // Material das ausgeschnitten wird L1 = Parameter("X Aussparung", 20, LINEAR, Interval(0, 100)); W1 = Parameter("Y Aussparung", 20, LINEAR, Interval(0, 100)); H1 = Parameter("Höhe Muster",20,LINEAR, Interval(0, 100)); Rect1 = Rectangle(L1, W1); Muster = Thickness(Rect1,H1); // Format der Aussparung Box = Move(BoxX,L/2,W/2) // Material auf 0/0 linke unt. Ecke // jetzt 8 Aussparungen X1 = Parameter("X1", 20, LINEAR, Interval(0, L-L1)); Y1 = Parameter("Y1", 20, LINEAR, Interval(0, W-W1)); Box1 = Move(Muster,X1,Y1); X2 = Parameter("X2", 40, LINEAR, Interval(0, L-L1)); Y2 = Parameter("Y2", 40, LINEAR, Interval(0, W-W1)); Box2 = Move(Muster,X2,Y2); X3 = Parameter("X3", 60, LINEAR, Interval(0, L-L1)); Y3 = Parameter("Y3", 60, LINEAR, Interval(0, W-W1)); Box3 = Move(Muster,X3,Y3); X4 = Parameter("X4", 80, LINEAR, Interval(0, L-L1)); Y4 = Parameter("Y4", 80, LINEAR, Interval(0, W-W1)); Box4 = Move(Muster,X4,Y4); X5 = Parameter("X5", 100, LINEAR, Interval(0, L-L1)); Y5 = Parameter("Y5", 100, LINEAR, Interval(0, W-W1)); Box5 = Move(Muster,X5,Y5); X6 = Parameter("X6", 120, LINEAR, Interval(0, L-L1)); Y6 = Parameter("Y6", 120, LINEAR, Interval(0, W-W1)); Box6 = Move(Muster,X6,Y6); X7 = Parameter("X7", 140, LINEAR, Interval(0, L-L1)); Y7 = Parameter("Y7", 140, LINEAR, Interval(0, W-W1)); Box7 = Move(Muster,X7,Y7); X8 = Parameter("X8", 160, LINEAR, Interval(0, 0, L-L1)); Y8 = Parameter("Y8", 160, LINEAR, Interval(0, W-W1)); Box8 = Move(Muster,X8,Y8); Matrix = BooleanSubtract(Box,Box1,Box2,Box3,Box4,Box5,Box6,Box7,Box8 ); Output(Matrix);