- <xml xmlns="http://blockscad.einsteinsworkshop.com"><version num="1.1.0"></version><block type="variables_set" id="30" x="-400" y="0"><field name="VAR">width</field><value name="VALUE"><block type="math_number" id="31"><field name="NUM">20</field></block></value><next><block type="variables_set" id="32"><field name="VAR">height</field><value name="VALUE"><block type="math_number" id="33"><field name="NUM">20</field></block></value><next><block type="variables_set" id="34"><field name="VAR">depth</field><value name="VALUE"><block type="math_number" id="35"><field name="NUM">20</field></block></value><next><block type="variables_set" id="36"><field name="VAR">wall thickness</field><value name="VALUE"><block type="math_number" id="37"><field name="NUM">2</field></block></value></block></next></block></next></block></next></block><block type="difference" id="38" x="-992" y="-4"><comment pinned="true" h="105" w="368">Parametric box
- change the numbers in the variable blocks to change the dimensions of the box and the wall thickness.</comment><statement name="A"><block type="cube" id="39"><field name="CENTERDROPDOWN">true</field><value name="XVAL"><block type="variables_get" id="40"><field name="VAR">width</field></block></value><value name="YVAL"><block type="variables_get" id="41"><field name="VAR">depth</field></block></value><value name="ZVAL"><block type="variables_get" id="42"><field name="VAR">height</field></block></value></block></statement><statement name="MINUS0"><block type="translate" id="43"><value name="XVAL"><block type="math_number" id="44"><field name="NUM">0</field></block></value><value name="YVAL"><block type="math_number" id="45"><field name="NUM">0</field></block></value><value name="ZVAL"><block type="variables_get" id="46"><field name="VAR">wall thickness</field></block></value><statement name="A"><block type="cube" id="47" inline="false"><field name="CENTERDROPDOWN">true</field><value name="XVAL"><block type="math_arithmetic" id="48"><field name="OP">MINUS</field><value name="A"><block type="variables_get" id="49"><field name="VAR">width</field></block></value><value name="B"><block type="math_arithmetic" id="50"><field name="OP">MULTIPLY</field><value name="A"><block type="math_number" id="51"><field name="NUM">2</field></block></value><value name="B"><block type="variables_get" id="52"><field name="VAR">wall thickness</field></block></value></block></value></block></value><value name="YVAL"><block type="math_arithmetic" id="53"><field name="OP">MINUS</field><value name="A"><block type="variables_get" id="54"><field name="VAR">depth</field></block></value><value name="B"><block type="math_arithmetic" id="55"><field name="OP">MULTIPLY</field><value name="A"><block type="math_number" id="56"><field name="NUM">2</field></block></value><value name="B"><block type="variables_get" id="57"><field name="VAR">wall thickness</field></block></value></block></value></block></value><value name="ZVAL"><block type="variables_get" id="58"><field name="VAR">height</field></block></value></block></statement></block></statement></block></xml>
|