var brand = true; var MasterProductName = "Variant name"; var privacydata = ["This is the text for your Privacy terms!","Este es el texto para sus términos de privacidad!"];var termsdata = ["-","Este es el texto para sus Términos de uso!"];var langapp = 0; var langs = ["0"]; var admin = {"image": "logo/logo-8.png", "payments":[],"currency": "nzd", "stripe": "pk_test_ZoQ3eovQCADGs58mvU0wNR67","taxes":true, "paypal": "","name": "Sheds4u Ltd", "domain": "buildit.sheds4u.co.nz"};function MasterUpload(accept) { var file = document.createElement("input"); file.setAttribute("type", "file"); file.setAttribute("accept", accept); file.click(); file.addEventListener("change", function (event) { var input = event.target; var reader = new FileReader(); reader.onload = function () {return file.files[0]; }; reader.readAsDataURL(input.files[0]); }); };var app = angular.module("app", ["ngMaterial", "ngMessages", "ngSanitize", "ngAnimate"]); app.config(function($mdThemingProvider, $sceDelegateProvider) { $sceDelegateProvider.resourceUrlWhitelist(["self","https://cdnstatic.edsahergom.com/**","https://cdnbuilder.edsahergom.com/**","https://firebasestorage.googleapis.com/**"]); $mdThemingProvider.theme("default").primaryPalette("grey").accentPalette("red");}); var summary = {"id":44,"reference":"","type_model":"shapediver","type":"get_quote","visibility":"private","name":["Build your Timber Pole Kitset Shed (Version 2)","Producto Nuevo"],"description":["Build your own Timber Pole Kitset Shed by changing its size, adding walls, doors and windows, changing cladding options and defining a color scheme that matches your needs.\n

\nAdditionally, you will receive the 3D model you create to your email so that you can share it with your peers or through social media and of course we will get a copy to contact you back with a detailed 3D quote.","Descripción del producto"],"IndexId":201,"sketchfab":[{"name":["Variant name","Nombre variante"],"id":"sheds4u-2"}],"shipping":0,"tax_percent":0,"base_price":0,"delivery_days":0,"files":[{"name":["",""],"path":"","load":false,"type":""}],"indexlogo":1,"image":"44-thumbnail-1.jpg","creator":"admin","user":"admin","actionfunction":"MasterModify(\"A189\",\"name\",(JSON.stringify(doorsWindows,null,0)));\nMasterModify(\"A189\",\"value\",true);","load":false};function SearchP(){var a=window.location.search.substr(1);return null!=a&&""!=a?TransP(a):{}}function TransP(a){for(var t={},r=a.split("&"),e=0;e0){MasterModify(\"A5\",\"showthis\", true)}else{MasterModify(\"A5\",\"showthis\", false)}\n\nfor (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n\titemId = doorsWindows[\"doorsWindows\"][i][\"ID\"];\n\tstyle = doorsWindows[\"doorsWindows\"][i][\"style\"];\n\twallValue = doorsWindows[\"doorsWindows\"][i][\"wall\"];\n\tnextId = \"A\"+(Number(itemId.match(/[0-9]+/g))+1);\n\twidthId = MasterSectionId(nextId,3);\n\theightId = MasterSectionId(nextId,4);\n\tlocationXId = MasterSectionId(nextId,5);\n\tlocationZId = MasterSectionId(nextId,6);\n\topeningSideId = MasterSectionId(nextId,7);\n\thingePostId = MasterSectionId(nextId,8);\n\n\tupdateDoors();\n}","id":"A3","menu":false,"load":false},{"name":["Sides Overhang (m)","Deslizador 2"],"value":0,"logo":"44-A197-1.svg","indexlogo":1,"showthis":true,"code":"-","type":"slider_select","help":["",""],"data":[{"value":0},{"value":0.2},{"value":0.3},{"value":0.4},{"value":0.5},{"value":0.6}],"index":0,"prices":0,"function":"SetValShapeDiver(\"Side Overhangs\",MasterValue(\"A197\"));","id":"A197","menu":true,"load":false},{"name":["Front Overhang (m)","Deslizador"],"value":1.2,"logo":"44-A4-1.svg","indexlogo":1,"showthis":true,"code":"-","step":0.1,"type":"slider","help":["",""],"min":0,"max":3,"prices":0,"function":"SetValShapeDiver(\"Front Overhang\",MasterValue(\"A4\"));\n\nif(MasterValue(\"A3\")==\"skillion\" && MasterValue(\"A4\")>0){MasterModify(\"A5\",\"showthis\", true)}else{MasterModify(\"A5\",\"showthis\", false)}","id":"A4","menu":true,"load":false},{"name":["Back Overhang (m)","Deslizador - Copia"],"value":0,"logo":"44-A4-1.svg","indexlogo":1,"showthis":true,"code":"-","step":0.1,"type":"slider","help":["",""],"min":0,"max":3,"prices":0,"function":"SetValShapeDiver(\"Back Overhang\",MasterValue(\"A6\"));","id":"A6","menu":true,"load":false},{"name":["Type of Overhang","Imagen Pequeña"],"value":"1","showthis":true,"type":"image1","help":["",""],"logo":"44-A5-1.svg","indexlogo":1,"data":[{"indexlogo":2,"name":["Rafter Overhang","Imagen"],"value":"0","path":"44-A5-0-2.png","load":false,"price":0,"productcode":"-"},{"indexlogo":2,"name":["Eyebrow Canopy","Imagen"],"value":"1","path":"44-A5-1-2.png","load":false,"price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Type of Overhang\",MasterValue(\"A5\"));","id":"A5","menu":false,"load":false},{"name":["Centre Poles?","Switch"],"logo":false,"showthis":true,"indexlogo":0,"help":["",""],"value":false,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Centre Poles?\",MasterValue(\"A7\"));","id":"A7","menu":false}],"function":["",""],"id":"A2","location":1,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]}],"menu":false,"load":false},{"name":["Dimensions","Sección"],"logo":"44-A8-1.svg","indexlogo":1,"type":"section","showthis":true,"open":false,"data":[{"name":["Shed Depth (m)","Deslizador"],"value":6,"logo":"44-A9-2.svg","indexlogo":2,"showthis":true,"code":"-","step":1,"type":"slider","help":["",""],"min":6,"max":18,"prices":0,"function":"SetValShapeDiver(\"Shed Depth\",MasterValue(\"A9\").toFixed(1));\nMasterFunction('A8_IN');\nUpdateGeometry();\n\nfor (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n\titemId = doorsWindows[\"doorsWindows\"][i][\"ID\"];\n\tstyle = doorsWindows[\"doorsWindows\"][i][\"style\"];\n\twallValue = doorsWindows[\"doorsWindows\"][i][\"wall\"];\n\tnextId = \"A\"+(Number(itemId.match(/[0-9]+/g))+1);\n\twidthId = MasterSectionId(nextId,3);\n\theightId = MasterSectionId(nextId,4);\n\tlocationXId = MasterSectionId(nextId,5);\n\tlocationZId = MasterSectionId(nextId,6);\n\topeningSideId = MasterSectionId(nextId,7);\n\thingePostId = MasterSectionId(nextId,8);\n\n\tupdateDoors();\n}","id":"A9","menu":false,"load":false},{"name":["Bay Size (m)","Deslizador - Copia"],"value":3.6,"logo":"44-A10-2.svg","indexlogo":2,"showthis":true,"code":"-","step":0.1,"type":"slider","help":["",""],"min":3,"max":12,"prices":0,"function":"SetValShapeDiver(\"Bay Size\",MasterValue(\"A10\").toFixed(1));\nMasterFunction('A8_IN');\n\nfor (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n\titemId = doorsWindows[\"doorsWindows\"][i][\"ID\"];\n\tstyle = doorsWindows[\"doorsWindows\"][i][\"style\"];\n\twallValue = doorsWindows[\"doorsWindows\"][i][\"wall\"];\n\tnextId = \"A\"+(Number(itemId.match(/[0-9]+/g))+1);\n\twidthId = MasterSectionId(nextId,3);\n\theightId = MasterSectionId(nextId,4);\n\tlocationXId = MasterSectionId(nextId,5);\n\tlocationZId = MasterSectionId(nextId,6);\n\topeningSideId = MasterSectionId(nextId,7);\n\thingePostId = MasterSectionId(nextId,8);\n\n\tupdateDoors();\n}","id":"A10","menu":false,"load":false},{"name":["Number of Bays","Deslizador - Copia - Copia"],"value":5,"logo":"44-A11-3.svg","indexlogo":3,"showthis":true,"code":"-","step":1,"type":"slider","help":["",""],"min":1,"max":15,"prices":0,"function":"SetValShapeDiver(\"Number of Bays\",MasterValue(\"A11\"));\nSetValShapeDiver(\"Position Right Wall\",MasterValue(\"A11\").toString());\nMasterFunction('A8_IN');\nUpdateGeometry();","id":"A11","menu":false,"load":false},{"name":["Total Length (m)","Resultado"],"value":null,"help":["",""],"showthis":true,"logo":"44-A12-2.svg","indexlogo":2,"type":"result","prices":0,"function":"return ((MasterValue(\"A10\")*MasterValue(\"A11\")).toFixed(1));","id":"A12","menu":false,"load":false,"code":"-"},{"name":["Eave Height (m)","Deslizador - Copia - Copia - Copia"],"value":3,"logo":"44-A13-4.svg","indexlogo":4,"showthis":true,"code":"-","step":0.1,"type":"slider","help":["",""],"min":2.4,"max":8,"prices":0,"function":"SetValShapeDiver(\"Eave Height\",MasterValue(\"A13\"));\n\nSetValShapeDiver(\"Compute 3D?\",true);\nvar payload = { command: \"activateTopView\", arguments: [false] }; SourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nMasterView(\"backward_right_down\");\n\nUpdateGeometry();\n\nfor (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n\titemId = doorsWindows[\"doorsWindows\"][i][\"ID\"];\n\tstyle = doorsWindows[\"doorsWindows\"][i][\"style\"];\n\twallValue = doorsWindows[\"doorsWindows\"][i][\"wall\"];\n\tnextId = \"A\"+(Number(itemId.match(/[0-9]+/g))+1);\n\twidthId = MasterSectionId(nextId,3);\n\theightId = MasterSectionId(nextId,4);\n\tlocationXId = MasterSectionId(nextId,5);\n\tlocationZId = MasterSectionId(nextId,6);\n\topeningSideId = MasterSectionId(nextId,7);\n\thingePostId = MasterSectionId(nextId,8);\n\n\tupdateDoors();\n}","id":"A13","menu":true,"load":false},{"name":["Ridge Height (m)","Resultado - Copia"],"value":null,"help":["",""],"showthis":true,"logo":"44-A32-2.svg","indexlogo":2,"type":"result","prices":0,"function":"if (MasterValue(\"A3\")==\"skillion\"){\n ridgeHeight = (((Math.tan(MasterValue(\"A14\")*(Math.PI/180)))*MasterValue(\"A9\"))+MasterValue(\"A13\")).toFixed(1);\n\treturn (ridgeHeight);\n}\nelse{\n ridgeHeight = ((((Math.tan(MasterValue(\"A14\")*(Math.PI/180)))*MasterValue(\"A9\"))/2)+MasterValue(\"A13\")).toFixed(1);\n\treturn (ridgeHeight);\n}","id":"A32","menu":false,"load":false,"code":"-"},{"name":["Roof Pitch (Degrees)","Deslizador - Copia - Copia - Copia - Copia"],"value":5,"logo":"44-A14-4.svg","indexlogo":4,"showthis":true,"code":"-","step":1,"type":"slider","help":["",""],"min":3,"max":35,"prices":0,"function":"SetValShapeDiver(\"Roof Pitch\",MasterValue(\"A14\"));\n\nSetValShapeDiver(\"Compute 3D?\",true);\nvar payload = { command: \"activateTopView\", arguments: [false] }; SourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nMasterView(\"backward_right_down\");\n\nUpdateGeometry();\n\nfor (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n\titemId = doorsWindows[\"doorsWindows\"][i][\"ID\"];\n\tstyle = doorsWindows[\"doorsWindows\"][i][\"style\"];\n\twallValue = doorsWindows[\"doorsWindows\"][i][\"wall\"];\n\tnextId = \"A\"+(Number(itemId.match(/[0-9]+/g))+1);\n\twidthId = MasterSectionId(nextId,3);\n\theightId = MasterSectionId(nextId,4);\n\tlocationXId = MasterSectionId(nextId,5);\n\tlocationZId = MasterSectionId(nextId,6);\n\topeningSideId = MasterSectionId(nextId,7);\n\thingePostId = MasterSectionId(nextId,8);\n\n\tupdateDoors();\n}","id":"A14","menu":false,"load":false}],"function":["SetValShapeDiver(\"Compute 3D?\",false);\nSetValShapeDiver(\"Compute Ground?\",false);\nvar payload = { command: \"activateTopView\", arguments: [true] }; SourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nvar payload = { command: \"setAmbientOcclusion\", arguments: [false] }; SourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nvar payload = { command: \"toggleSceneBackground\", arguments: [false] }; SourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nMasterView(\"backward\");","SetValShapeDiver(\"Compute 3D?\",true);\nSetValShapeDiver(\"Compute Ground?\",true);\nvar payload = { command: \"activateTopView\", arguments: [false] }; SourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nvar payload = { command: \"setAmbientOcclusion\", arguments: [true] }; SourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nMasterView(\"backward_right_down\");\nUpdatedShapeDiver(function UpdatedAction() {\nvar payload = { command: \"toggleSceneBackground\", arguments: [true] };\nSourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nif (MasterValue(\"A3\")==\"skillion\"){SetValShapeDiver(\"Structure Type\",\"gable\")}\nelse {SetValShapeDiver(\"Structure Type\",\"skillion\")}\nMasterFunction(\"A3\");\n});"],"id":"A8","location":1,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]}],"menu":false,"load":false,"fixed":false},{"name":["Wall Layout","Sección"],"logo":"44-A15-2.svg","indexlogo":2,"type":"section","showthis":true,"open":false,"data":[{"name":["Walls?","Switch"],"logo":false,"showthis":true,"indexlogo":0,"help":["",""],"value":true,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"if (MasterValue(\"A16\")==true){\n\tif (getModelDataForName(\"IW Max\")==0){MasterModify(\"A17\",\"showthis\",false)}\n\telse{MasterModify(\"A17\",\"showthis\",true)};\n}else{MasterModify(\"A17\",\"showthis\",false)}\n\nMasterModify(\"A18,A28,A56,A60,A90,A98,A105\",\"showthis\",MasterValue(\"A16\"));\nMasterModify(\"A23,A61,A29,A55,A57,A58\",\"value\",MasterValue(\"A16\"));\nMasterFunction(\"A23,A61,A29,A55,A57,A58\");","id":"A16","menu":false},{"name":["Internal Walls","Deslizador"],"value":1,"logo":false,"indexlogo":0,"showthis":false,"code":"-","step":1,"type":"slider","help":["",""],"min":0,"max":2,"prices":0,"function":"SetValShapeDiver(\"Internal Walls?\",MasterValue(\"A17\"));\nif (MasterValue(\"A17\")==1){\n MasterModify(\"A76\",\"showthis\",true);\n MasterModify(\"A80\",\"showthis\",false);\n}else if (MasterValue(\"A17\")==2){\n MasterModify(\"A76,A80\",\"showthis\",true);\n}else {\n MasterModify(\"A76,A80\",\"showthis\",false);\n}","id":"A17","menu":false},{"name":["Left Wall","Sección"],"logo":"44-A28-2.svg","indexlogo":2,"type":"section","showthis":false,"open":false,"data":[{"name":["Left Section","Switch"],"logo":"44-A29-2.svg","showthis":true,"indexlogo":2,"help":["",""],"value":true,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Left Sect. Left Wall\",MasterValue(\"A29\"));","id":"A29","menu":false,"load":false},{"name":["Right Section","Switch - Copia"],"logo":"44-A55-2.svg","showthis":true,"indexlogo":2,"help":["",""],"value":true,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Right Sect. Left Wall\",MasterValue(\"A55\"));","id":"A55","menu":false,"load":false},{"name":["Position","Lista"],"logo":"44-A30-1.svg","indexlogo":1,"showthis":true,"value":"0","help":["",""],"placeholder":["",""],"type":"select","data":[{"name":["Axis A","Nombre"],"value":"0","price":0,"productcode":"-"},{"name":["Axis B","Nombre"],"value":"1","price":0,"productcode":"-"},{"name":["Axis C","Nombre"],"value":"2","price":0,"productcode":"-"},{"name":["Axis D","Nombre"],"value":"3","price":0,"productcode":"-"},{"name":["Axis E","Nombre"],"value":"4","price":0,"productcode":"-"},{"name":["Axis F","Nombre"],"value":"5","price":0,"productcode":"-"},{"name":["Axis G","Nombre"],"value":"6","price":0,"productcode":"-"},{"name":["Axis H","Nombre"],"value":"7","price":0,"productcode":"-"},{"name":["Axis I","Nombre"],"value":"8","price":0,"productcode":"-"},{"name":["Axis J","Nombre"],"value":"9","price":0,"productcode":"-"},{"name":["Axis K","Nombre"],"value":"10","price":0,"productcode":"-"},{"name":["Axis L","Nombre"],"value":"11","price":0,"productcode":"-"},{"name":["Axis M","Nombre"],"value":"12","price":0,"productcode":"-"},{"name":["Axis N","Nombre"],"value":"13","price":0,"productcode":"-"},{"name":["Axis O","Nombre"],"value":"14","price":0,"productcode":"-"},{"name":["Axis P","Nombre"],"value":"15","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Position Left Wall\",MasterValue(\"A30\"));","id":"A30","menu":true,"load":false}],"function":["$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-BW Color\",\"#ffffff\");\n});\n$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-FW Color\",\"#ffffff\");\n});\n$(WallEnds).not([\"LW\"]).each(function() {\n\tSetValShapeDiver(\"Sect. R-\"+this+\" Color\",\"#ffffff\");\n SetValShapeDiver(\"Sect. L-\"+this+\" Color\",\"#ffffff\");\n});\nSetValShapeDiver(\"Sect. R-LW Color\",\"#ff0000\");\nSetValShapeDiver(\"Sect. L-LW Color\",\"#00ffff\");\n\nUpdateGeometry();","MasterFunction('A18_OUT');"],"id":"A28","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"3","name":["Wall Layout","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Internal Wall 1","Sección - Copia - Copia"],"logo":"44-A76-4.svg","indexlogo":4,"type":"section","showthis":false,"open":false,"data":[{"name":["Left Section","Switch"],"logo":"44-A29-2.svg","showthis":true,"indexlogo":2,"help":["",""],"value":true,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Left Sect. Int Wall 1\",MasterValue(\"A77\"));","id":"A77","menu":false,"load":false},{"name":["Right Section","Switch - Copia"],"logo":"44-A55-2.svg","showthis":true,"indexlogo":2,"help":["",""],"value":true,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Right Sect. Int Wall 1\",MasterValue(\"A78\"));","id":"A78","menu":false,"load":false},{"name":["Position","Lista"],"logo":"44-A30-1.svg","indexlogo":1,"showthis":true,"value":"2","help":["",""],"placeholder":["",""],"type":"select","data":[{"name":["Axis A","Nombre"],"value":"0","price":0,"productcode":"-"},{"name":["Axis B","Nombre"],"value":"1","price":0,"productcode":"-"},{"name":["Axis C","Nombre"],"value":"2","price":0,"productcode":"-"},{"name":["Axis D","Nombre"],"value":"3","price":0,"productcode":"-"},{"name":["Axis E","Nombre"],"value":"4","price":0,"productcode":"-"},{"name":["Axis F","Nombre"],"value":"5","price":0,"productcode":"-"},{"name":["Axis G","Nombre"],"value":"6","price":0,"productcode":"-"},{"name":["Axis H","Nombre"],"value":"7","price":0,"productcode":"-"},{"name":["Axis I","Nombre"],"value":"8","price":0,"productcode":"-"},{"name":["Axis J","Nombre"],"value":"9","price":0,"productcode":"-"},{"name":["Axis K","Nombre"],"value":"10","price":0,"productcode":"-"},{"name":["Axis L","Nombre"],"value":"11","price":0,"productcode":"-"},{"name":["Axis M","Nombre"],"value":"12","price":0,"productcode":"-"},{"name":["Axis N","Nombre"],"value":"13","price":0,"productcode":"-"},{"name":["Axis O","Nombre"],"value":"14","price":0,"productcode":"-"},{"name":["Axis P","Nombre"],"value":"15","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Int. Wall 1 Position\",MasterValue(\"A79\"));","id":"A79","menu":false,"load":false}],"function":["$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-BW Color\",\"#ffffff\");\n});\n$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-FW Color\",\"#ffffff\");\n});\n$(WallEnds).not([\"IW1\"]).each(function() {\n\tSetValShapeDiver(\"Sect. R-\"+this+\" Color\",\"#ffffff\");\n SetValShapeDiver(\"Sect. L-\"+this+\" Color\",\"#ffffff\");\n});\nSetValShapeDiver(\"Sect. R-IW1 Color\",\"#ff0000\");\nSetValShapeDiver(\"Sect. L-IW1 Color\",\"#00ffff\");\n\nUpdateGeometry();","MasterFunction('A18_OUT');"],"id":"A76","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"3","name":["Wall Layout","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Internal Wall 2","Sección - Copia - Copia - Copia"],"logo":"44-A80-4.svg","indexlogo":4,"type":"section","showthis":false,"open":false,"data":[{"name":["Left Section","Switch"],"logo":"44-A29-2.svg","showthis":true,"indexlogo":2,"help":["",""],"value":true,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Left Sect. Int Wall 2\",MasterValue(\"A81\"));","id":"A81","menu":false,"load":false},{"name":["Right Section","Switch - Copia"],"logo":"44-A55-2.svg","showthis":true,"indexlogo":2,"help":["",""],"value":true,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Right Sect. Int Wall 2\",MasterValue(\"A82\"));","id":"A82","menu":false,"load":false},{"name":["Position","Lista"],"logo":"44-A30-1.svg","indexlogo":1,"showthis":true,"value":"2","help":["",""],"placeholder":["",""],"type":"select","data":[{"name":["Axis A","Nombre"],"value":"0","price":0,"productcode":"-"},{"name":["Axis B","Nombre"],"value":"1","price":0,"productcode":"-"},{"name":["Axis C","Nombre"],"value":"2","price":0,"productcode":"-"},{"name":["Axis D","Nombre"],"value":"3","price":0,"productcode":"-"},{"name":["Axis E","Nombre"],"value":"4","price":0,"productcode":"-"},{"name":["Axis F","Nombre"],"value":"5","price":0,"productcode":"-"},{"name":["Axis G","Nombre"],"value":"6","price":0,"productcode":"-"},{"name":["Axis H","Nombre"],"value":"7","price":0,"productcode":"-"},{"name":["Axis I","Nombre"],"value":"8","price":0,"productcode":"-"},{"name":["Axis J","Nombre"],"value":"9","price":0,"productcode":"-"},{"name":["Axis K","Nombre"],"value":"10","price":0,"productcode":"-"},{"name":["Axis L","Nombre"],"value":"11","price":0,"productcode":"-"},{"name":["Axis M","Nombre"],"value":"12","price":0,"productcode":"-"},{"name":["Axis N","Nombre"],"value":"13","price":0,"productcode":"-"},{"name":["Axis O","Nombre"],"value":"14","price":0,"productcode":"-"},{"name":["Axis P","Nombre"],"value":"15","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Int. Wall 2 Position\",MasterValue(\"A83\"));","id":"A83","menu":false,"load":false}],"function":["$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-BW Color\",\"#ffffff\");\n});\n$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-FW Color\",\"#ffffff\");\n});\n$(WallEnds).not([\"IW2\"]).each(function() {\n\tSetValShapeDiver(\"Sect. R-\"+this+\" Color\",\"#ffffff\");\n SetValShapeDiver(\"Sect. L-\"+this+\" Color\",\"#ffffff\");\n});\nSetValShapeDiver(\"Sect. R-IW2 Color\",\"#ff0000\");\nSetValShapeDiver(\"Sect. L-IW2 Color\",\"#00ffff\");\n\nUpdateGeometry();","MasterFunction('A18_OUT');"],"id":"A80","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"3","name":["Wall Layout","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Right Wall","Sección - Copia"],"logo":"44-A56-3.svg","indexlogo":3,"type":"section","showthis":false,"open":false,"data":[{"name":["Left Section","Switch"],"logo":"44-A29-2.svg","showthis":true,"indexlogo":2,"help":["",""],"value":true,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Left Sect. Right Wall\",MasterValue(\"A57\"));","id":"A57","menu":false,"load":false},{"name":["Right Section","Switch - Copia"],"logo":"44-A55-2.svg","showthis":true,"indexlogo":2,"help":["",""],"value":true,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Right Sect. Right Wall\",MasterValue(\"A58\"));","id":"A58","menu":false,"load":false},{"name":["Position","Lista"],"logo":"44-A30-1.svg","indexlogo":1,"showthis":true,"value":"5","help":["",""],"placeholder":["",""],"type":"select","data":[{"name":["Axis A","Nombre"],"value":"0","price":0,"productcode":"-"},{"name":["Axis B","Nombre"],"value":"1","price":0,"productcode":"-"},{"name":["Axis C","Nombre"],"value":"2","price":0,"productcode":"-"},{"name":["Axis D","Nombre"],"value":"3","price":0,"productcode":"-"},{"name":["Axis E","Nombre"],"value":"4","price":0,"productcode":"-"},{"name":["Axis F","Nombre"],"value":"5","price":0,"productcode":"-"},{"name":["Axis G","Nombre"],"value":"6","price":0,"productcode":"-"},{"name":["Axis H","Nombre"],"value":"7","price":0,"productcode":"-"},{"name":["Axis I","Nombre"],"value":"8","price":0,"productcode":"-"},{"name":["Axis J","Nombre"],"value":"9","price":0,"productcode":"-"},{"name":["Axis K","Nombre"],"value":"10","price":0,"productcode":"-"},{"name":["Axis L","Nombre"],"value":"11","price":0,"productcode":"-"},{"name":["Axis M","Nombre"],"value":"12","price":0,"productcode":"-"},{"name":["Axis N","Nombre"],"value":"13","price":0,"productcode":"-"},{"name":["Axis O","Nombre"],"value":"14","price":0,"productcode":"-"},{"name":["Axis P","Nombre"],"value":"15","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Position Right Wall\",MasterValue(\"A59\"));","id":"A59","menu":true,"load":false}],"function":["$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-BW Color\",\"#ffffff\");\n});\n$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-FW Color\",\"#ffffff\");\n});\n$(WallEnds).not([\"RW\"]).each(function() {\n\tSetValShapeDiver(\"Sect. R-\"+this+\" Color\",\"#ffffff\");\n SetValShapeDiver(\"Sect. L-\"+this+\" Color\",\"#ffffff\");\n});\nSetValShapeDiver(\"Sect. R-RW Color\",\"#ff0000\");\nSetValShapeDiver(\"Sect. L-RW Color\",\"#00ffff\");\n\nUpdateGeometry();","MasterFunction('A18_OUT');"],"id":"A56","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"3","name":["Wall Layout","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Front Wall","Sección"],"logo":"44-A18-2.svg","indexlogo":2,"type":"section","showthis":false,"open":false,"data":[{"name":["Wall?","Switch"],"logo":false,"showthis":true,"indexlogo":0,"help":["",""],"value":true,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"MasterModify(\"A47\",\"showthis\",MasterValue(\"A23\"));\nMasterModify(\"A42,A43,A44,A45,A46\",\"value\",MasterValue(\"A23\"));\nMasterFunction(\"A42,A43,A44,A45,A46\");\nUpdateGeometry();","id":"A23","menu":false},{"name":["Remove Sections","Desplegable"],"logo":false,"indexlogo":0,"showthis":true,"type":"dropdown","open":false,"data":[{"name":["Section A","Checkbox"],"value":false,"showthis":true,"help":["",""],"logo":"44-A42-2.svg","indexlogo":2,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Section A Front Wall\",MasterValue(\"A42\"));","id":"A42","menu":false,"load":false},{"name":["Section B","Checkbox"],"value":true,"showthis":true,"help":["",""],"logo":"44-A43-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Section B Front Wall\",MasterValue(\"A43\"));\nif (getModelDataForName(\"Sect B\")==\"HIDE\"){MasterModify(\"A49\",\"showthis\",false)}\nelse {MasterModify(\"A49\",\"showthis\",MasterValue(\"A43\"))}","id":"A43","menu":false,"load":false},{"name":["Section C","Checkbox - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A44-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Section C Front Wall\",MasterValue(\"A44\"));\nif (getModelDataForName(\"Sect C\")==\"HIDE\"){MasterModify(\"A50\",\"showthis\",false)}\nelse {MasterModify(\"A50\",\"showthis\",MasterValue(\"A44\"))}","id":"A44","menu":false,"load":false},{"name":["Section D","Checkbox - Copia - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A45-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Section D Front Wall\",MasterValue(\"A45\"));\nif (getModelDataForName(\"Sect D\")==\"HIDE\"){MasterModify(\"A51\",\"showthis\",false)}\nelse {MasterModify(\"A51\",\"showthis\",MasterValue(\"A45\"))}","id":"A45","menu":false,"load":false},{"name":["Section E","Checkbox - Copia - Copia - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A46-2.svg","indexlogo":2,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Section E Front Wall\",MasterValue(\"A46\"));","id":"A46","menu":false,"load":false}],"function":["MasterModify('A47','open',false);",""],"id":"A41","location":3,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"3","name":["Wall Layout","Sección"],"type":"section"},{"index":"8","name":["Front Wall","Sección"],"type":"section"}],"menu":false},{"name":["Move Sections","Desplegable - Copia"],"logo":false,"indexlogo":0,"showthis":true,"type":"dropdown","open":false,"data":[{"name":["Wall Position (m)","Deslizador"],"value":3,"logo":"44-A54-1.svg","indexlogo":1,"showthis":true,"code":"-","step":0.1,"type":"slider","help":["",""],"min":3,"max":15,"prices":0,"function":"SetValShapeDiver(\"Wall Position\",MasterValue(\"A54\"));\nMasterModify(\"A69\",\"value\",MasterValue(\"A54\"));","id":"A54","menu":true,"load":false},{"name":["Entire Wall","Checkbox - Copia - Copia - Copia - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A53-2.svg","indexlogo":2,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A53\")==true){\n SetValShapeDiver(\"Move Front Wall\",\"1\");\n MasterModify(\"A48,A49,A50,A51,A52\",\"value\", false);\n MasterModify(\"A54\",\"showthis\", true);\n}\nif (MasterValue(\"A48\")==false && MasterValue(\"A49\")==false && MasterValue(\"A50\")==false && MasterValue(\"A51\")==false && MasterValue(\"A52\")==false && MasterValue(\"A53\")==false){\n SetValShapeDiver(\"Move Front Wall\",\"0\");\n MasterModify(\"A54\",\"showthis\", false);\n}","id":"A53","menu":false,"load":false},{"name":["Section B","Checkbox"],"value":false,"showthis":true,"help":["",""],"logo":"44-A43-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A49\")==true){\n SetValShapeDiver(\"Move Front Wall\",\"2\");\n MasterModify(\"A48,A53,A50,A51,A52\",\"value\", false);\n MasterModify(\"A54\",\"showthis\", true);\n}\nif (MasterValue(\"A48\")==false && MasterValue(\"A49\")==false && MasterValue(\"A50\")==false && MasterValue(\"A51\")==false && MasterValue(\"A52\")==false && MasterValue(\"A53\")==false){\n SetValShapeDiver(\"Move Front Wall\",\"0\");\n MasterModify(\"A54\",\"showthis\", false);\n}","id":"A49","menu":false,"load":false},{"name":["Section C","Checkbox - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A44-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A50\")==true){\n SetValShapeDiver(\"Move Front Wall\",\"3\");\n MasterModify(\"A48,A53,A49,A51,A52\",\"value\", false);\n MasterModify(\"A54\",\"showthis\", true);\n}\nif (MasterValue(\"A48\")==false && MasterValue(\"A49\")==false && MasterValue(\"A50\")==false && MasterValue(\"A51\")==false && MasterValue(\"A52\")==false && MasterValue(\"A53\")==false){\n SetValShapeDiver(\"Move Front Wall\",\"0\");\n MasterModify(\"A54\",\"showthis\", false);\n}","id":"A50","menu":false,"load":false},{"name":["Section D","Checkbox - Copia - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A45-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A51\")==true){\n SetValShapeDiver(\"Move Front Wall\",\"4\");\n MasterModify(\"A48,A53,A49,A50,A52\",\"value\", false);\n MasterModify(\"A54\",\"showthis\", true);\n}\nif (MasterValue(\"A48\")==false && MasterValue(\"A49\")==false && MasterValue(\"A50\")==false && MasterValue(\"A51\")==false && MasterValue(\"A52\")==false && MasterValue(\"A53\")==false){\n SetValShapeDiver(\"Move Front Wall\",\"0\");\n MasterModify(\"A54\",\"showthis\", false);\n}","id":"A51","menu":false,"load":false},{"name":["Section B+C","Checkbox"],"value":false,"showthis":true,"help":["",""],"logo":"44-A48-3.svg","indexlogo":3,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A48\")==true){\n SetValShapeDiver(\"Move Front Wall\",\"5\");\n MasterModify(\"A51,A53,A49,A50,A52\",\"value\", false);\n MasterModify(\"A54\",\"showthis\", true);\n}\nif (MasterValue(\"A48\")==false && MasterValue(\"A49\")==false && MasterValue(\"A50\")==false && MasterValue(\"A51\")==false && MasterValue(\"A52\")==false && MasterValue(\"A53\")==false){\n SetValShapeDiver(\"Move Front Wall\",\"0\");\n MasterModify(\"A54\",\"showthis\", false);\n}","id":"A48","menu":false,"load":false},{"name":["Section C+D","Checkbox - Copia - Copia - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A52-2.svg","indexlogo":2,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A52\")==true){\n SetValShapeDiver(\"Move Front Wall\",\"6\");\n MasterModify(\"A51,A53,A49,A50,A48\",\"value\", false);\n MasterModify(\"A54\",\"showthis\", true);\n}\nif (MasterValue(\"A48\")==false && MasterValue(\"A49\")==false && MasterValue(\"A50\")==false && MasterValue(\"A51\")==false && MasterValue(\"A52\")==false && MasterValue(\"A53\")==false){\n SetValShapeDiver(\"Move Front Wall\",\"0\");\n MasterModify(\"A54\",\"showthis\", false);\n}","id":"A52","menu":false,"load":false}],"function":["MasterModify('A41','open',false);",""],"id":"A47","location":3,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"3","name":["Wall Layout","Sección"],"type":"section"},{"index":"8","name":["Front Wall","Sección"],"type":"section"}],"menu":false}],"function":["SetValShapeDiver(\"Sect. A-FW Color\",\"#ff0000\");\nSetValShapeDiver(\"Sect. B-FW Color\",\"#00ffff\");\nSetValShapeDiver(\"Sect. C-FW Color\",\"#ffff00\");\nSetValShapeDiver(\"Sect. D-FW Color\",\"#00ff00\");\nSetValShapeDiver(\"Sect. E-FW Color\",\"#ff00ff\");\n\n$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-BW Color\",\"#ffffff\");\n});\n\n$(WallEnds).each(function() {\n\tSetValShapeDiver(\"Sect. R-\"+this+\" Color\",\"#ffffff\");\n SetValShapeDiver(\"Sect. L-\"+this+\" Color\",\"#ffffff\");\n});\n\nUpdateGeometry();","$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-FW Color\",\"#ff0000\");\n});\n$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-BW Color\",\"#00ffff\");\n});\nSetValShapeDiver(\"Sect. R-RW Color\",\"#00ff00\");\nSetValShapeDiver(\"Sect. L-RW Color\",\"#00ff00\");\nSetValShapeDiver(\"Sect. R-LW Color\",\"#ffff00\");\nSetValShapeDiver(\"Sect. L-LW Color\",\"#ffff00\");\nSetValShapeDiver(\"Sect. R-IW1 Color\",\"#ff7200\");\nSetValShapeDiver(\"Sect. L-IW1 Color\",\"#ff7200\");\nSetValShapeDiver(\"Sect. R-IW2 Color\",\"#ff00ff\");\nSetValShapeDiver(\"Sect. L-IW2 Color\",\"#ff00ff\");\n\nMasterModify('A41,A47,A62,A68','open',false);\nUpdateGeometry();"],"id":"A18","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"3","name":["Wall Layout","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Back Wall","Sección - Copia"],"logo":"44-A60-2.svg","indexlogo":2,"type":"section","showthis":false,"open":false,"data":[{"name":["Wall?","Switch"],"logo":false,"showthis":true,"indexlogo":0,"help":["",""],"value":true,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"MasterModify(\"A68\",\"showthis\",MasterValue(\"A61\"));\nMasterModify(\"A63,A64,A65,A66,A67\",\"value\",MasterValue(\"A61\"));\nMasterFunction(\"A63,A64,A65,A66,A67\");\nUpdateGeometry();","id":"A61","menu":true},{"name":["Remove Sections","Desplegable"],"logo":false,"indexlogo":0,"showthis":true,"type":"dropdown","open":false,"data":[{"name":["Section A","Checkbox"],"value":false,"showthis":true,"help":["",""],"logo":"44-A42-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Section A Back Wall\",MasterValue(\"A63\"));","id":"A63","menu":false,"load":false},{"name":["Section B","Checkbox"],"value":true,"showthis":true,"help":["",""],"logo":"44-A43-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Section B Back Wall\",MasterValue(\"A64\"));\nif (getModelDataForName(\"Sect B\")==\"HIDE\"){MasterModify(\"A71\",\"showthis\",false)}\nelse {MasterModify(\"A71\",\"showthis\",MasterValue(\"A64\"))}","id":"A64","menu":true,"load":false},{"name":["Section C","Checkbox - Copia"],"value":true,"showthis":true,"help":["",""],"logo":"44-A44-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Section C Back Wall\",MasterValue(\"A65\"));\nif (getModelDataForName(\"Sect C\")==\"HIDE\"){MasterModify(\"A72\",\"showthis\",false)}\nelse {MasterModify(\"A72\",\"showthis\",MasterValue(\"A65\"))}","id":"A65","menu":true,"load":false},{"name":["Section D","Checkbox - Copia - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A45-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Section D Back Wall\",MasterValue(\"A66\"));\nif (getModelDataForName(\"Sect D\")==\"HIDE\"){MasterModify(\"A73\",\"showthis\",false)}\nelse {MasterModify(\"A73\",\"showthis\",MasterValue(\"A66\"))}","id":"A66","menu":true,"load":false},{"name":["Section E","Checkbox - Copia - Copia - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A46-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Section E Back Wall\",MasterValue(\"A67\"));","id":"A67","menu":false,"load":false}],"function":["MasterModify('A47','open',false);",""],"id":"A62","location":3,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"3","name":["Wall Layout","Sección"],"type":"section"},{"index":"11","name":["Back Wall","Sección - Copia"],"type":"section"}],"menu":false},{"name":["Move Sections","Desplegable - Copia"],"logo":false,"indexlogo":0,"showthis":true,"type":"dropdown","open":false,"data":[{"name":["Wall Position (m)","Deslizador"],"value":3,"logo":"44-A54-1.svg","indexlogo":1,"showthis":true,"code":"-","step":0.1,"type":"slider","help":["",""],"min":3,"max":15,"prices":0,"function":"SetValShapeDiver(\"Wall Position\",MasterValue(\"A69\"));\nMasterModify(\"A54\",\"value\",MasterValue(\"A69\"));","id":"A69","menu":true,"load":false},{"name":["Entire Wall","Checkbox - Copia - Copia - Copia - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A53-2.svg","indexlogo":2,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A70\")==true){\n SetValShapeDiver(\"Move Back Wall\",\"1\");\n MasterModify(\"A71,A72,A73,A74,A75\",\"value\", false);\n MasterModify(\"A69\",\"showthis\", true);\n}\nif (MasterValue(\"A70\")==false && MasterValue(\"A71\")==false && MasterValue(\"A72\")==false && MasterValue(\"A73\")==false && MasterValue(\"A74\")==false && MasterValue(\"A75\")==false){\n SetValShapeDiver(\"Move Back Wall\",\"0\");\n MasterModify(\"A69\",\"showthis\", false);\n}","id":"A70","menu":false,"load":false},{"name":["Section B","Checkbox"],"value":false,"showthis":true,"help":["",""],"logo":"44-A43-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A71\")==true){\n SetValShapeDiver(\"Move Back Wall\",\"2\");\n MasterModify(\"A70,A72,A73,A74,A75\",\"value\", false);\n MasterModify(\"A69\",\"showthis\", true);\n}\nif (MasterValue(\"A70\")==false && MasterValue(\"A71\")==false && MasterValue(\"A72\")==false && MasterValue(\"A73\")==false && MasterValue(\"A74\")==false && MasterValue(\"A75\")==false){\n SetValShapeDiver(\"Move Back Wall\",\"0\");\n MasterModify(\"A69\",\"showthis\", false);\n}","id":"A71","menu":false,"load":false},{"name":["Section C","Checkbox - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A44-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A72\")==true){\n SetValShapeDiver(\"Move Back Wall\",\"3\");\n MasterModify(\"A71,A70,A73,A74,A75\",\"value\", false);\n MasterModify(\"A69\",\"showthis\", true);\n}\nif (MasterValue(\"A70\")==false && MasterValue(\"A71\")==false && MasterValue(\"A72\")==false && MasterValue(\"A73\")==false && MasterValue(\"A74\")==false && MasterValue(\"A75\")==false){\n SetValShapeDiver(\"Move Back Wall\",\"0\");\n MasterModify(\"A69\",\"showthis\", false);\n}","id":"A72","menu":false,"load":false},{"name":["Section D","Checkbox - Copia - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A45-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A73\")==true){\n SetValShapeDiver(\"Move Back Wall\",\"4\");\n MasterModify(\"A71,A72,A70,A74,A75\",\"value\", false);\n MasterModify(\"A69\",\"showthis\", true);\n}\nif (MasterValue(\"A70\")==false && MasterValue(\"A71\")==false && MasterValue(\"A72\")==false && MasterValue(\"A73\")==false && MasterValue(\"A74\")==false && MasterValue(\"A75\")==false){\n SetValShapeDiver(\"Move Back Wall\",\"0\");\n MasterModify(\"A69\",\"showthis\", false);\n}","id":"A73","menu":false,"load":false},{"name":["Section B+C","Checkbox"],"value":false,"showthis":true,"help":["",""],"logo":"44-A48-3.svg","indexlogo":3,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A74\")==true){\n SetValShapeDiver(\"Move Back Wall\",\"5\");\n MasterModify(\"A71,A72,A73,A70,A75\",\"value\", false);\n MasterModify(\"A69\",\"showthis\", true);\n}\nif (MasterValue(\"A70\")==false && MasterValue(\"A71\")==false && MasterValue(\"A72\")==false && MasterValue(\"A73\")==false && MasterValue(\"A74\")==false && MasterValue(\"A75\")==false){\n SetValShapeDiver(\"Move Back Wall\",\"0\");\n MasterModify(\"A69\",\"showthis\", false);\n}","id":"A74","menu":false,"load":false},{"name":["Section C+D","Checkbox - Copia - Copia - Copia"],"value":false,"showthis":true,"help":["",""],"logo":"44-A52-2.svg","indexlogo":2,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"if (MasterValue(\"A75\")==true){\n SetValShapeDiver(\"Move Back Wall\",\"6\");\n MasterModify(\"A71,A72,A73,A74,A70\",\"value\", false);\n MasterModify(\"A69\",\"showthis\", true);\n}\nif (MasterValue(\"A70\")==false && MasterValue(\"A71\")==false && MasterValue(\"A72\")==false && MasterValue(\"A73\")==false && MasterValue(\"A74\")==false && MasterValue(\"A75\")==false){\n SetValShapeDiver(\"Move Back Wall\",\"0\");\n MasterModify(\"A69\",\"showthis\", false);\n}","id":"A75","menu":false,"load":false}],"function":["MasterModify('A41','open',false);",""],"id":"A68","location":3,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"3","name":["Wall Layout","Sección"],"type":"section"},{"index":"11","name":["Back Wall","Sección - Copia"],"type":"section"}],"menu":false}],"function":["SetValShapeDiver(\"Sect. A-BW Color\",\"#ff0000\");\nSetValShapeDiver(\"Sect. B-BW Color\",\"#00ffff\");\nSetValShapeDiver(\"Sect. C-BW Color\",\"#ffff00\");\nSetValShapeDiver(\"Sect. D-BW Color\",\"#00ff00\");\nSetValShapeDiver(\"Sect. E-BW Color\",\"#ff00ff\");\n\n$(SectSides).each(function() {\n\tSetValShapeDiver(\"Sect. \"+this+\"-FW Color\",\"#ffffff\");\n});\n\n$(WallEnds).each(function() {\n\tSetValShapeDiver(\"Sect. R-\"+this+\" Color\",\"#ffffff\");\n SetValShapeDiver(\"Sect. L-\"+this+\" Color\",\"#ffffff\");\n});\n\nUpdateGeometry();","MasterFunction('A18_OUT');"],"id":"A60","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"3","name":["Wall Layout","Sección"],"type":"section"}],"menu":false,"load":false}],"function":["MasterFunction('A8_IN');","MasterFunction('A8_OUT');"],"id":"A15","location":1,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]}],"menu":false,"load":false},{"name":["Add Doors/Windows","Sección - Copia"],"logo":"44-A106-2.svg","indexlogo":2,"type":"section","showthis":true,"open":false,"data":[{"name":["Open Doors (%)","Deslizador"],"value":0,"logo":false,"indexlogo":0,"showthis":true,"code":"-","step":25,"type":"slider","help":["",""],"min":0,"max":100,"prices":0,"function":"SetValShapeDiver(\"Open Doors\",MasterValue(\"A186\"));","id":"A186","menu":false},{"name":["Edit Door/Window","Sección"],"logo":false,"indexlogo":0,"type":"section","showthis":false,"open":false,"data":[{"name":["Select Wall","Lista"],"logo":"44-A176-1.svg","indexlogo":1,"showthis":true,"value":null,"help":["",""],"placeholder":["In which wall the object is located?",""],"type":"select","data":[{"name":["Left Wall","Nombre"],"value":"left","price":0,"productcode":"-"},{"name":["Internal Wall 1","Nombre"],"value":"intWall_1","price":0,"productcode":"-"},{"name":["Internal Wall 2","Nombre"],"value":"intWall_2","price":0,"productcode":"-"},{"name":["Right Wall","Nombre"],"value":"right","price":0,"productcode":"-"},{"name":["Front Wall","Nombre"],"value":"front","price":0,"productcode":"-"},{"name":["Back Wall","Nombre"],"value":"back","price":0,"productcode":"-"}],"prices":0,"function":"//setJSONval\n\nwallValue = MasterValue (MasterId);\n\nfor (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n if (doorsWindows[\"doorsWindows\"][i][\"ID\"] == MasterSectionId(MasterId)) {\n doorsWindows[\"doorsWindows\"][i][\"wall\"] = MasterValue(MasterId);\n break;\n }\n}\n\n//moveCamera\n\nif (MasterValue(MasterId)==\"front\"){MasterView('down')}\nelse if (MasterValue(MasterId)==\"back\"){MasterView('up')}\nelse if (MasterValue(MasterId)==\"right\"){MasterView('right')}\nelse if (MasterValue(MasterId)==\"left\"){MasterView('left')}\nelse if (MasterValue(MasterId)==\"intWall_1\"){\n\tvar payload = {\n command:\"setCamera\",\n arguments:[{x:(MasterValue(\"A79\")*MasterValue(\"A10\"))-MasterValue(\"A9\"), y:0, z:ridgeHeight*2},{x:MasterValue(\"A79\")*MasterValue(\"A10\"), y:0, z:(MasterValue(\"A13\")/2)}, true, 3000]};\n\tSourceShapeDiver.postMessage(payload,\"https://www.shapediver.com\");\n}\nelse if (MasterValue(MasterId)==\"intWall_2\"){\n\tvar payload = {\n command:\"setCamera\",\n arguments:[{x:(MasterValue(\"A83\")*MasterValue(\"A10\"))-MasterValue(\"A9\"), y:0, z:ridgeHeight*2},{x:MasterValue(\"A83\")*MasterValue(\"A10\"), y:0, z:(MasterValue(\"A13\")/2)}, true, 3000]};\n\tSourceShapeDiver.postMessage(payload,\"https://www.shapediver.com\");\n}\n\n//showNextStep\n\nif (MasterValue(MasterId)==\"front\"||MasterValue(MasterId)==\"back\"){\n SetValShapeDiver(\"Bay Numbers\",true);\n\tMasterModify(MasterSectionId(MasterId,1),\"showthis\",true);\n}else{\n SetValShapeDiver(\"Bay Numbers\",false);\n MasterModify(MasterSectionId(MasterId,1),\"showthis\",false);\n\n\tif (MasterValue(MasterSectionId(MasterId,1)) == null){\n\t\tMasterModify(MasterSectionId(MasterId,1),\"value\",\"1\");\n\t}\n\n\tfor (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n\t if (doorsWindows[\"doorsWindows\"][i][\"ID\"] == MasterSectionId(MasterId)) {\n\t doorsWindows[\"doorsWindows\"][i][\"bay\"] = MasterValue(MasterSectionId(MasterId,1));\n\t break;\n\t }\n\t}\n\n\tMasterModify(MasterSectionId(MasterId,2),\"showthis\",null);\n if (style == null){\n MasterModify(MasterSectionId(MasterId,2),\"open\",true);\n }\n}\n\nfor (var i = 0; i <= 15; i++){\n\tMasterModify(MasterSectionId(nextId,1),\"hideoption\",false,i);\n}\n\nfor (var i = MasterValue(\"A11\")+1; i <= 15; i++){\n\tMasterModify(MasterSectionId(nextId,1),\"hideoption\",true,i);\n}\n\n//SECT A\nif (MasterValue(\"A30\") > 0 && ((wallValue == \"front\" && MasterValue(\"A42\") == false) || (wallValue == \"back\" && MasterValue(\"A63\") == false))){\n\tfor (var i = 1; i <= Number(MasterValue(\"A30\")); i++){\n\t\tMasterModify(MasterSectionId(nextId,1),\"hideoption\",true,i);\n\t}\n}\n\n//SECT B\n\nif ((wallValue == \"front\" && MasterValue(\"A43\") == false) || (wallValue == \"back\" && MasterValue(\"A64\") == false)){\n\tvar end;\n\tif (MasterValue(\"A17\")==0){end=MasterValue(\"A59\");}\n\telse {end = MasterValue(\"A79\");}\n\n\tfor (var i = Number(MasterValue(\"A30\"))+1; i <= Number(end); i++){\n\t\tMasterModify(MasterSectionId(nextId,1),\"hideoption\",true,i);\n\t}\n}\n\n\n//SECT C\nif (MasterValue(\"A17\") > 0 && ((wallValue == \"front\" && MasterValue(\"A44\") == false) || (wallValue == \"back\" && MasterValue(\"A65\") == false))){\n\tvar end;\n\tif (MasterValue(\"A17\")==1){end=MasterValue(\"A59\");}\n\telse {end = MasterValue(\"A83\");}\n\n\tfor (var i = Number(MasterValue(\"A79\"))+1; i <= Number(end); i++){\n\t\tMasterModify(MasterSectionId(nextId,1),\"hideoption\",true,i);\n\t}\n}\n\n//SECT D\nif (MasterValue(\"A17\") > 1 && ((wallValue == \"front\" && MasterValue(\"A45\") == false) || (wallValue == \"back\" && MasterValue(\"A66\") == false))){\n\tfor (var i = Number(MasterValue(\"A83\"))+1; i <= Number(MasterValue(\"A59\")); i++){\n\t\tMasterModify(MasterSectionId(nextId,1),\"hideoption\",true,i);\n\t}\n}\n\n//SECT E\nif (MasterValue(\"A59\") != MasterValue(\"A11\") && ((wallValue == \"front\" && MasterValue(\"A46\") == false) || (wallValue == \"back\" && MasterValue(\"A67\") == false))){\n\tfor (var i = Number(MasterValue(\"A59\"))+1; i <= MasterValue(\"A11\"); i++){\n\t\tMasterModify(MasterSectionId(nextId,1),\"hideoption\",true,i);\n\t}\n}\n\nif (style != null){updateDoors();}","id":"A176","menu":false,"load":false},{"name":["Select Bay","Lista - Copia"],"logo":"44-A181-1.svg","indexlogo":1,"showthis":false,"value":null,"help":["",""],"placeholder":["In which bay the object is located?",""],"type":"select","data":[{"name":["Bay 1","Nombre"],"value":"1","price":0,"productcode":"-"},{"name":["Bay 2","Nombre"],"value":"2","price":0,"productcode":"-"},{"name":["Bay 3","Nombre"],"value":"3","price":0,"productcode":"-"},{"name":["Bay 4","Nombre"],"value":"4","price":0,"productcode":"-"},{"name":["Bay 5","Nombre"],"value":"5","price":0,"productcode":"-"},{"name":["Bay 6","Nombre"],"value":"6","price":0,"productcode":"-"},{"name":["Bay 7","Nombre"],"value":"7","price":0,"productcode":"-"},{"name":["Bay 8","Nombre"],"value":"8","price":0,"productcode":"-"},{"name":["Bay 9","Nombre"],"value":"9","price":0,"productcode":"-"},{"name":["Bay 10","Nombre"],"value":"10","price":0,"productcode":"-"},{"name":["Bay 11","Nombre"],"value":"11","price":0,"productcode":"-"},{"name":["Bay 12","Nombre"],"value":"12","price":0,"productcode":"-"},{"name":["Bay 13","Nombre"],"value":"13","price":0,"productcode":"-"},{"name":["Bay 14","Nombre"],"value":"14","price":0,"productcode":"-"},{"name":["Bay 15","Nombre"],"value":"15","price":0,"productcode":"-"}],"prices":0,"function":"//setJSONval\n\nfor (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n if (doorsWindows[\"doorsWindows\"][i][\"ID\"] == MasterSectionId(MasterId)) {\n doorsWindows[\"doorsWindows\"][i][\"bay\"] = MasterValue(MasterId);\n break;\n }\n}\n\n//moveCamera\n\nif (MasterValue(MasterSectionId(MasterId,0))==\"front\"){\n\tvar payload = {\n command:\"setCamera\",\n arguments:[{x:(MasterValue(MasterId)*MasterValue(\"A10\"))-(MasterValue(\"A10\")/2), y:(MasterValue(\"A10\")+MasterValue(\"A9\"))*-1, z:MasterValue(\"A13\")/2},{x:(MasterValue(MasterId)*MasterValue(\"A10\"))-(MasterValue(\"A10\")/2), y:0, z:MasterValue(\"A13\")/2}, true, 3000]};\n\tSourceShapeDiver.postMessage(payload,\"https://www.shapediver.com\");\n}else if (MasterValue(MasterSectionId(MasterId,0))==\"back\"){\n\tvar payload = {\n command:\"setCamera\",\n arguments:[{x:(MasterValue(MasterId)*MasterValue(\"A10\"))-(MasterValue(\"A10\")/2), y:MasterValue(\"A10\")+MasterValue(\"A9\"), z:MasterValue(\"A13\")/2},{x:(MasterValue(MasterId)*MasterValue(\"A10\"))-(MasterValue(\"A10\")/2), y:0, z:MasterValue(\"A13\")/2}, true, 3000]};\n\tSourceShapeDiver.postMessage(payload,\"https://www.shapediver.com\");\t\n}\n\n//showNextStep\n\nif (style != null){updateDoors();}\nelse {MasterModify(MasterSectionId(MasterId,2),\"open\",true);}\n\nMasterModify(MasterSectionId(MasterId,2),\"showthis\",null);\nSetValShapeDiver(\"Bay Numbers\",false);","id":"A181","menu":false,"load":false},{"name":["Select Door/Window","Desplegable"],"logo":false,"indexlogo":0,"showthis":false,"type":"dropdown","open":false,"data":[{"name":["Which element do you want to place?","Imagen Pequeña"],"value":null,"showthis":true,"type":"image1","help":["",""],"logo":"44-A175-1.svg","indexlogo":1,"data":[{"indexlogo":2,"name":["Roller Door","Imagen"],"value":"roller","path":"44-A175-0-2.png","load":false,"price":0,"productcode":"-"},{"indexlogo":1,"name":["Sectional Door","Imagen"],"value":"sectional","path":"44-A175-1-1.png","load":false,"price":0,"productcode":"-"},{"indexlogo":2,"name":["Coloursteel PA Door","Imagen"],"value":"steelPA","path":"44-A175-2-2.png","load":false,"price":0,"productcode":"-"},{"indexlogo":2,"name":["Zincalume PA Door","Imagen"],"value":"zincPA","path":"44-A175-3-2.png","load":false,"price":0,"productcode":"-"},{"indexlogo":2,"name":["Aluminium PA Door","Imagen"],"value":"alumPA","path":"44-A175-4-2.png","load":false,"price":0,"productcode":"-"},{"indexlogo":1,"name":["Window","Imagen"],"value":"WD","path":"44-A175-5-1.png","load":false,"price":0,"productcode":"-"},{"indexlogo":1,"name":["Ranch Slider","Imagen"],"value":"sliding","path":"44-A175-6-1.png","load":false,"price":0,"productcode":"-"},{"indexlogo":1,"name":["Barn Door","Imagen"],"value":"barn","path":"44-A175-7-1.png","load":false,"price":0,"productcode":"-"}],"prices":0,"function":"//setJSONval\nfor (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n if (doorsWindows[\"doorsWindows\"][i][\"ID\"] == MasterSectionId(MasterSectionId(MasterId))) {\n doorsWindows[\"doorsWindows\"][i][\"style\"] = MasterValue(MasterId);\n break;\n }\n}\n\n//changeSectionNameAndClose\n\nMasterModify(MasterSectionId(MasterId),\"open\",false);\nMasterModify(MasterSectionId(MasterId),\"name\",\"Change Door/Window\");\n\nstyle = MasterValue(MasterId);\nupdateDoors();","id":"A175","menu":true,"load":false}],"function":["",""],"id":"A174","location":3,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"14","name":["Add Doors/Windows","Sección - Copia"],"type":"section"},{"index":"15","name":["Edit Door/Window","Sección"],"type":"section"}],"menu":false},{"name":["Set Width","Deslizador"],"value":0,"logo":"44-A178-1.svg","indexlogo":1,"showthis":true,"code":"-","step":1,"type":"slider","help":["",""],"min":0,"max":6,"prices":0,"function":"updateDoors();","id":"A178","menu":true,"load":false},{"name":["Set Height","Deslizador"],"value":0,"logo":"44-A179-1.svg","indexlogo":1,"showthis":true,"code":"-","step":1,"type":"slider","help":["",""],"min":0,"max":6,"prices":0,"function":"updateDoors();","id":"A179","menu":true,"load":false},{"name":["Set Location in Wall","Deslizador"],"value":0.4,"logo":false,"indexlogo":0,"showthis":false,"code":"-","step":0.1,"type":"slider","help":["",""],"min":0,"max":1,"prices":0,"function":"updateDoors();","id":"A177","menu":false},{"name":["Set Sill Height (m)","Deslizador - Copia"],"value":0,"logo":false,"indexlogo":0,"showthis":false,"code":"-","step":0.1,"type":"slider","help":["",""],"min":0,"max":1,"prices":0,"function":"updateDoors();","id":"A185","menu":false},{"name":["Opening Side","Lista"],"logo":"44-A182-1.svg","indexlogo":1,"showthis":false,"value":"out","help":["",""],"placeholder":["",""],"type":"select","data":[{"name":["OUT","Nombre"],"value":"out","price":0,"productcode":"-"},{"name":["IN","Nombre"],"value":"in","price":0,"productcode":"-"}],"prices":0,"function":"for (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n if (doorsWindows[\"doorsWindows\"][i][\"ID\"] == MasterSectionId(MasterId)) {\n doorsWindows[\"doorsWindows\"][i][\"openingSide\"] = MasterValue(MasterId);\n break;\n }\n}\nSetValShapeDiver(\"DoorsAndWindows\",JSON.stringify(doorsWindows,null,0));","id":"A182","menu":false,"load":false},{"name":["Hinge Position","Lista - Copia"],"logo":"44-A183-1.svg","indexlogo":1,"showthis":false,"value":"right","help":["",""],"placeholder":["",""],"type":"select","data":[{"name":["RIGHT","Nombre"],"value":"right","price":0,"productcode":"-"},{"name":["LEFT","Nombre"],"value":"left","price":0,"productcode":"-"}],"prices":0,"function":"for (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n if (doorsWindows[\"doorsWindows\"][i][\"ID\"] == MasterSectionId(MasterId)) {\n doorsWindows[\"doorsWindows\"][i][\"hingePost\"] = MasterValue(MasterId);\n break;\n }\n}\nSetValShapeDiver(\"DoorsAndWindows\",JSON.stringify(doorsWindows,null,0));","id":"A183","menu":false,"load":false},{"name":["Remove Door/Window","Botón"],"help":["",""],"logo":"44-A180-1.svg","showthis":true,"indexlogo":1,"type":"button","text":["Remove","Botón"],"function":"for (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n if (doorsWindows[\"doorsWindows\"][i][\"ID\"] == MasterSectionId(MasterId)) {\n doorsWindows[\"doorsWindows\"].splice(i,1);\n break;\n }\n}\nupdateDoors();\n\nMasterModify(\"Menu1\", \"close\");\nMasterModify(itemId,\"showthis\",false);","id":"A180","menu":false,"load":false}],"function":["itemId = MasterId;\nnextId = \"A\"+(Number(itemId.match(/[0-9]+/g))+1);\n\nwidthId = MasterSectionId(nextId,3);\nheightId = MasterSectionId(nextId,4);\nlocationXId = MasterSectionId(nextId,5);\nlocationZId = MasterSectionId(nextId,6);\nopeningSideId = MasterSectionId(nextId,7);\nhingePostId = MasterSectionId(nextId,8);\n\nif (MasterValue(\"A17\")==0){\n MasterModify(nextId,\"hideoption\",true,\"intWall_1\");\n MasterModify(nextId,\"hideoption\",true,\"intWall_2\");\n} else if (MasterValue(\"A17\")==1){\n MasterModify(nextId,\"hideoption\",false,\"intWall_1\");\n MasterModify(nextId,\"hideoption\",true,\"intWall_2\");\n} else {\n MasterModify(nextId,\"hideoption\",false,\"intWall_1\");\n MasterModify(nextId,\"hideoption\",false,\"intWall_2\");\n}\n\nif (doorsWindows[\"doorsWindows\"].length != 0){\n for (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n if (doorsWindows[\"doorsWindows\"][i][\"ID\"] == itemId) {\n doorsWindows[\"doorsWindows\"][i][\"dimensions\"] = true;\n SetValShapeDiver(\"DoorsAndWindows\",JSON.stringify(doorsWindows,null,0));\n style = doorsWindows[\"doorsWindows\"][i][\"style\"];\n wallValue = doorsWindows[\"doorsWindows\"][i][\"wall\"];\n\n if (doorsWindows[\"doorsWindows\"][i][\"wall\"] == \"front\"){\n var payload = {\n command:\"setCamera\",\n arguments:[{\n x:(doorsWindows[\"doorsWindows\"][i][\"bay\"]*MasterValue(\"A10\"))-(MasterValue(\"A10\")/2),\n y:(MasterValue(\"A10\")+MasterValue(\"A9\"))*-1, \n z:MasterValue(\"A13\")/2\n },{\n x:(doorsWindows[\"doorsWindows\"][i][\"bay\"]*MasterValue(\"A10\"))-(MasterValue(\"A10\")/2), \n y:0, \n z:MasterValue(\"A13\")/2\n }, true, 3000]\n };\n SourceShapeDiver.postMessage(payload,\"https://www.shapediver.com\");\n }\n else if (doorsWindows[\"doorsWindows\"][i][\"wall\"] == \"back\"){\n var payload = {\n command:\"setCamera\",\n arguments:[{\n x:(doorsWindows[\"doorsWindows\"][i][\"bay\"]*MasterValue(\"A10\"))-(MasterValue(\"A10\")/2), \n y:MasterValue(\"A10\")+MasterValue(\"A9\"), \n z:MasterValue(\"A13\")/2\n },{\n x:(doorsWindows[\"doorsWindows\"][i][\"bay\"]*MasterValue(\"A10\"))-(MasterValue(\"A10\")/2), \n y:0, \n z:MasterValue(\"A13\")/2\n }, true, 3000]\n };\n SourceShapeDiver.postMessage(payload,\"https://www.shapediver.com\"); \n }\n else if (doorsWindows[\"doorsWindows\"][i][\"wall\"] == \"right\"){MasterView('right')}\n else if (doorsWindows[\"doorsWindows\"][i][\"wall\"] == \"left\"){MasterView('left')}\n else if (doorsWindows[\"doorsWindows\"][i][\"wall\"] == \"intWall_1\"){\n var payload = {\n command:\"setCamera\",\n arguments:[{\n x:(MasterValue(\"A79\")*MasterValue(\"A10\"))-MasterValue(\"A9\"), \n y:0, \n z:ridgeHeight*2\n },{\n x:MasterValue(\"A79\")*MasterValue(\"A10\"), \n y:0, \n z:(MasterValue(\"A13\")/2)\n }, true, 3000]\n };\n SourceShapeDiver.postMessage(payload,\"https://www.shapediver.com\");\n }\n else if (doorsWindows[\"doorsWindows\"][i][\"wall\"] == \"intWall_2\"){\n var payload = {\n command:\"setCamera\",\n arguments:[{\n x:(MasterValue(\"A83\")*MasterValue(\"A10\"))-MasterValue(\"A9\"), \n y:0, \n z:ridgeHeight*2\n },{\n x:MasterValue(\"A83\")*MasterValue(\"A10\"), \n y:0, \n z:(MasterValue(\"A13\")/2)\n }, true, 3000]\n };\n SourceShapeDiver.postMessage(payload,\"https://www.shapediver.com\");\n }\n break;\n }else{\n if (i == (doorsWindows[\"doorsWindows\"].length-1)){\n style = null;\n doorsWindows[\"doorsWindows\"].push({\n \"ID\": itemId,\n \"style\": \"roller\",\n \"wall\": \"front\",\n \"bay\": 1,\n \"location\": [0,0],\n \"width\": 0,\n \"height\": 0,\n \"openingSide\": \"out\",\n \"hingePost\": \"right\",\n \"dimensions\": true,\n });\n break;\n }\n }\n }\n}else{\n style = null;\n doorsWindows[\"doorsWindows\"].push({\n \"ID\": itemId,\n \"style\": \"roller\",\n \"wall\": \"front\",\n \"bay\": 1,\n \"location\": [0,0],\n \"width\": 0,\n \"height\": 0,\n \"openingSide\": \"out\",\n \"hingePost\": \"right\",\n \"dimensions\": true,\n });\n}\n\n//alert(JSON.stringify(doorsWindows,null,0));","for (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n if (doorsWindows[\"doorsWindows\"][i][\"ID\"] == itemId) {\n doorsWindows[\"doorsWindows\"][i][\"dimensions\"] = false;\n break;\n }\n}\nSetValShapeDiver(\"DoorsAndWindows\",JSON.stringify(doorsWindows,null,0));\nMasterView(\"backward\");\n\nfor (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n if (doorsWindows[\"doorsWindows\"][i][\"style\"] != \"WD\") {\n MasterModify(\"A186\",\"showthis\",null);\n break;\n }else{\nMasterModify(\"A186\",\"showthis\",false);\n}\n}"],"id":"A172","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"14","name":["Add Doors/Windows","Sección - Copia"],"type":"section"}],"menu":false},{"name":["Add Door/Window","Botón"],"help":["",""],"logo":false,"showthis":true,"indexlogo":0,"type":"button","text":["Add","Botón"],"function":"MasterModify(\"A172\",\"showthis\",true);\nMasterModify(\"A172\", 'duplicate');\nMasterModify(\"A172\",\"showthis\",false);","id":"A171","menu":true}],"function":["SetValShapeDiver(\"Compute Roof?\",false);\nSetValShapeDiver(\"Compute Ground?\",false);\nSetValShapeDiver(\"Compute Floor Plan?\",false);\nvar payload = { command: \"setAmbientOcclusion\", arguments: [false] }; SourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nvar payload = { command: \"toggleSceneBackground\", arguments: [false] }; SourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nMasterView(\"backward\");","SetValShapeDiver(\"Compute Roof?\",true);\nSetValShapeDiver(\"Compute Ground?\",true);\nSetValShapeDiver(\"Compute Floor Plan?\",true);\nvar payload = { command: \"setAmbientOcclusion\", arguments: [true] }; SourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nvar payload = { command: \"toggleSceneBackground\", arguments: [true] }; SourceShapeDiver.postMessage(payload, \"https://www.shapediver.com\");\nMasterView(\"backward_right_down\");"],"id":"A106","location":1,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]}],"menu":true,"load":false},{"name":["Cladding Options","Sección"],"logo":"44-A84-1.svg","indexlogo":1,"type":"section","showthis":true,"open":false,"data":[{"name":["Ridge and Barge Flashing?","Checkbox"],"value":true,"showthis":true,"help":["",""],"logo":"44-A86-3.svg","indexlogo":3,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Ridge and Barge Flashing?\",MasterValue(\"A86\"));\nMasterModify(\"A94,A96\",\"showthis\",MasterValue(\"A86\"));","id":"A86","menu":false,"load":false},{"name":["Gutters?","Checkbox"],"value":true,"showthis":true,"help":["",""],"logo":"44-A87-1.svg","indexlogo":1,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Gutters?\",MasterValue(\"A87\"));\nMasterModify(\"A100\",\"showthis\",MasterValue(\"A87\"));","id":"A87","menu":false,"load":false},{"name":["Skylights?","Checkbox - Copia"],"value":true,"showthis":true,"help":["",""],"logo":"44-A88-6.svg","indexlogo":6,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Skylight?\",MasterValue(\"A88\"));","id":"A88","menu":false,"load":false},{"name":["Corner Flashing?","Checkbox - Copia"],"value":true,"showthis":false,"help":["",""],"logo":"44-A105-3.svg","indexlogo":3,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"SetValShapeDiver(\"Corner Flashing?\",MasterValue(\"A105\"));\nMasterModify(\"A103\",\"showthis\",MasterValue(\"A105\"));","id":"A105","menu":true,"load":false},{"name":["Roof Cladding","Imagen Pequeña"],"value":"1","showthis":true,"type":"image1","help":["",""],"logo":"44-A89-1.svg","indexlogo":1,"data":[{"indexlogo":1,"name":["Trimdek","Imagen"],"value":"0","path":"44-A89-0-1.png","load":false,"price":0,"productcode":"-"},{"indexlogo":1,"name":["Corrugated","Imagen"],"value":"1","path":"44-A89-1-1.png","load":false,"price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Roof Cladding\",MasterValue(\"A89\"));","id":"A89","menu":false,"load":false},{"name":["Wall Cladding","Imagen Pequeña - Copia"],"value":"0","showthis":false,"type":"image1","help":["",""],"logo":"44-A90-1.svg","indexlogo":1,"data":[{"indexlogo":1,"name":["Trimdek","Imagen"],"value":"0","path":"44-A90-0-1.png","load":false,"price":0,"productcode":"-"},{"indexlogo":1,"name":["Corrugated","Imagen"],"value":"1","path":"44-A90-1-1.png","load":false,"price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Wall Cladding\",MasterValue(\"A90\"));","id":"A90","menu":false,"load":false}],"function":["",""],"id":"A84","location":1,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]}],"menu":false,"load":false},{"name":["Color Scheme","Sección"],"logo":"44-A91-1.svg","indexlogo":1,"type":"section","showthis":true,"open":false,"data":[{"name":["Single Color Shed?","Switch"],"logo":false,"showthis":true,"indexlogo":0,"help":["",""],"value":false,"name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"type":"switch","prices":{"false":0,"true":0},"function":"if (MasterValue(\"A198\")){\nMasterModify(\"A201\",\"showthis\",true);\nMasterFunction(\"A201\");\nMasterModify(\"A98,A103,A92,A94,A96,A100,A194,A190,A192\",\"showthis\",false);\n}else{\nMasterModify(\"A201\",\"showthis\",false);\nMasterModify(\"A98,A103,A92,A94,A96,A100,A194,A190,A192\",\"showthis\",true);\nMasterFunction(\"A99,A104,A93,A95,A97,A101,A195,A191,A193\");\n}","id":"A198","menu":true},{"name":["Shed Color","Color"],"value":"#e3dac9","showthis":false,"help":["",""],"type":"color","logo":false,"indexlogo":0,"data":[{"name":["Bone White","Color"],"value":"#e3dac9","price":0,"productcode":"-"},{"name":["Titania","Color"],"value":"#cac7b9","price":0,"productcode":"-"},{"name":["Cloud","Color"],"value":"#D8D9C8","price":0,"productcode":"-"},{"name":["Smooth Cream","Color"],"value":"#DAC79C","price":0,"productcode":"-"},{"name":["Storm Blue","Color"],"value":"#243442","price":0,"productcode":"-"},{"name":["New Denim Blue","Color"],"value":"#394149","price":0,"productcode":"-"},{"name":["Pacific Blue","Color"],"value":"#374E59","price":0,"productcode":"-"},{"name":["Azure","Color"],"value":"#365C6C","price":0,"productcode":"-"},{"name":["Ebony","Color"],"value":"#181818","price":0,"productcode":"-"},{"name":["Iron Sand","Color"],"value":"#393735","price":0,"productcode":"-"},{"name":["Grey Friars","Color"],"value":"#313436","price":0,"productcode":"-"},{"name":["Sandstone Grey","Color"],"value":"#716F69","price":0,"productcode":"-"},{"name":["Stone","Color"],"value":"#95826C","price":0,"productcode":"-"},{"name":["Gull Grey","Color"],"value":"#A8AAA6","price":0,"productcode":"-"},{"name":["Karaka","Color"],"value":"#2D2D24","price":0,"productcode":"-"},{"name":["Permanent Green","Color"],"value":"#25442F","price":0,"productcode":"-"},{"name":["Rivergum","Color"],"value":"#495947","price":0,"productcode":"-"},{"name":["Lichen","Color"],"value":"#7A7055","price":0,"productcode":"-"},{"name":["Mist Green","Color"],"value":"#667156","price":0,"productcode":"-"},{"name":["Terracotta","Color"],"value":"#8E5037","price":0,"productcode":"-"},{"name":["Scoria","Color"],"value":"#532620","price":0,"productcode":"-"},{"name":["Pioneer Red","Color"],"value":"#642620","price":0,"productcode":"-"},{"name":["Lignite","Color"],"value":"#423429","price":0,"productcode":"-"},{"name":["Desert Sand","Color"],"value":"#edc9af","price":0,"productcode":"-"},{"name":["Zincalume","Color"],"value":"#acadb2","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Wall Color\",MasterValue(\"A201\"));\nSetValShapeDiver(\"Corner Color\",MasterValue(\"A201\"));\nSetValShapeDiver(\"Roof Color\",MasterValue(\"A201\"));\nSetValShapeDiver(\"Barge Color\",MasterValue(\"A201\"));\nSetValShapeDiver(\"Ridge Color\",MasterValue(\"A201\"));\nSetValShapeDiver(\"Gutter Color\",MasterValue(\"A201\"));\nSetValShapeDiver(\"Doors Flashing Color\",MasterValue(\"A201\"));\nSetValShapeDiver(\"PA Doors Color\",MasterValue(\"A201\"));\nSetValShapeDiver(\"Roller/Sectional Doors Color\",MasterValue(\"A201\"));","id":"A201","menu":false},{"name":["Walls","Sección - Copia"],"logo":"44-A98-2.svg","indexlogo":2,"type":"section","showthis":false,"open":false,"data":[{"name":["Color","Color"],"value":"#e3dac9","showthis":true,"help":["",""],"type":"color","logo":false,"indexlogo":0,"data":[{"name":["Bone White","Color"],"value":"#e3dac9","price":0,"productcode":"-"},{"name":["Titania","Color"],"value":"#cac7b9","price":0,"productcode":"-"},{"name":["Cloud","Color"],"value":"#D8D9C8","price":0,"productcode":"-"},{"name":["Smooth Cream","Color"],"value":"#DAC79C","price":0,"productcode":"-"},{"name":["Storm Blue","Color"],"value":"#243442","price":0,"productcode":"-"},{"name":["New Denim Blue","Color"],"value":"#394149","price":0,"productcode":"-"},{"name":["Pacific Blue","Color"],"value":"#374E59","price":0,"productcode":"-"},{"name":["Azure","Color"],"value":"#365C6C","price":0,"productcode":"-"},{"name":["Ebony","Color"],"value":"#181818","price":0,"productcode":"-"},{"name":["Iron Sand","Color"],"value":"#393735","price":0,"productcode":"-"},{"name":["Grey Friars","Color"],"value":"#313436","price":0,"productcode":"-"},{"name":["Sandstone Grey","Color"],"value":"#716F69","price":0,"productcode":"-"},{"name":["Stone","Color"],"value":"#95826C","price":0,"productcode":"-"},{"name":["Gull Grey","Color"],"value":"#A8AAA6","price":0,"productcode":"-"},{"name":["Karaka","Color"],"value":"#2D2D24","price":0,"productcode":"-"},{"name":["Permanent Green","Color"],"value":"#25442F","price":0,"productcode":"-"},{"name":["Rivergum","Color"],"value":"#495947","price":0,"productcode":"-"},{"name":["Lichen","Color"],"value":"#7A7055","price":0,"productcode":"-"},{"name":["Mist Green","Color"],"value":"#667156","price":0,"productcode":"-"},{"name":["Terracotta","Color"],"value":"#8E5037","price":0,"productcode":"-"},{"name":["Scoria","Color"],"value":"#532620","price":0,"productcode":"-"},{"name":["Pioneer Red","Color"],"value":"#642620","price":0,"productcode":"-"},{"name":["Lignite","Color"],"value":"#423429","price":0,"productcode":"-"},{"name":["Desert Sand","Color"],"value":"#edc9af","price":0,"productcode":"-"},{"name":["Zincalume","Color"],"value":"#acadb2","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Wall Color\",MasterValue(\"A99\"));","id":"A99","menu":false}],"function":["",""],"id":"A98","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"18","name":["Color Scheme","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Corner Flashing","Sección - Copia - Copia - Copia"],"logo":"44-A103-5.svg","indexlogo":5,"type":"section","showthis":true,"open":false,"data":[{"name":["Color","Color"],"value":"#532620","showthis":true,"help":["",""],"type":"color","logo":false,"indexlogo":0,"data":[{"name":["Bone White","Color"],"value":"#e3dac9","price":0,"productcode":"-"},{"name":["Titania","Color"],"value":"#cac7b9","price":0,"productcode":"-"},{"name":["Cloud","Color"],"value":"#D8D9C8","price":0,"productcode":"-"},{"name":["Smooth Cream","Color"],"value":"#DAC79C","price":0,"productcode":"-"},{"name":["Storm Blue","Color"],"value":"#243442","price":0,"productcode":"-"},{"name":["New Denim Blue","Color"],"value":"#394149","price":0,"productcode":"-"},{"name":["Pacific Blue","Color"],"value":"#374E59","price":0,"productcode":"-"},{"name":["Azure","Color"],"value":"#365C6C","price":0,"productcode":"-"},{"name":["Ebony","Color"],"value":"#181818","price":0,"productcode":"-"},{"name":["Iron Sand","Color"],"value":"#393735","price":0,"productcode":"-"},{"name":["Grey Friars","Color"],"value":"#313436","price":0,"productcode":"-"},{"name":["Sandstone Grey","Color"],"value":"#716F69","price":0,"productcode":"-"},{"name":["Stone","Color"],"value":"#95826C","price":0,"productcode":"-"},{"name":["Gull Grey","Color"],"value":"#A8AAA6","price":0,"productcode":"-"},{"name":["Karaka","Color"],"value":"#2D2D24","price":0,"productcode":"-"},{"name":["Permanent Green","Color"],"value":"#25442F","price":0,"productcode":"-"},{"name":["Rivergum","Color"],"value":"#495947","price":0,"productcode":"-"},{"name":["Lichen","Color"],"value":"#7A7055","price":0,"productcode":"-"},{"name":["Mist Green","Color"],"value":"#667156","price":0,"productcode":"-"},{"name":["Terracotta","Color"],"value":"#8E5037","price":0,"productcode":"-"},{"name":["Scoria","Color"],"value":"#532620","price":0,"productcode":"-"},{"name":["Pioneer Red","Color"],"value":"#642620","price":0,"productcode":"-"},{"name":["Lignite","Color"],"value":"#423429","price":0,"productcode":"-"},{"name":["Desert Sand","Color"],"value":"#edc9af","price":0,"productcode":"-"},{"name":["Zincalume","Color"],"value":"#acadb2","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Corner Color\",MasterValue(\"A104\"));","id":"A104","menu":false}],"function":["",""],"id":"A103","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"18","name":["Color Scheme","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Roof","Sección"],"logo":"44-A92-2.svg","indexlogo":2,"type":"section","showthis":true,"open":false,"data":[{"name":["Color","Color"],"value":"#e3dac9","showthis":true,"help":["",""],"type":"color","logo":false,"indexlogo":0,"data":[{"name":["Bone White","Color"],"value":"#e3dac9","price":0,"productcode":"-"},{"name":["Titania","Color"],"value":"#cac7b9","price":0,"productcode":"-"},{"name":["Cloud","Color"],"value":"#D8D9C8","price":0,"productcode":"-"},{"name":["Smooth Cream","Color"],"value":"#DAC79C","price":0,"productcode":"-"},{"name":["Storm Blue","Color"],"value":"#243442","price":0,"productcode":"-"},{"name":["New Denim Blue","Color"],"value":"#394149","price":0,"productcode":"-"},{"name":["Pacific Blue","Color"],"value":"#374E59","price":0,"productcode":"-"},{"name":["Azure","Color"],"value":"#365C6C","price":0,"productcode":"-"},{"name":["Ebony","Color"],"value":"#181818","price":0,"productcode":"-"},{"name":["Iron Sand","Color"],"value":"#393735","price":0,"productcode":"-"},{"name":["Grey Friars","Color"],"value":"#313436","price":0,"productcode":"-"},{"name":["Sandstone Grey","Color"],"value":"#716F69","price":0,"productcode":"-"},{"name":["Stone","Color"],"value":"#95826C","price":0,"productcode":"-"},{"name":["Gull Grey","Color"],"value":"#A8AAA6","price":0,"productcode":"-"},{"name":["Karaka","Color"],"value":"#2D2D24","price":0,"productcode":"-"},{"name":["Permanent Green","Color"],"value":"#25442F","price":0,"productcode":"-"},{"name":["Rivergum","Color"],"value":"#495947","price":0,"productcode":"-"},{"name":["Lichen","Color"],"value":"#7A7055","price":0,"productcode":"-"},{"name":["Mist Green","Color"],"value":"#667156","price":0,"productcode":"-"},{"name":["Terracotta","Color"],"value":"#8E5037","price":0,"productcode":"-"},{"name":["Scoria","Color"],"value":"#532620","price":0,"productcode":"-"},{"name":["Pioneer Red","Color"],"value":"#642620","price":0,"productcode":"-"},{"name":["Lignite","Color"],"value":"#423429","price":0,"productcode":"-"},{"name":["Desert Sand","Color"],"value":"#edc9af","price":0,"productcode":"-"},{"name":["Zincalume","Color"],"value":"#acadb2","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Roof Color\",MasterValue(\"A93\"));","id":"A93","menu":false}],"function":["",""],"id":"A92","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"18","name":["Color Scheme","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Barge Flashing","Sección - Copia"],"logo":"44-A94-3.svg","indexlogo":3,"type":"section","showthis":false,"open":false,"data":[{"name":["Color","Color"],"value":"#532620","showthis":true,"help":["",""],"type":"color","logo":false,"indexlogo":0,"data":[{"name":["Bone White","Color"],"value":"#e3dac9","price":0,"productcode":"-"},{"name":["Titania","Color"],"value":"#cac7b9","price":0,"productcode":"-"},{"name":["Cloud","Color"],"value":"#D8D9C8","price":0,"productcode":"-"},{"name":["Smooth Cream","Color"],"value":"#DAC79C","price":0,"productcode":"-"},{"name":["Storm Blue","Color"],"value":"#243442","price":0,"productcode":"-"},{"name":["New Denim Blue","Color"],"value":"#394149","price":0,"productcode":"-"},{"name":["Pacific Blue","Color"],"value":"#374E59","price":0,"productcode":"-"},{"name":["Azure","Color"],"value":"#365C6C","price":0,"productcode":"-"},{"name":["Ebony","Color"],"value":"#181818","price":0,"productcode":"-"},{"name":["Iron Sand","Color"],"value":"#393735","price":0,"productcode":"-"},{"name":["Grey Friars","Color"],"value":"#313436","price":0,"productcode":"-"},{"name":["Sandstone Grey","Color"],"value":"#716F69","price":0,"productcode":"-"},{"name":["Stone","Color"],"value":"#95826C","price":0,"productcode":"-"},{"name":["Gull Grey","Color"],"value":"#A8AAA6","price":0,"productcode":"-"},{"name":["Karaka","Color"],"value":"#2D2D24","price":0,"productcode":"-"},{"name":["Permanent Green","Color"],"value":"#25442F","price":0,"productcode":"-"},{"name":["Rivergum","Color"],"value":"#495947","price":0,"productcode":"-"},{"name":["Lichen","Color"],"value":"#7A7055","price":0,"productcode":"-"},{"name":["Mist Green","Color"],"value":"#667156","price":0,"productcode":"-"},{"name":["Terracotta","Color"],"value":"#8E5037","price":0,"productcode":"-"},{"name":["Scoria","Color"],"value":"#532620","price":0,"productcode":"-"},{"name":["Pioneer Red","Color"],"value":"#642620","price":0,"productcode":"-"},{"name":["Lignite","Color"],"value":"#423429","price":0,"productcode":"-"},{"name":["Desert Sand","Color"],"value":"#edc9af","price":0,"productcode":"-"},{"name":["Zincalume","Color"],"value":"#acadb2","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Barge Color\",MasterValue(\"A95\"));","id":"A95","menu":false}],"function":["",""],"id":"A94","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"18","name":["Color Scheme","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Ridge Flashing","Sección - Copia - Copia"],"logo":"44-A96-5.svg","indexlogo":5,"type":"section","showthis":false,"open":false,"data":[{"name":["Color","Color"],"value":"#532620","showthis":true,"help":["",""],"type":"color","logo":false,"indexlogo":0,"data":[{"name":["Bone White","Color"],"value":"#e3dac9","price":0,"productcode":"-"},{"name":["Titania","Color"],"value":"#cac7b9","price":0,"productcode":"-"},{"name":["Cloud","Color"],"value":"#D8D9C8","price":0,"productcode":"-"},{"name":["Smooth Cream","Color"],"value":"#DAC79C","price":0,"productcode":"-"},{"name":["Storm Blue","Color"],"value":"#243442","price":0,"productcode":"-"},{"name":["New Denim Blue","Color"],"value":"#394149","price":0,"productcode":"-"},{"name":["Pacific Blue","Color"],"value":"#374E59","price":0,"productcode":"-"},{"name":["Azure","Color"],"value":"#365C6C","price":0,"productcode":"-"},{"name":["Ebony","Color"],"value":"#181818","price":0,"productcode":"-"},{"name":["Iron Sand","Color"],"value":"#393735","price":0,"productcode":"-"},{"name":["Grey Friars","Color"],"value":"#313436","price":0,"productcode":"-"},{"name":["Sandstone Grey","Color"],"value":"#716F69","price":0,"productcode":"-"},{"name":["Stone","Color"],"value":"#95826C","price":0,"productcode":"-"},{"name":["Gull Grey","Color"],"value":"#A8AAA6","price":0,"productcode":"-"},{"name":["Karaka","Color"],"value":"#2D2D24","price":0,"productcode":"-"},{"name":["Permanent Green","Color"],"value":"#25442F","price":0,"productcode":"-"},{"name":["Rivergum","Color"],"value":"#495947","price":0,"productcode":"-"},{"name":["Lichen","Color"],"value":"#7A7055","price":0,"productcode":"-"},{"name":["Mist Green","Color"],"value":"#667156","price":0,"productcode":"-"},{"name":["Terracotta","Color"],"value":"#8E5037","price":0,"productcode":"-"},{"name":["Scoria","Color"],"value":"#532620","price":0,"productcode":"-"},{"name":["Pioneer Red","Color"],"value":"#642620","price":0,"productcode":"-"},{"name":["Lignite","Color"],"value":"#423429","price":0,"productcode":"-"},{"name":["Desert Sand","Color"],"value":"#edc9af","price":0,"productcode":"-"},{"name":["Zincalume","Color"],"value":"#acadb2","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Ridge Color\",MasterValue(\"A97\"));","id":"A97","menu":false}],"function":["",""],"id":"A96","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"18","name":["Color Scheme","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Gutters","Sección - Copia - Copia - Copia"],"logo":"44-A100-5.svg","indexlogo":5,"type":"section","showthis":false,"open":false,"data":[{"name":["Color","Color"],"value":"#532620","showthis":true,"help":["",""],"type":"color","logo":false,"indexlogo":0,"data":[{"name":["Bone White","Color"],"value":"#e3dac9","price":0,"productcode":"-"},{"name":["Titania","Color"],"value":"#cac7b9","price":0,"productcode":"-"},{"name":["Cloud","Color"],"value":"#D8D9C8","price":0,"productcode":"-"},{"name":["Smooth Cream","Color"],"value":"#DAC79C","price":0,"productcode":"-"},{"name":["Storm Blue","Color"],"value":"#243442","price":0,"productcode":"-"},{"name":["New Denim Blue","Color"],"value":"#394149","price":0,"productcode":"-"},{"name":["Pacific Blue","Color"],"value":"#374E59","price":0,"productcode":"-"},{"name":["Azure","Color"],"value":"#365C6C","price":0,"productcode":"-"},{"name":["Ebony","Color"],"value":"#181818","price":0,"productcode":"-"},{"name":["Iron Sand","Color"],"value":"#393735","price":0,"productcode":"-"},{"name":["Grey Friars","Color"],"value":"#313436","price":0,"productcode":"-"},{"name":["Sandstone Grey","Color"],"value":"#716F69","price":0,"productcode":"-"},{"name":["Stone","Color"],"value":"#95826C","price":0,"productcode":"-"},{"name":["Gull Grey","Color"],"value":"#A8AAA6","price":0,"productcode":"-"},{"name":["Karaka","Color"],"value":"#2D2D24","price":0,"productcode":"-"},{"name":["Permanent Green","Color"],"value":"#25442F","price":0,"productcode":"-"},{"name":["Rivergum","Color"],"value":"#495947","price":0,"productcode":"-"},{"name":["Lichen","Color"],"value":"#7A7055","price":0,"productcode":"-"},{"name":["Mist Green","Color"],"value":"#667156","price":0,"productcode":"-"},{"name":["Terracotta","Color"],"value":"#8E5037","price":0,"productcode":"-"},{"name":["Scoria","Color"],"value":"#532620","price":0,"productcode":"-"},{"name":["Pioneer Red","Color"],"value":"#642620","price":0,"productcode":"-"},{"name":["Lignite","Color"],"value":"#423429","price":0,"productcode":"-"},{"name":["Desert Sand","Color"],"value":"#edc9af","price":0,"productcode":"-"},{"name":["Zincalume","Color"],"value":"#acadb2","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Gutter Color\",MasterValue(\"A101\"));","id":"A101","menu":false}],"function":["",""],"id":"A100","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"18","name":["Color Scheme","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Doors/Windows Flashing","Sección - Copia - Copia - Copia - Copia - Copia - Copia"],"logo":"44-A194-7.svg","indexlogo":7,"type":"section","showthis":false,"open":false,"data":[{"name":["Color","Color"],"value":"#532620","showthis":true,"help":["",""],"type":"color","logo":false,"indexlogo":0,"data":[{"name":["Bone White","Color"],"value":"#e3dac9","price":0,"productcode":"-"},{"name":["Titania","Color"],"value":"#cac7b9","price":0,"productcode":"-"},{"name":["Cloud","Color"],"value":"#D8D9C8","price":0,"productcode":"-"},{"name":["Smooth Cream","Color"],"value":"#DAC79C","price":0,"productcode":"-"},{"name":["Storm Blue","Color"],"value":"#243442","price":0,"productcode":"-"},{"name":["New Denim Blue","Color"],"value":"#394149","price":0,"productcode":"-"},{"name":["Pacific Blue","Color"],"value":"#374E59","price":0,"productcode":"-"},{"name":["Azure","Color"],"value":"#365C6C","price":0,"productcode":"-"},{"name":["Ebony","Color"],"value":"#181818","price":0,"productcode":"-"},{"name":["Iron Sand","Color"],"value":"#393735","price":0,"productcode":"-"},{"name":["Grey Friars","Color"],"value":"#313436","price":0,"productcode":"-"},{"name":["Sandstone Grey","Color"],"value":"#716F69","price":0,"productcode":"-"},{"name":["Stone","Color"],"value":"#95826C","price":0,"productcode":"-"},{"name":["Gull Grey","Color"],"value":"#A8AAA6","price":0,"productcode":"-"},{"name":["Karaka","Color"],"value":"#2D2D24","price":0,"productcode":"-"},{"name":["Permanent Green","Color"],"value":"#25442F","price":0,"productcode":"-"},{"name":["Rivergum","Color"],"value":"#495947","price":0,"productcode":"-"},{"name":["Lichen","Color"],"value":"#7A7055","price":0,"productcode":"-"},{"name":["Mist Green","Color"],"value":"#667156","price":0,"productcode":"-"},{"name":["Terracotta","Color"],"value":"#8E5037","price":0,"productcode":"-"},{"name":["Scoria","Color"],"value":"#532620","price":0,"productcode":"-"},{"name":["Pioneer Red","Color"],"value":"#642620","price":0,"productcode":"-"},{"name":["Lignite","Color"],"value":"#423429","price":0,"productcode":"-"},{"name":["Desert Sand","Color"],"value":"#edc9af","price":0,"productcode":"-"},{"name":["Zincalume","Color"],"value":"#acadb2","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Doors Flashing Color\",MasterValue(\"A195\"));","id":"A195","menu":false}],"function":["",""],"id":"A194","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"18","name":["Color Scheme","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["PA Doors","Sección - Copia - Copia - Copia - Copia"],"logo":"44-A190-6.svg","indexlogo":6,"type":"section","showthis":false,"open":false,"data":[{"name":["Color","Color"],"value":"#acadb2","showthis":true,"help":["",""],"type":"color","logo":false,"indexlogo":0,"data":[{"name":["Bone White","Color"],"value":"#e3dac9","price":0,"productcode":"-"},{"name":["Titania","Color"],"value":"#cac7b9","price":0,"productcode":"-"},{"name":["Cloud","Color"],"value":"#D8D9C8","price":0,"productcode":"-"},{"name":["Smooth Cream","Color"],"value":"#DAC79C","price":0,"productcode":"-"},{"name":["Storm Blue","Color"],"value":"#243442","price":0,"productcode":"-"},{"name":["New Denim Blue","Color"],"value":"#394149","price":0,"productcode":"-"},{"name":["Pacific Blue","Color"],"value":"#374E59","price":0,"productcode":"-"},{"name":["Azure","Color"],"value":"#365C6C","price":0,"productcode":"-"},{"name":["Ebony","Color"],"value":"#181818","price":0,"productcode":"-"},{"name":["Iron Sand","Color"],"value":"#393735","price":0,"productcode":"-"},{"name":["Grey Friars","Color"],"value":"#313436","price":0,"productcode":"-"},{"name":["Sandstone Grey","Color"],"value":"#716F69","price":0,"productcode":"-"},{"name":["Stone","Color"],"value":"#95826C","price":0,"productcode":"-"},{"name":["Gull Grey","Color"],"value":"#A8AAA6","price":0,"productcode":"-"},{"name":["Karaka","Color"],"value":"#2D2D24","price":0,"productcode":"-"},{"name":["Permanent Green","Color"],"value":"#25442F","price":0,"productcode":"-"},{"name":["Rivergum","Color"],"value":"#495947","price":0,"productcode":"-"},{"name":["Lichen","Color"],"value":"#7A7055","price":0,"productcode":"-"},{"name":["Mist Green","Color"],"value":"#667156","price":0,"productcode":"-"},{"name":["Terracotta","Color"],"value":"#8E5037","price":0,"productcode":"-"},{"name":["Scoria","Color"],"value":"#532620","price":0,"productcode":"-"},{"name":["Pioneer Red","Color"],"value":"#642620","price":0,"productcode":"-"},{"name":["Lignite","Color"],"value":"#423429","price":0,"productcode":"-"},{"name":["Desert Sand","Color"],"value":"#edc9af","price":0,"productcode":"-"},{"name":["Zincalume","Color"],"value":"#acadb2","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"PA Doors Color\",MasterValue(\"A191\"));","id":"A191","menu":false}],"function":["",""],"id":"A190","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"18","name":["Color Scheme","Sección"],"type":"section"}],"menu":false,"load":false},{"name":["Roller/Sectional Doors","Sección - Copia - Copia - Copia - Copia - Copia"],"logo":"44-A192-7.svg","indexlogo":7,"type":"section","showthis":false,"open":false,"data":[{"name":["Color","Color"],"value":"#acadb2","showthis":true,"help":["",""],"type":"color","logo":false,"indexlogo":0,"data":[{"name":["Bone White","Color"],"value":"#e3dac9","price":0,"productcode":"-"},{"name":["Titania","Color"],"value":"#cac7b9","price":0,"productcode":"-"},{"name":["Cloud","Color"],"value":"#D8D9C8","price":0,"productcode":"-"},{"name":["Smooth Cream","Color"],"value":"#DAC79C","price":0,"productcode":"-"},{"name":["Storm Blue","Color"],"value":"#243442","price":0,"productcode":"-"},{"name":["New Denim Blue","Color"],"value":"#394149","price":0,"productcode":"-"},{"name":["Pacific Blue","Color"],"value":"#374E59","price":0,"productcode":"-"},{"name":["Azure","Color"],"value":"#365C6C","price":0,"productcode":"-"},{"name":["Ebony","Color"],"value":"#181818","price":0,"productcode":"-"},{"name":["Iron Sand","Color"],"value":"#393735","price":0,"productcode":"-"},{"name":["Grey Friars","Color"],"value":"#313436","price":0,"productcode":"-"},{"name":["Sandstone Grey","Color"],"value":"#716F69","price":0,"productcode":"-"},{"name":["Stone","Color"],"value":"#95826C","price":0,"productcode":"-"},{"name":["Gull Grey","Color"],"value":"#A8AAA6","price":0,"productcode":"-"},{"name":["Karaka","Color"],"value":"#2D2D24","price":0,"productcode":"-"},{"name":["Permanent Green","Color"],"value":"#25442F","price":0,"productcode":"-"},{"name":["Rivergum","Color"],"value":"#495947","price":0,"productcode":"-"},{"name":["Lichen","Color"],"value":"#7A7055","price":0,"productcode":"-"},{"name":["Mist Green","Color"],"value":"#667156","price":0,"productcode":"-"},{"name":["Terracotta","Color"],"value":"#8E5037","price":0,"productcode":"-"},{"name":["Scoria","Color"],"value":"#532620","price":0,"productcode":"-"},{"name":["Pioneer Red","Color"],"value":"#642620","price":0,"productcode":"-"},{"name":["Lignite","Color"],"value":"#423429","price":0,"productcode":"-"},{"name":["Desert Sand","Color"],"value":"#edc9af","price":0,"productcode":"-"},{"name":["Zincalume","Color"],"value":"#acadb2","price":0,"productcode":"-"}],"prices":0,"function":"SetValShapeDiver(\"Roller/Sectional Doors Color\",MasterValue(\"A193\"));","id":"A193","menu":false}],"function":["",""],"id":"A192","location":2,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]},{"index":"18","name":["Color Scheme","Sección"],"type":"section"}],"menu":false,"load":false}],"function":["MasterModify(\"A190,A192,A194\",\"showthis\",false);\n\nif (doorsWindows[\"doorsWindows\"].length > 0){\n\tMasterModify(\"A194\",\"showthis\",true);\n\tfor (var i =0; i < doorsWindows[\"doorsWindows\"].length; i++){\n\t\tif (doorsWindows[\"doorsWindows\"][i][\"style\"] == \"roller\" || doorsWindows[\"doorsWindows\"][i][\"style\"] == \"sectional\") {\n\t\t\tMasterModify(\"A192\",\"showthis\",true);\n\t\t}\n\t\tif (doorsWindows[\"doorsWindows\"][i][\"style\"] == \"steelPA\" || doorsWindows[\"doorsWindows\"][i][\"style\"] == \"zincPA\" || doorsWindows[\"doorsWindows\"][i][\"style\"] == \"alumPA\") {\n\t\t\tMasterModify(\"A190\",\"showthis\",true);\n\t\t}\n\t}\n}",""],"id":"A91","location":1,"subsections":[{"type":"main","index":0,"name":["Main Menu","Menú Principal"]}],"menu":false,"load":false},{"name":["Save JSON","Checkbox"],"value":false,"showthis":false,"help":["",""],"logo":false,"indexlogo":0,"type":"checkbox","name_data":{"true":["Yes","Si"],"false":["No","No"]},"code":{"false":"-","true":"-"},"prices":{"false":0,"true":0},"function":"","id":"A189","menu":false}],"location":0};var sdApiParameters = itemsmenu.sdApiParameters; var params=SearchP();var SourceShapeDiver, DataShapeDiver; function ScreenshootShapeDiver(){ ScreenshotShapeDiver = false; MasterModify("A189","name",(JSON.stringify(doorsWindows,null,0))); MasterModify("A189","value",true);};var Axis = [...Array(16).keys()]; var SectSides = ["A","B","C","D","E"]; var WallEnds = ["RW","LW","IW1","IW2"]; var ridgeHeight = 3.3; var UpdateGeometry = function(){ var startInterval = setInterval(function(){ if (MessageShapeDiver == "GeometryUpdateVisible"){ //Internal Walls MasterModify('A17','max',getModelDataForName("IW Max")); if (MasterValue("A16")==true){ if (getModelDataForName("IW Max")==0){MasterModify("A17","showthis",false)} else{MasterModify("A17","showthis",true)} }else{MasterModify("A17","showthis",false)} if (MasterValue("A17")!=getModelDataForName("IW")){ MasterModify("A17","value",getModelDataForName("IW")); } MasterFunction("A17"); //Move Walls Distance MasterModify('A54,A69', 'max',MasterValue("A9")-3); if (MasterValue("A54")>MasterValue("A9")-3 || MasterValue("A69")>MasterValue("A9")-3){ MasterModify("A54,A69","value",MasterValue("A9")-3); MasterFunction("A54,A69"); } //Axes Options $(Axis).each(function() { MasterModify("A30,A59,A79,A83", "hideoption",true,this); }); if (Array.isArray(getModelDataForName("LW Axis Opt"))){ $(getModelDataForName("LW Axis Opt")).each(function() { MasterModify("A30", "hideoption",false,this); }); }else{ MasterModify("A30", "hideoption",false,getModelDataForName("LW Axis Opt")) } if (MasterValue("A30")!=getModelDataForName("LW Post")){ MasterModify("A30","value",getModelDataForName("LW Post")); MasterFunction("A30"); } if (Array.isArray(getModelDataForName("RW Axis Opt"))){ $(getModelDataForName("RW Axis Opt")).each(function() { MasterModify("A59", "hideoption",false,this); }); }else{ MasterModify("A59", "hideoption",false,getModelDataForName("RW Axis Opt")) } if (MasterValue("A59")!=getModelDataForName("RW Post")){ MasterModify("A59","value",getModelDataForName("RW Post")); MasterFunction("A59"); } if (Array.isArray(getModelDataForName("IW1 Axis Opt"))){ $(getModelDataForName("IW1 Axis Opt")).each(function() { MasterModify("A79", "hideoption",false,this); }); }else{ MasterModify("A79", "hideoption",false,getModelDataForName("IW1 Axis Opt")) } if (MasterValue("A79")!=getModelDataForName("IW1 Post")){ MasterModify("A79","value",getModelDataForName("IW1 Post")); MasterFunction("A79"); } if (Array.isArray(getModelDataForName("IW2 Axis Opt"))){ $(getModelDataForName("IW2 Axis Opt")).each(function() { MasterModify("A83", "hideoption",false,this); }); }else{ MasterModify("A83", "hideoption",false,getModelDataForName("IW2 Axis Opt")) } if (MasterValue("A83")!=getModelDataForName("IW2 Post")){ MasterModify("A83","value",getModelDataForName("IW2 Post")); MasterFunction("A83"); } //Sections Flat Walls if (getModelDataForName("Sect A")=="HIDE"){ MasterModify("A42,A63","showthis",false); }else{ MasterModify("A42,A63","showthis",true); MasterModify("A42,A63","name",getModelDataForName("Sect A")); } if (getModelDataForName("Sect B")=="HIDE"){ MasterModify("A43,A49,A64,A71","showthis",false); }else{ if (MasterValue("A43")==true){MasterModify("A49","showthis",true)} else{MasterModify("A49","showthis",false)} if (MasterValue("A64")==true){MasterModify("A71","showthis",true)} else{MasterModify("A71","showthis",false)} MasterModify("A43,A64","showthis",true); MasterModify("A43,A49,A64,A71","name",getModelDataForName("Sect B")); } if (getModelDataForName("Sect C")=="HIDE"){ MasterModify("A44,A65","showthis",false); }else{ MasterModify("A44,A65","showthis",true); MasterModify("A44,A65","name",getModelDataForName("Sect C")); } if (getModelDataForName("Move Sect C")=="HIDE"){ MasterModify("A50,A72","showthis",false); }else{ if (MasterValue("A44")==true){MasterModify("A50","showthis",true)} else{MasterModify("A50","showthis",false)} if (MasterValue("A65")==true){MasterModify("A72","showthis",true)} else{MasterModify("A72","showthis",false)} MasterModify("A50,A72","name",getModelDataForName("Move Sect C")); } if (getModelDataForName("Sect B+C")=="HIDE"){ MasterModify("A48,A74","showthis",false); }else{ MasterModify("A48,A74","showthis",true); MasterModify("A48,A74","name",getModelDataForName("Sect B+C")); } if (getModelDataForName("Sect D")=="HIDE"){ MasterModify("A45,A51,A66,A73","showthis",false); }else{ if (MasterValue("A45")==true){MasterModify("A51","showthis",true)} else{MasterModify("A51","showthis",false)} if (MasterValue("A66")==true){MasterModify("A73","showthis",true)} else{MasterModify("A73","showthis",false)} MasterModify("A45,A66","showthis",true); MasterModify("A45,A51,A66,A73","name",getModelDataForName("Sect D")); } if (getModelDataForName("Sect C+D")=="HIDE"){ MasterModify("A52,A75","showthis",false); }else{ MasterModify("A52,A75","showthis",true); MasterModify("A52,A75","name",getModelDataForName("Sect C+D")); } if (getModelDataForName("Sect E")=="HIDE"){ MasterModify("A46,A67","showthis",false); }else{ MasterModify("A46,A67","showthis",true); MasterModify("A46,A67","name",getModelDataForName("Sect E")); } if (MasterValue("A23")==true){ if (getModelDataForName("Sect A")=="HIDE" && getModelDataForName("Sect B")=="HIDE" && getModelDataForName("Sect C")=="HIDE" && getModelDataForName("Sect D")=="HIDE" && getModelDataForName("Sect E")=="HIDE"){ MasterModify("A41","showthis",false) }else{MasterModify("A41","showthis",true)} }else{MasterModify("A41","showthis",false)} if (MasterValue("A61")==true){ if (getModelDataForName("Sect A")=="HIDE" && getModelDataForName("Sect B")=="HIDE" && getModelDataForName("Sect C")=="HIDE" && getModelDataForName("Sect D")=="HIDE" && getModelDataForName("Sect E")=="HIDE"){ MasterModify("A62","showthis",false) }else{MasterModify("A62","showthis",true)} }else{MasterModify("A62","showthis",false)} //Sections End Walls if (getModelDataForName("FW Post")=="1" || getModelDataForName("FW Post")=="2" || getModelDataForName("FW Post")=="5" || getModelDataForName("BW Post")=="1" || getModelDataForName("BW Post")=="2" || getModelDataForName("BW Post")=="5"){ MasterModify("A29","showthis",true); MasterModify("A55","name","Right Section"); }else{ MasterModify("A29","showthis",false); MasterModify("A55","name","Wall?"); } if (getModelDataForName("FW Post")=="1" || getModelDataForName("FW Post")=="3" || getModelDataForName("FW Post")=="4" || getModelDataForName("FW Post")=="6" || getModelDataForName("BW Post")=="1" || getModelDataForName("BW Post")=="3" || getModelDataForName("BW Post")=="4" || getModelDataForName("BW Post")=="6"){ MasterModify("A57","showthis",true); MasterModify("A58","name","Right Section"); }else{ MasterModify("A57","showthis",false); MasterModify("A58","name","Wall?"); } if (getModelDataForName("FW Post")=="2" || getModelDataForName("FW Post")=="3" || getModelDataForName("FW Post")=="6" || getModelDataForName("BW Post")=="2" || getModelDataForName("BW Post")=="3" || getModelDataForName("BW Post")=="6"){ MasterModify("A77,A78","showthis",true); }else{ MasterModify("A77,A78","showthis",false); MasterModify("A77,A78","value",true); MasterFunction("A77,A78"); } if (getModelDataForName("FW Post")=="3" || getModelDataForName("FW Post")=="4" || getModelDataForName("FW Post")=="5" || getModelDataForName("BW Post")=="3" || getModelDataForName("BW Post")=="4" || getModelDataForName("BW Post")=="5"){ MasterModify("A81,A82","showthis",true); }else{ MasterModify("A81,A82","showthis",false); MasterModify("A81,A82","value",true); MasterFunction("A81,A82"); } if (getModelDataForName("FW Post")=="0" && getModelDataForName("BW Post")=="0"){ MasterModify("A47,A68","showthis",true); }else if (getModelDataForName("FW Post")!="0"){ MasterModify("A68","showthis",false); MasterModify("A70,A71,A72,A73,A74,A75","value",false); MasterFunction("A70"); }else{ MasterModify("A47","showthis",false); MasterModify("A48,A49,A50,A51,A52,A53","value",false); MasterFunction("A53"); } clearInterval(startInterval); } }, 500); }; var itemId; var style; var wallValue; var widthId; var heightId; var locationXId; var locationZId; var openingSideId; var hingePostId; var gap; var maxHeight; var maxWidth; var itemMinWidth; var itemMaxWidth; var itemMinHeight; var itemMaxHeight; var doorsWindows={"doorsWindows":[]}; var updateDoors = function(){ //updateNames var allStyles=[]; var stylesCount={}; for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ var itemIdForName = doorsWindows["doorsWindows"][i]["ID"]; var nextIdForName = "A"+(Number(itemIdForName.match(/[0-9]+/g))+1); allStyles.push(doorsWindows["doorsWindows"][i]["style"]); stylesCount={} allStyles.forEach(function(x) { stylesCount[x] = (stylesCount[x] || 0)+1}); MasterModify(itemIdForName,"name",MasterValue(MasterSectionId(nextIdForName,2),"nameoption",0)+" "+stylesCount[MasterValue(MasterSectionId(nextIdForName,2),"value",0)]); } //showBeforeModifying MasterModify(heightId,"showthis",true); MasterModify(widthId,"showthis",true); MasterModify(locationXId,"showthis",true); MasterModify(locationZId,"showthis",true); //gap if (style == 'roller' || style == 'sectional'){gap=0.3}else{gap=0.1} //step if (style == "WD"){ MasterModify(heightId,'step',0.2); MasterModify(widthId,'step',0.3); } else { MasterModify(heightId,'step',0.1); MasterModify(widthId,'step',0.1); } //maxHeight if (wallValue != "front" && wallValue != "back"){ if (MasterValue("A3")=="skillion"){ maxHeight = (((Math.tan(MasterValue("A14") * (Math.PI / 180)) * MasterValue(locationXId)) + MasterValue("A13")) - (gap*2)).toFixed(1); }else{ if(MasterValue(locationXId)<(MasterValue("A9")/2)-(MasterValue(widthId)/2)){ maxHeight = (((Math.tan(MasterValue("A14") * (Math.PI / 180)) * MasterValue(locationXId)) + MasterValue("A13")) - (gap*2)).toFixed(1); }else{ maxHeight = (((Math.tan(MasterValue("A14") * (Math.PI / 180)) * (MasterValue("A9") - (MasterValue(locationXId)+MasterValue(widthId)))) + MasterValue("A13")) - (gap*2)).toFixed(1); } } }else{ if (wallValue == "front" && MasterValue("A3")=="skillion"){ maxHeight = ((((Math.tan(MasterValue("A14") * (Math.PI/180))) * MasterValue("A9")) + MasterValue("A13")) - (gap*2)).toFixed(1); }else{ maxHeight = MasterValue("A13")-(gap*2); } } //maxWidth if (wallValue != "front" && wallValue != "back"){ maxWidth = MasterValue("A9")-(gap*4); }else { maxWidth = MasterValue("A10")-(gap*2); } //itemMinWidth if (style == 'zincPA' || style == 'steelPA' || style == 'alumPA'){itemMinWidth=0.9} else if (style == 'sectional' || style == 'barn'){itemMinWidth=2.4} else if (style == 'roller'){itemMinWidth=2.1} else if (style == 'WD'){itemMinWidth=0.6} else if (style == 'sliding'){itemMinWidth=2.0} //itemMaxWidth if (style == 'zincPA' || style == 'steelPA'){itemMaxWidth=0.9} else if (style == 'alumPA'){itemMaxWidth=1.2} else if (style == 'sectional'){itemMaxWidth=6.0} else if (style == 'roller'){itemMaxWidth=4.2} else if (style == 'barn' || style == 'sliding'){itemMaxWidth=3.0} else if (style == 'WD'){itemMaxWidth=2.1} //itemMinHeight if (style == 'zincPA' || style == 'steelPA' || style == 'alumPA' || style == 'sectional' || style == 'roller' || style == 'sliding'){itemMinHeight=2.1} else if (style == 'barn'){itemMinHeight=2.4} else if (style == 'WD'){itemMinHeight=0.6} //itemMaxHeight if (style == 'zincPA' || style == 'steelPA' || style == 'alumPA' || style == 'sliding'){itemMaxHeight=2.1} else if (style == 'sectional'){itemMaxHeight=2.9} else if (style == 'roller'){itemMaxHeight=4.2} else if (style == 'barn'){itemMaxHeight=3.0} else if (style == 'WD'){itemMaxHeight=1.2} //setSliders MasterModify(widthId,'min',itemMinWidth); if (maxWidth >= itemMaxWidth){MasterModify(widthId,'max',itemMaxWidth)} else {MasterModify(widthId,'max',maxWidth)} MasterModify(heightId,'min',itemMinHeight); if (maxHeight < itemMinHeight){ AlertMessage("No Space","The shed height is not enough for "+MasterValue(itemId,"name")+". This element will be removed."); for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["ID"] == itemId) { doorsWindows["doorsWindows"].splice(i,1); break; } } MasterModify("Menu1", "close"); MasterModify(itemId,"showthis",false); } else if (maxHeight >= itemMaxHeight){MasterModify(heightId,'max',itemMaxHeight)} else {MasterModify(heightId,'max',maxHeight)} //showOpeningSide/HingePosition if (style == 'zincPA' || style == 'steelPA' || style == 'alumPA' || style == 'barn'){ MasterModify(openingSideId,"showthis",true); }else{ MasterModify(openingSideId,"showthis",false); } if (style == 'zincPA' || style == 'steelPA' || style == 'alumPA'){ MasterModify(hingePostId,"showthis",true); }else{ MasterModify(hingePostId,"showthis",false); } setTimeout(function(){ //locationX if (wallValue != "front" && wallValue != "back"){ MasterModify(locationXId,"min",gap*2); if ((MasterValue("A9")-MasterValue(widthId)-(gap*2)).toFixed(1) <= gap*2){ MasterModify(locationXId,"max",gap*2); }else{ MasterModify(locationXId,"max",(MasterValue("A9")-MasterValue(widthId)-(gap*2)).toFixed(1)); } } else { MasterModify(locationXId,"min",gap); if ((MasterValue("A10")-MasterValue(widthId)-gap).toFixed(1) <= gap){ MasterModify(locationXId,"max",gap); }else{ MasterModify(locationXId,"max",(MasterValue("A10")-MasterValue(widthId)-gap).toFixed(1)); } } //locationZ if (style == "WD"){ MasterModify(locationZId,"min",0.5); if (wallValue != "front" && wallValue != "back"){ if (MasterValue("A3") == "skillion"){ if (((((Math.tan(MasterValue("A14") * (Math.PI / 180)) * MasterValue(locationXId)) + MasterValue("A13")) - (gap*2)) - MasterValue(heightId)).toFixed(1) < 0){ MasterModify(locationZId,"showthis",false); MasterModify(locationZId,"max",0); }else{ MasterModify(locationZId,"showthis",true); MasterModify(locationZId,"max",((((Math.tan(MasterValue("A14") * (Math.PI / 180)) * MasterValue(locationXId)) + MasterValue("A13")) - (gap*2)) - MasterValue(heightId)).toFixed(1)); } }else{ if(MasterValue(locationXId)<(MasterValue("A9")/2)-(MasterValue(widthId)/2)){ if (((((Math.tan(MasterValue("A14") * (Math.PI / 180)) * MasterValue(locationXId)) + MasterValue("A13")) - (gap*2)) - MasterValue(heightId)).toFixed(1) < 0){ MasterModify(locationZId,"showthis",false); MasterModify(locationZId,"max",0); }else{ MasterModify(locationZId,"max",((((Math.tan(MasterValue("A14") * (Math.PI / 180)) * MasterValue(locationXId)) + MasterValue("A13")) - (gap*2)) - MasterValue(heightId)).toFixed(1)); } }else{ if (((((Math.tan(MasterValue("A14") * (Math.PI / 180)) * (MasterValue("A9") - (MasterValue(locationXId)+MasterValue(widthId)))) + MasterValue("A13")) - (gap*2)) - MasterValue(heightId)).toFixed(1) < 0){ MasterModify(locationZId,"showthis",false); MasterModify(locationZId,"max",0); }else{ MasterModify(locationZId,"max",((((Math.tan(MasterValue("A14") * (Math.PI / 180)) * (MasterValue("A9") - (MasterValue(locationXId)+MasterValue(widthId)))) + MasterValue("A13")) - (gap*2)) - MasterValue(heightId)).toFixed(1)); } } } }else{ if (wallValue == "front" && MasterValue("A3") == "skillion"){ if ((((((Math.tan(MasterValue("A14") * (Math.PI/180))) * MasterValue("A9")) + MasterValue("A13")) - (gap*2)) - MasterValue(heightId)).toFixed(1) < 0){ MasterModify(locationZId,"showthis",false); MasterModify(locationZId,"max",0); }else{ MasterModify(locationZId,"max",(((((Math.tan(MasterValue("A14") * (Math.PI/180))) * MasterValue("A9")) + MasterValue("A13")) - (gap*2)) - MasterValue(heightId)).toFixed(1)); } }else{ if (((MasterValue("A13")-(gap*2)) - MasterValue(heightId)).toFixed(1) < 0){ MasterModify(locationZId,"showthis",false); MasterModify(locationZId,"max",0); }else{ MasterModify(locationZId,"max",((MasterValue("A13")-(gap*2)) - MasterValue(heightId)).toFixed(1)); } } } } else { MasterModify(locationZId,"min",0); MasterModify(locationZId,"value",0); MasterModify(locationZId,"showthis",false); } MasterApply(); setTimeout(function(){ for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["ID"] == itemId) { doorsWindows["doorsWindows"][i]["width"]= MasterValue(widthId); doorsWindows["doorsWindows"][i]["height"]= MasterValue(heightId); doorsWindows["doorsWindows"][i]["location"][0]= MasterValue(locationXId); doorsWindows["doorsWindows"][i]["location"][1]= MasterValue(locationZId); break; } } setTimeout(function(){ //hideHeight if (style == 'zincPA' || style == 'steelPA' || style == 'alumPA' || style == 'sliding'){ MasterModify(heightId,"showthis",false); } //hideWidth if (style == 'zincPA' || style == 'steelPA'){ MasterModify(widthId,"showthis",false); } //hideLocationX if (wallValue != "front" && wallValue != "back"){ if ((MasterValue("A9")-MasterValue(widthId)-(gap*2)).toFixed(1) <= gap*2){ MasterModify(locationXId,"showthis",false); } } else { if ((MasterValue("A10")-MasterValue(widthId)-gap).toFixed(1) <= gap){ MasterModify(locationXId,"showthis",false); } } MasterApply(); SetValShapeDiver("DoorsAndWindows",JSON.stringify(doorsWindows,null,0)); var UpdatedGeometry = setInterval(function(){ if (MessageShapeDiver == "GeometryUpdateVisible"){ if (getModelDataForName('collision')){ AlertMessage("Collision!!",MasterValue(itemId,"name")+" is collisioning with other element. Please move, remove or change it to avoid this from happening.") }; clearInterval(UpdatedGeometry); } }, 500); }, 1); }, 1); }, 1); }; function MasterOpenSection(id, index) {angular.element($("#GeneralJS")).scope().ShowMenus(id, index, null, false)} function MasterApply() {angular.element($("#GeneralJS")).scope().$apply()} function AlertMessage(t,c){angular.element($("#GeneralJS")).scope().HelpText("",t,c,"ok")} function MasterSectionId(a,b) {return angular.element($("#GeneralJS")).scope().MasterSectionId(a,b);} function MasterModify(e,n,a,zz){var r=e.indexOf(",")>=0?e.split(","):[e];for(var i in r)angular.element($("#GeneralJS")).scope().MasterModifyLoop(r[i],n,a,zz);return!0}function MasterView(e){angular.element($("#GeneralJS")).scope().ChangeView(e)} function MasterFunctionLoop(id,source) {const MasterId = id; switch (id) { case "A3": SetValShapeDiver("Structure Type",MasterValue("A3")); if(MasterValue("A3")=="skillion" && MasterValue("A4")>0){MasterModify("A5","showthis", true)}else{MasterModify("A5","showthis", false)} for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ itemId = doorsWindows["doorsWindows"][i]["ID"]; style = doorsWindows["doorsWindows"][i]["style"]; wallValue = doorsWindows["doorsWindows"][i]["wall"]; nextId = "A"+(Number(itemId.match(/[0-9]+/g))+1); widthId = MasterSectionId(nextId,3); heightId = MasterSectionId(nextId,4); locationXId = MasterSectionId(nextId,5); locationZId = MasterSectionId(nextId,6); openingSideId = MasterSectionId(nextId,7); hingePostId = MasterSectionId(nextId,8); updateDoors(); } break; case "A197": SetValShapeDiver("Side Overhangs",MasterValue("A197")); break; case "A4": SetValShapeDiver("Front Overhang",MasterValue("A4")); if(MasterValue("A3")=="skillion" && MasterValue("A4")>0){MasterModify("A5","showthis", true)}else{MasterModify("A5","showthis", false)} break; case "A6": SetValShapeDiver("Back Overhang",MasterValue("A6")); break; case "A5": SetValShapeDiver("Type of Overhang",MasterValue("A5")); break; case "A7": SetValShapeDiver("Centre Poles?",MasterValue("A7")); break; case "A8_IN": SetValShapeDiver("Compute 3D?",false); SetValShapeDiver("Compute Ground?",false); var payload = { command: "activateTopView", arguments: [true] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); var payload = { command: "setAmbientOcclusion", arguments: [false] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); var payload = { command: "toggleSceneBackground", arguments: [false] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); MasterView("backward"); break; case "A8_OUT": SetValShapeDiver("Compute 3D?",true); SetValShapeDiver("Compute Ground?",true); var payload = { command: "activateTopView", arguments: [false] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); var payload = { command: "setAmbientOcclusion", arguments: [true] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); MasterView("backward_right_down"); UpdatedShapeDiver(function UpdatedAction() { var payload = { command: "toggleSceneBackground", arguments: [true] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); if (MasterValue("A3")=="skillion"){SetValShapeDiver("Structure Type","gable")} else {SetValShapeDiver("Structure Type","skillion")} MasterFunction("A3"); }); break; case "A9": SetValShapeDiver("Shed Depth",MasterValue("A9").toFixed(1)); MasterFunction('A8_IN'); UpdateGeometry(); for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ itemId = doorsWindows["doorsWindows"][i]["ID"]; style = doorsWindows["doorsWindows"][i]["style"]; wallValue = doorsWindows["doorsWindows"][i]["wall"]; nextId = "A"+(Number(itemId.match(/[0-9]+/g))+1); widthId = MasterSectionId(nextId,3); heightId = MasterSectionId(nextId,4); locationXId = MasterSectionId(nextId,5); locationZId = MasterSectionId(nextId,6); openingSideId = MasterSectionId(nextId,7); hingePostId = MasterSectionId(nextId,8); updateDoors(); } break; case "A10": SetValShapeDiver("Bay Size",MasterValue("A10").toFixed(1)); MasterFunction('A8_IN'); for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ itemId = doorsWindows["doorsWindows"][i]["ID"]; style = doorsWindows["doorsWindows"][i]["style"]; wallValue = doorsWindows["doorsWindows"][i]["wall"]; nextId = "A"+(Number(itemId.match(/[0-9]+/g))+1); widthId = MasterSectionId(nextId,3); heightId = MasterSectionId(nextId,4); locationXId = MasterSectionId(nextId,5); locationZId = MasterSectionId(nextId,6); openingSideId = MasterSectionId(nextId,7); hingePostId = MasterSectionId(nextId,8); updateDoors(); } break; case "A11": SetValShapeDiver("Number of Bays",MasterValue("A11")); SetValShapeDiver("Position Right Wall",MasterValue("A11").toString()); MasterFunction('A8_IN'); UpdateGeometry(); break; case "A12": return ((MasterValue("A10")*MasterValue("A11")).toFixed(1)); break; case "A13": SetValShapeDiver("Eave Height",MasterValue("A13")); SetValShapeDiver("Compute 3D?",true); var payload = { command: "activateTopView", arguments: [false] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); MasterView("backward_right_down"); UpdateGeometry(); for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ itemId = doorsWindows["doorsWindows"][i]["ID"]; style = doorsWindows["doorsWindows"][i]["style"]; wallValue = doorsWindows["doorsWindows"][i]["wall"]; nextId = "A"+(Number(itemId.match(/[0-9]+/g))+1); widthId = MasterSectionId(nextId,3); heightId = MasterSectionId(nextId,4); locationXId = MasterSectionId(nextId,5); locationZId = MasterSectionId(nextId,6); openingSideId = MasterSectionId(nextId,7); hingePostId = MasterSectionId(nextId,8); updateDoors(); } break; case "A32": if (MasterValue("A3")=="skillion"){ ridgeHeight = (((Math.tan(MasterValue("A14")*(Math.PI/180)))*MasterValue("A9"))+MasterValue("A13")).toFixed(1); return (ridgeHeight); } else{ ridgeHeight = ((((Math.tan(MasterValue("A14")*(Math.PI/180)))*MasterValue("A9"))/2)+MasterValue("A13")).toFixed(1); return (ridgeHeight); } break; case "A14": SetValShapeDiver("Roof Pitch",MasterValue("A14")); SetValShapeDiver("Compute 3D?",true); var payload = { command: "activateTopView", arguments: [false] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); MasterView("backward_right_down"); UpdateGeometry(); for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ itemId = doorsWindows["doorsWindows"][i]["ID"]; style = doorsWindows["doorsWindows"][i]["style"]; wallValue = doorsWindows["doorsWindows"][i]["wall"]; nextId = "A"+(Number(itemId.match(/[0-9]+/g))+1); widthId = MasterSectionId(nextId,3); heightId = MasterSectionId(nextId,4); locationXId = MasterSectionId(nextId,5); locationZId = MasterSectionId(nextId,6); openingSideId = MasterSectionId(nextId,7); hingePostId = MasterSectionId(nextId,8); updateDoors(); } break; case "A15_IN": MasterFunction('A8_IN'); break; case "A15_OUT": MasterFunction('A8_OUT'); break; case "A16": if (MasterValue("A16")==true){ if (getModelDataForName("IW Max")==0){MasterModify("A17","showthis",false)} else{MasterModify("A17","showthis",true)}; }else{MasterModify("A17","showthis",false)} MasterModify("A18,A28,A56,A60,A90,A98,A105","showthis",MasterValue("A16")); MasterModify("A23,A61,A29,A55,A57,A58","value",MasterValue("A16")); MasterFunction("A23,A61,A29,A55,A57,A58"); break; case "A17": SetValShapeDiver("Internal Walls?",MasterValue("A17")); if (MasterValue("A17")==1){ MasterModify("A76","showthis",true); MasterModify("A80","showthis",false); }else if (MasterValue("A17")==2){ MasterModify("A76,A80","showthis",true); }else { MasterModify("A76,A80","showthis",false); } break; case "A28_IN": $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-BW Color","#ffffff"); }); $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-FW Color","#ffffff"); }); $(WallEnds).not(["LW"]).each(function() { SetValShapeDiver("Sect. R-"+this+" Color","#ffffff"); SetValShapeDiver("Sect. L-"+this+" Color","#ffffff"); }); SetValShapeDiver("Sect. R-LW Color","#ff0000"); SetValShapeDiver("Sect. L-LW Color","#00ffff"); UpdateGeometry(); break; case "A28_OUT": MasterFunction('A18_OUT'); break; case "A29": SetValShapeDiver("Left Sect. Left Wall",MasterValue("A29")); break; case "A55": SetValShapeDiver("Right Sect. Left Wall",MasterValue("A55")); break; case "A30": SetValShapeDiver("Position Left Wall",MasterValue("A30")); break; case "A76_IN": $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-BW Color","#ffffff"); }); $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-FW Color","#ffffff"); }); $(WallEnds).not(["IW1"]).each(function() { SetValShapeDiver("Sect. R-"+this+" Color","#ffffff"); SetValShapeDiver("Sect. L-"+this+" Color","#ffffff"); }); SetValShapeDiver("Sect. R-IW1 Color","#ff0000"); SetValShapeDiver("Sect. L-IW1 Color","#00ffff"); UpdateGeometry(); break; case "A76_OUT": MasterFunction('A18_OUT'); break; case "A77": SetValShapeDiver("Left Sect. Int Wall 1",MasterValue("A77")); break; case "A78": SetValShapeDiver("Right Sect. Int Wall 1",MasterValue("A78")); break; case "A79": SetValShapeDiver("Int. Wall 1 Position",MasterValue("A79")); break; case "A80_IN": $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-BW Color","#ffffff"); }); $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-FW Color","#ffffff"); }); $(WallEnds).not(["IW2"]).each(function() { SetValShapeDiver("Sect. R-"+this+" Color","#ffffff"); SetValShapeDiver("Sect. L-"+this+" Color","#ffffff"); }); SetValShapeDiver("Sect. R-IW2 Color","#ff0000"); SetValShapeDiver("Sect. L-IW2 Color","#00ffff"); UpdateGeometry(); break; case "A80_OUT": MasterFunction('A18_OUT'); break; case "A81": SetValShapeDiver("Left Sect. Int Wall 2",MasterValue("A81")); break; case "A82": SetValShapeDiver("Right Sect. Int Wall 2",MasterValue("A82")); break; case "A83": SetValShapeDiver("Int. Wall 2 Position",MasterValue("A83")); break; case "A56_IN": $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-BW Color","#ffffff"); }); $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-FW Color","#ffffff"); }); $(WallEnds).not(["RW"]).each(function() { SetValShapeDiver("Sect. R-"+this+" Color","#ffffff"); SetValShapeDiver("Sect. L-"+this+" Color","#ffffff"); }); SetValShapeDiver("Sect. R-RW Color","#ff0000"); SetValShapeDiver("Sect. L-RW Color","#00ffff"); UpdateGeometry(); break; case "A56_OUT": MasterFunction('A18_OUT'); break; case "A57": SetValShapeDiver("Left Sect. Right Wall",MasterValue("A57")); break; case "A58": SetValShapeDiver("Right Sect. Right Wall",MasterValue("A58")); break; case "A59": SetValShapeDiver("Position Right Wall",MasterValue("A59")); break; case "A18_IN": SetValShapeDiver("Sect. A-FW Color","#ff0000"); SetValShapeDiver("Sect. B-FW Color","#00ffff"); SetValShapeDiver("Sect. C-FW Color","#ffff00"); SetValShapeDiver("Sect. D-FW Color","#00ff00"); SetValShapeDiver("Sect. E-FW Color","#ff00ff"); $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-BW Color","#ffffff"); }); $(WallEnds).each(function() { SetValShapeDiver("Sect. R-"+this+" Color","#ffffff"); SetValShapeDiver("Sect. L-"+this+" Color","#ffffff"); }); UpdateGeometry(); break; case "A18_OUT": $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-FW Color","#ff0000"); }); $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-BW Color","#00ffff"); }); SetValShapeDiver("Sect. R-RW Color","#00ff00"); SetValShapeDiver("Sect. L-RW Color","#00ff00"); SetValShapeDiver("Sect. R-LW Color","#ffff00"); SetValShapeDiver("Sect. L-LW Color","#ffff00"); SetValShapeDiver("Sect. R-IW1 Color","#ff7200"); SetValShapeDiver("Sect. L-IW1 Color","#ff7200"); SetValShapeDiver("Sect. R-IW2 Color","#ff00ff"); SetValShapeDiver("Sect. L-IW2 Color","#ff00ff"); MasterModify('A41,A47,A62,A68','open',false); UpdateGeometry(); break; case "A23": MasterModify("A47","showthis",MasterValue("A23")); MasterModify("A42,A43,A44,A45,A46","value",MasterValue("A23")); MasterFunction("A42,A43,A44,A45,A46"); UpdateGeometry(); break; case "A41_IN": MasterModify('A47','open',false); break; case "A42": SetValShapeDiver("Section A Front Wall",MasterValue("A42")); break; case "A43": SetValShapeDiver("Section B Front Wall",MasterValue("A43")); if (getModelDataForName("Sect B")=="HIDE"){MasterModify("A49","showthis",false)} else {MasterModify("A49","showthis",MasterValue("A43"))} break; case "A44": SetValShapeDiver("Section C Front Wall",MasterValue("A44")); if (getModelDataForName("Sect C")=="HIDE"){MasterModify("A50","showthis",false)} else {MasterModify("A50","showthis",MasterValue("A44"))} break; case "A45": SetValShapeDiver("Section D Front Wall",MasterValue("A45")); if (getModelDataForName("Sect D")=="HIDE"){MasterModify("A51","showthis",false)} else {MasterModify("A51","showthis",MasterValue("A45"))} break; case "A46": SetValShapeDiver("Section E Front Wall",MasterValue("A46")); break; case "A47_IN": MasterModify('A41','open',false); break; case "A54": SetValShapeDiver("Wall Position",MasterValue("A54")); MasterModify("A69","value",MasterValue("A54")); break; case "A53": if (MasterValue("A53")==true){ SetValShapeDiver("Move Front Wall","1"); MasterModify("A48,A49,A50,A51,A52","value", false); MasterModify("A54","showthis", true); } if (MasterValue("A48")==false && MasterValue("A49")==false && MasterValue("A50")==false && MasterValue("A51")==false && MasterValue("A52")==false && MasterValue("A53")==false){ SetValShapeDiver("Move Front Wall","0"); MasterModify("A54","showthis", false); } break; case "A49": if (MasterValue("A49")==true){ SetValShapeDiver("Move Front Wall","2"); MasterModify("A48,A53,A50,A51,A52","value", false); MasterModify("A54","showthis", true); } if (MasterValue("A48")==false && MasterValue("A49")==false && MasterValue("A50")==false && MasterValue("A51")==false && MasterValue("A52")==false && MasterValue("A53")==false){ SetValShapeDiver("Move Front Wall","0"); MasterModify("A54","showthis", false); } break; case "A50": if (MasterValue("A50")==true){ SetValShapeDiver("Move Front Wall","3"); MasterModify("A48,A53,A49,A51,A52","value", false); MasterModify("A54","showthis", true); } if (MasterValue("A48")==false && MasterValue("A49")==false && MasterValue("A50")==false && MasterValue("A51")==false && MasterValue("A52")==false && MasterValue("A53")==false){ SetValShapeDiver("Move Front Wall","0"); MasterModify("A54","showthis", false); } break; case "A51": if (MasterValue("A51")==true){ SetValShapeDiver("Move Front Wall","4"); MasterModify("A48,A53,A49,A50,A52","value", false); MasterModify("A54","showthis", true); } if (MasterValue("A48")==false && MasterValue("A49")==false && MasterValue("A50")==false && MasterValue("A51")==false && MasterValue("A52")==false && MasterValue("A53")==false){ SetValShapeDiver("Move Front Wall","0"); MasterModify("A54","showthis", false); } break; case "A48": if (MasterValue("A48")==true){ SetValShapeDiver("Move Front Wall","5"); MasterModify("A51,A53,A49,A50,A52","value", false); MasterModify("A54","showthis", true); } if (MasterValue("A48")==false && MasterValue("A49")==false && MasterValue("A50")==false && MasterValue("A51")==false && MasterValue("A52")==false && MasterValue("A53")==false){ SetValShapeDiver("Move Front Wall","0"); MasterModify("A54","showthis", false); } break; case "A52": if (MasterValue("A52")==true){ SetValShapeDiver("Move Front Wall","6"); MasterModify("A51,A53,A49,A50,A48","value", false); MasterModify("A54","showthis", true); } if (MasterValue("A48")==false && MasterValue("A49")==false && MasterValue("A50")==false && MasterValue("A51")==false && MasterValue("A52")==false && MasterValue("A53")==false){ SetValShapeDiver("Move Front Wall","0"); MasterModify("A54","showthis", false); } break; case "A60_IN": SetValShapeDiver("Sect. A-BW Color","#ff0000"); SetValShapeDiver("Sect. B-BW Color","#00ffff"); SetValShapeDiver("Sect. C-BW Color","#ffff00"); SetValShapeDiver("Sect. D-BW Color","#00ff00"); SetValShapeDiver("Sect. E-BW Color","#ff00ff"); $(SectSides).each(function() { SetValShapeDiver("Sect. "+this+"-FW Color","#ffffff"); }); $(WallEnds).each(function() { SetValShapeDiver("Sect. R-"+this+" Color","#ffffff"); SetValShapeDiver("Sect. L-"+this+" Color","#ffffff"); }); UpdateGeometry(); break; case "A60_OUT": MasterFunction('A18_OUT'); break; case "A61": MasterModify("A68","showthis",MasterValue("A61")); MasterModify("A63,A64,A65,A66,A67","value",MasterValue("A61")); MasterFunction("A63,A64,A65,A66,A67"); UpdateGeometry(); break; case "A62_IN": MasterModify('A47','open',false); break; case "A63": SetValShapeDiver("Section A Back Wall",MasterValue("A63")); break; case "A64": SetValShapeDiver("Section B Back Wall",MasterValue("A64")); if (getModelDataForName("Sect B")=="HIDE"){MasterModify("A71","showthis",false)} else {MasterModify("A71","showthis",MasterValue("A64"))} break; case "A65": SetValShapeDiver("Section C Back Wall",MasterValue("A65")); if (getModelDataForName("Sect C")=="HIDE"){MasterModify("A72","showthis",false)} else {MasterModify("A72","showthis",MasterValue("A65"))} break; case "A66": SetValShapeDiver("Section D Back Wall",MasterValue("A66")); if (getModelDataForName("Sect D")=="HIDE"){MasterModify("A73","showthis",false)} else {MasterModify("A73","showthis",MasterValue("A66"))} break; case "A67": SetValShapeDiver("Section E Back Wall",MasterValue("A67")); break; case "A68_IN": MasterModify('A41','open',false); break; case "A69": SetValShapeDiver("Wall Position",MasterValue("A69")); MasterModify("A54","value",MasterValue("A69")); break; case "A70": if (MasterValue("A70")==true){ SetValShapeDiver("Move Back Wall","1"); MasterModify("A71,A72,A73,A74,A75","value", false); MasterModify("A69","showthis", true); } if (MasterValue("A70")==false && MasterValue("A71")==false && MasterValue("A72")==false && MasterValue("A73")==false && MasterValue("A74")==false && MasterValue("A75")==false){ SetValShapeDiver("Move Back Wall","0"); MasterModify("A69","showthis", false); } break; case "A71": if (MasterValue("A71")==true){ SetValShapeDiver("Move Back Wall","2"); MasterModify("A70,A72,A73,A74,A75","value", false); MasterModify("A69","showthis", true); } if (MasterValue("A70")==false && MasterValue("A71")==false && MasterValue("A72")==false && MasterValue("A73")==false && MasterValue("A74")==false && MasterValue("A75")==false){ SetValShapeDiver("Move Back Wall","0"); MasterModify("A69","showthis", false); } break; case "A72": if (MasterValue("A72")==true){ SetValShapeDiver("Move Back Wall","3"); MasterModify("A71,A70,A73,A74,A75","value", false); MasterModify("A69","showthis", true); } if (MasterValue("A70")==false && MasterValue("A71")==false && MasterValue("A72")==false && MasterValue("A73")==false && MasterValue("A74")==false && MasterValue("A75")==false){ SetValShapeDiver("Move Back Wall","0"); MasterModify("A69","showthis", false); } break; case "A73": if (MasterValue("A73")==true){ SetValShapeDiver("Move Back Wall","4"); MasterModify("A71,A72,A70,A74,A75","value", false); MasterModify("A69","showthis", true); } if (MasterValue("A70")==false && MasterValue("A71")==false && MasterValue("A72")==false && MasterValue("A73")==false && MasterValue("A74")==false && MasterValue("A75")==false){ SetValShapeDiver("Move Back Wall","0"); MasterModify("A69","showthis", false); } break; case "A74": if (MasterValue("A74")==true){ SetValShapeDiver("Move Back Wall","5"); MasterModify("A71,A72,A73,A70,A75","value", false); MasterModify("A69","showthis", true); } if (MasterValue("A70")==false && MasterValue("A71")==false && MasterValue("A72")==false && MasterValue("A73")==false && MasterValue("A74")==false && MasterValue("A75")==false){ SetValShapeDiver("Move Back Wall","0"); MasterModify("A69","showthis", false); } break; case "A75": if (MasterValue("A75")==true){ SetValShapeDiver("Move Back Wall","6"); MasterModify("A71,A72,A73,A74,A70","value", false); MasterModify("A69","showthis", true); } if (MasterValue("A70")==false && MasterValue("A71")==false && MasterValue("A72")==false && MasterValue("A73")==false && MasterValue("A74")==false && MasterValue("A75")==false){ SetValShapeDiver("Move Back Wall","0"); MasterModify("A69","showthis", false); } break; case "A106_IN": SetValShapeDiver("Compute Roof?",false); SetValShapeDiver("Compute Ground?",false); SetValShapeDiver("Compute Floor Plan?",false); var payload = { command: "setAmbientOcclusion", arguments: [false] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); var payload = { command: "toggleSceneBackground", arguments: [false] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); MasterView("backward"); break; case "A106_OUT": SetValShapeDiver("Compute Roof?",true); SetValShapeDiver("Compute Ground?",true); SetValShapeDiver("Compute Floor Plan?",true); var payload = { command: "setAmbientOcclusion", arguments: [true] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); var payload = { command: "toggleSceneBackground", arguments: [true] }; SourceShapeDiver.postMessage(payload, "https://www.shapediver.com"); MasterView("backward_right_down"); break; case "A186": SetValShapeDiver("Open Doors",MasterValue("A186")); break; case "A172_IN": itemId = MasterId; nextId = "A"+(Number(itemId.match(/[0-9]+/g))+1); widthId = MasterSectionId(nextId,3); heightId = MasterSectionId(nextId,4); locationXId = MasterSectionId(nextId,5); locationZId = MasterSectionId(nextId,6); openingSideId = MasterSectionId(nextId,7); hingePostId = MasterSectionId(nextId,8); if (MasterValue("A17")==0){ MasterModify(nextId,"hideoption",true,"intWall_1"); MasterModify(nextId,"hideoption",true,"intWall_2"); } else if (MasterValue("A17")==1){ MasterModify(nextId,"hideoption",false,"intWall_1"); MasterModify(nextId,"hideoption",true,"intWall_2"); } else { MasterModify(nextId,"hideoption",false,"intWall_1"); MasterModify(nextId,"hideoption",false,"intWall_2"); } if (doorsWindows["doorsWindows"].length != 0){ for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["ID"] == itemId) { doorsWindows["doorsWindows"][i]["dimensions"] = true; SetValShapeDiver("DoorsAndWindows",JSON.stringify(doorsWindows,null,0)); style = doorsWindows["doorsWindows"][i]["style"]; wallValue = doorsWindows["doorsWindows"][i]["wall"]; if (doorsWindows["doorsWindows"][i]["wall"] == "front"){ var payload = { command:"setCamera", arguments:[{ x:(doorsWindows["doorsWindows"][i]["bay"]*MasterValue("A10"))-(MasterValue("A10")/2), y:(MasterValue("A10")+MasterValue("A9"))*-1, z:MasterValue("A13")/2 },{ x:(doorsWindows["doorsWindows"][i]["bay"]*MasterValue("A10"))-(MasterValue("A10")/2), y:0, z:MasterValue("A13")/2 }, true, 3000] }; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); } else if (doorsWindows["doorsWindows"][i]["wall"] == "back"){ var payload = { command:"setCamera", arguments:[{ x:(doorsWindows["doorsWindows"][i]["bay"]*MasterValue("A10"))-(MasterValue("A10")/2), y:MasterValue("A10")+MasterValue("A9"), z:MasterValue("A13")/2 },{ x:(doorsWindows["doorsWindows"][i]["bay"]*MasterValue("A10"))-(MasterValue("A10")/2), y:0, z:MasterValue("A13")/2 }, true, 3000] }; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); } else if (doorsWindows["doorsWindows"][i]["wall"] == "right"){MasterView('right')} else if (doorsWindows["doorsWindows"][i]["wall"] == "left"){MasterView('left')} else if (doorsWindows["doorsWindows"][i]["wall"] == "intWall_1"){ var payload = { command:"setCamera", arguments:[{ x:(MasterValue("A79")*MasterValue("A10"))-MasterValue("A9"), y:0, z:ridgeHeight*2 },{ x:MasterValue("A79")*MasterValue("A10"), y:0, z:(MasterValue("A13")/2) }, true, 3000] }; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); } else if (doorsWindows["doorsWindows"][i]["wall"] == "intWall_2"){ var payload = { command:"setCamera", arguments:[{ x:(MasterValue("A83")*MasterValue("A10"))-MasterValue("A9"), y:0, z:ridgeHeight*2 },{ x:MasterValue("A83")*MasterValue("A10"), y:0, z:(MasterValue("A13")/2) }, true, 3000] }; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); } break; }else{ if (i == (doorsWindows["doorsWindows"].length-1)){ style = null; doorsWindows["doorsWindows"].push({ "ID": itemId, "style": "roller", "wall": "front", "bay": 1, "location": [0,0], "width": 0, "height": 0, "openingSide": "out", "hingePost": "right", "dimensions": true, }); break; } } } }else{ style = null; doorsWindows["doorsWindows"].push({ "ID": itemId, "style": "roller", "wall": "front", "bay": 1, "location": [0,0], "width": 0, "height": 0, "openingSide": "out", "hingePost": "right", "dimensions": true, }); } //alert(JSON.stringify(doorsWindows,null,0)); break; case "A172_OUT": for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["ID"] == itemId) { doorsWindows["doorsWindows"][i]["dimensions"] = false; break; } } SetValShapeDiver("DoorsAndWindows",JSON.stringify(doorsWindows,null,0)); MasterView("backward"); for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["style"] != "WD") { MasterModify("A186","showthis",null); break; }else{ MasterModify("A186","showthis",false); } } break; case "A176": //setJSONval wallValue = MasterValue (MasterId); for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["ID"] == MasterSectionId(MasterId)) { doorsWindows["doorsWindows"][i]["wall"] = MasterValue(MasterId); break; } } //moveCamera if (MasterValue(MasterId)=="front"){MasterView('down')} else if (MasterValue(MasterId)=="back"){MasterView('up')} else if (MasterValue(MasterId)=="right"){MasterView('right')} else if (MasterValue(MasterId)=="left"){MasterView('left')} else if (MasterValue(MasterId)=="intWall_1"){ var payload = { command:"setCamera", arguments:[{x:(MasterValue("A79")*MasterValue("A10"))-MasterValue("A9"), y:0, z:ridgeHeight*2},{x:MasterValue("A79")*MasterValue("A10"), y:0, z:(MasterValue("A13")/2)}, true, 3000]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); } else if (MasterValue(MasterId)=="intWall_2"){ var payload = { command:"setCamera", arguments:[{x:(MasterValue("A83")*MasterValue("A10"))-MasterValue("A9"), y:0, z:ridgeHeight*2},{x:MasterValue("A83")*MasterValue("A10"), y:0, z:(MasterValue("A13")/2)}, true, 3000]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); } //showNextStep if (MasterValue(MasterId)=="front"||MasterValue(MasterId)=="back"){ SetValShapeDiver("Bay Numbers",true); MasterModify(MasterSectionId(MasterId,1),"showthis",true); }else{ SetValShapeDiver("Bay Numbers",false); MasterModify(MasterSectionId(MasterId,1),"showthis",false); if (MasterValue(MasterSectionId(MasterId,1)) == null){ MasterModify(MasterSectionId(MasterId,1),"value","1"); } for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["ID"] == MasterSectionId(MasterId)) { doorsWindows["doorsWindows"][i]["bay"] = MasterValue(MasterSectionId(MasterId,1)); break; } } MasterModify(MasterSectionId(MasterId,2),"showthis",null); if (style == null){ MasterModify(MasterSectionId(MasterId,2),"open",true); } } for (var i = 0; i <= 15; i++){ MasterModify(MasterSectionId(nextId,1),"hideoption",false,i); } for (var i = MasterValue("A11")+1; i <= 15; i++){ MasterModify(MasterSectionId(nextId,1),"hideoption",true,i); } //SECT A if (MasterValue("A30") > 0 && ((wallValue == "front" && MasterValue("A42") == false) || (wallValue == "back" && MasterValue("A63") == false))){ for (var i = 1; i <= Number(MasterValue("A30")); i++){ MasterModify(MasterSectionId(nextId,1),"hideoption",true,i); } } //SECT B if ((wallValue == "front" && MasterValue("A43") == false) || (wallValue == "back" && MasterValue("A64") == false)){ var end; if (MasterValue("A17")==0){end=MasterValue("A59");} else {end = MasterValue("A79");} for (var i = Number(MasterValue("A30"))+1; i <= Number(end); i++){ MasterModify(MasterSectionId(nextId,1),"hideoption",true,i); } } //SECT C if (MasterValue("A17") > 0 && ((wallValue == "front" && MasterValue("A44") == false) || (wallValue == "back" && MasterValue("A65") == false))){ var end; if (MasterValue("A17")==1){end=MasterValue("A59");} else {end = MasterValue("A83");} for (var i = Number(MasterValue("A79"))+1; i <= Number(end); i++){ MasterModify(MasterSectionId(nextId,1),"hideoption",true,i); } } //SECT D if (MasterValue("A17") > 1 && ((wallValue == "front" && MasterValue("A45") == false) || (wallValue == "back" && MasterValue("A66") == false))){ for (var i = Number(MasterValue("A83"))+1; i <= Number(MasterValue("A59")); i++){ MasterModify(MasterSectionId(nextId,1),"hideoption",true,i); } } //SECT E if (MasterValue("A59") != MasterValue("A11") && ((wallValue == "front" && MasterValue("A46") == false) || (wallValue == "back" && MasterValue("A67") == false))){ for (var i = Number(MasterValue("A59"))+1; i <= MasterValue("A11"); i++){ MasterModify(MasterSectionId(nextId,1),"hideoption",true,i); } } if (style != null){updateDoors();} break; case "A181": //setJSONval for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["ID"] == MasterSectionId(MasterId)) { doorsWindows["doorsWindows"][i]["bay"] = MasterValue(MasterId); break; } } //moveCamera if (MasterValue(MasterSectionId(MasterId,0))=="front"){ var payload = { command:"setCamera", arguments:[{x:(MasterValue(MasterId)*MasterValue("A10"))-(MasterValue("A10")/2), y:(MasterValue("A10")+MasterValue("A9"))*-1, z:MasterValue("A13")/2},{x:(MasterValue(MasterId)*MasterValue("A10"))-(MasterValue("A10")/2), y:0, z:MasterValue("A13")/2}, true, 3000]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); }else if (MasterValue(MasterSectionId(MasterId,0))=="back"){ var payload = { command:"setCamera", arguments:[{x:(MasterValue(MasterId)*MasterValue("A10"))-(MasterValue("A10")/2), y:MasterValue("A10")+MasterValue("A9"), z:MasterValue("A13")/2},{x:(MasterValue(MasterId)*MasterValue("A10"))-(MasterValue("A10")/2), y:0, z:MasterValue("A13")/2}, true, 3000]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); } //showNextStep if (style != null){updateDoors();} else {MasterModify(MasterSectionId(MasterId,2),"open",true);} MasterModify(MasterSectionId(MasterId,2),"showthis",null); SetValShapeDiver("Bay Numbers",false); break; case "A175": //setJSONval for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["ID"] == MasterSectionId(MasterSectionId(MasterId))) { doorsWindows["doorsWindows"][i]["style"] = MasterValue(MasterId); break; } } //changeSectionNameAndClose MasterModify(MasterSectionId(MasterId),"open",false); MasterModify(MasterSectionId(MasterId),"name","Change Door/Window"); style = MasterValue(MasterId); updateDoors(); break; case "A178": updateDoors(); break; case "A179": updateDoors(); break; case "A177": updateDoors(); break; case "A185": updateDoors(); break; case "A182": for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["ID"] == MasterSectionId(MasterId)) { doorsWindows["doorsWindows"][i]["openingSide"] = MasterValue(MasterId); break; } } SetValShapeDiver("DoorsAndWindows",JSON.stringify(doorsWindows,null,0)); break; case "A183": for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["ID"] == MasterSectionId(MasterId)) { doorsWindows["doorsWindows"][i]["hingePost"] = MasterValue(MasterId); break; } } SetValShapeDiver("DoorsAndWindows",JSON.stringify(doorsWindows,null,0)); break; case "A180": for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["ID"] == MasterSectionId(MasterId)) { doorsWindows["doorsWindows"].splice(i,1); break; } } updateDoors(); MasterModify("Menu1", "close"); MasterModify(itemId,"showthis",false); break; case "A171": MasterModify("A172","showthis",true); MasterModify("A172", 'duplicate'); MasterModify("A172","showthis",false); break; case "A86": SetValShapeDiver("Ridge and Barge Flashing?",MasterValue("A86")); MasterModify("A94,A96","showthis",MasterValue("A86")); break; case "A87": SetValShapeDiver("Gutters?",MasterValue("A87")); MasterModify("A100","showthis",MasterValue("A87")); break; case "A88": SetValShapeDiver("Skylight?",MasterValue("A88")); break; case "A105": SetValShapeDiver("Corner Flashing?",MasterValue("A105")); MasterModify("A103","showthis",MasterValue("A105")); break; case "A89": SetValShapeDiver("Roof Cladding",MasterValue("A89")); break; case "A90": SetValShapeDiver("Wall Cladding",MasterValue("A90")); break; case "A91_IN": MasterModify("A190,A192,A194","showthis",false); if (doorsWindows["doorsWindows"].length > 0){ MasterModify("A194","showthis",true); for (var i =0; i < doorsWindows["doorsWindows"].length; i++){ if (doorsWindows["doorsWindows"][i]["style"] == "roller" || doorsWindows["doorsWindows"][i]["style"] == "sectional") { MasterModify("A192","showthis",true); } if (doorsWindows["doorsWindows"][i]["style"] == "steelPA" || doorsWindows["doorsWindows"][i]["style"] == "zincPA" || doorsWindows["doorsWindows"][i]["style"] == "alumPA") { MasterModify("A190","showthis",true); } } } break; case "A198": if (MasterValue("A198")){ MasterModify("A201","showthis",true); MasterFunction("A201"); MasterModify("A98,A103,A92,A94,A96,A100,A194,A190,A192","showthis",false); }else{ MasterModify("A201","showthis",false); MasterModify("A98,A103,A92,A94,A96,A100,A194,A190,A192","showthis",true); MasterFunction("A99,A104,A93,A95,A97,A101,A195,A191,A193"); } break; case "A201": SetValShapeDiver("Wall Color",MasterValue("A201")); SetValShapeDiver("Corner Color",MasterValue("A201")); SetValShapeDiver("Roof Color",MasterValue("A201")); SetValShapeDiver("Barge Color",MasterValue("A201")); SetValShapeDiver("Ridge Color",MasterValue("A201")); SetValShapeDiver("Gutter Color",MasterValue("A201")); SetValShapeDiver("Doors Flashing Color",MasterValue("A201")); SetValShapeDiver("PA Doors Color",MasterValue("A201")); SetValShapeDiver("Roller/Sectional Doors Color",MasterValue("A201")); break; case "A99": SetValShapeDiver("Wall Color",MasterValue("A99")); break; case "A104": SetValShapeDiver("Corner Color",MasterValue("A104")); break; case "A93": SetValShapeDiver("Roof Color",MasterValue("A93")); break; case "A95": SetValShapeDiver("Barge Color",MasterValue("A95")); break; case "A97": SetValShapeDiver("Ridge Color",MasterValue("A97")); break; case "A101": SetValShapeDiver("Gutter Color",MasterValue("A101")); break; case "A195": SetValShapeDiver("Doors Flashing Color",MasterValue("A195")); break; case "A191": SetValShapeDiver("PA Doors Color",MasterValue("A191")); break; case "A193": SetValShapeDiver("Roller/Sectional Doors Color",MasterValue("A193")); break; case "backward": var payload = { command:"setCamera", arguments:[{x:(MasterValue("A10")*MasterValue("A11"))/2, y:0, z:(MasterValue("A10")*MasterValue("A11"))+MasterValue("A9")},{x:(MasterValue("A10")*MasterValue("A11"))/2, y:0, z:0}, true, 3000]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); break; case "left": var payload = { command:"setCamera", arguments:[{x:MasterValue("A9")*-1, y:0, z:(MasterValue("A13")/2)},{x:0, y:0, z:(MasterValue("A13")/2)}, true, 3000]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); break; case "right": var payload = { command:"setCamera", arguments:[{x:(MasterValue("A10")*MasterValue("A11"))+MasterValue("A9"), y:0, z:(MasterValue("A13")/2)},{x:(MasterValue("A10")*MasterValue("A11")), y:0, z:(MasterValue("A13")/2)}, true, 3000]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); break; case "up": var payload = { command:"setCamera", arguments:[{x:(MasterValue("A10")*MasterValue("A11"))/2, y:(MasterValue("A10")*MasterValue("A11"))+MasterValue("A9"), z:(MasterValue("A13")/2)},{x:(MasterValue("A10")*MasterValue("A11"))/2, y:0, z:(MasterValue("A13")/2)}, true, 3000]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); break; case "down": var payload = { command:"setCamera", arguments:[{x:(MasterValue("A10")*MasterValue("A11"))/2, y:((MasterValue("A10")*MasterValue("A11"))+MasterValue("A9"))*-1, z:(MasterValue("A13")/2)},{x:(MasterValue("A10")*MasterValue("A11"))/2, y:0, z:(MasterValue("A13")/2)}, true, 3000]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); break; case "backward_left_up": var payload = { command:"setCamera", arguments:[{x:MasterValue("A9")*-1, y:MasterValue('A9')+5, z:MasterValue("A13")},{x:(MasterValue("A10")*MasterValue("A11"))/2.5, y:0, z:MasterValue("A13")/2}, true, 3000]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); break; case "backward_right_down": var payload = { command:"setCamera", arguments:[{x:(MasterValue("A10")*MasterValue("A11"))+MasterValue("A9"), y:-MasterValue('A9')-5, z:MasterValue("A13")},{x:(MasterValue("A10")*MasterValue("A11"))/1.5, y:0, z:MasterValue("A13")/2}, true, 3000]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); break; default:return false;} return true;}function MasterFunction(n, source, index){ if(index >= 0) { angular.element($("#GeneralJS")).scope().MasterFunctionItem(n, source, index); } var i=n.indexOf(",")>=0?n.split(","):[n];if(i.length == 1) { return MasterFunctionLoop(i[0], source) } else { for(var o in i)MasterFunctionLoop(i[o], source) }}function InitialFunction() {var payload = {command:"restrictCamera",arguments:[2,false,1.5]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com"); var payload = {command:"restrictZoom",arguments:[1,120]}; SourceShapeDiver.postMessage(payload,"https://www.shapediver.com");}function FinalFunction() {MasterModify("A160,A186","showthis",null); MasterFunction('A8_OUT'); SetValShapeDiver("Bay Numbers",false); MasterModify("A172","showthis",true); MasterModify("A172", 'duplicate'); MasterModify("A172", 'duplicate'); MasterModify("A172", 'duplicate'); MasterModify("A172","showthis",false); //ROLLER itemId = MasterSectionId("A172",1); style = "roller"; wallValue = "front"; nextId = "A"+(Number(itemId.match(/[0-9]+/g))+1); widthId = MasterSectionId(nextId,3); heightId = MasterSectionId(nextId,4); locationXId = MasterSectionId(nextId,5); locationZId = MasterSectionId(nextId,6); openingSideId = MasterSectionId(nextId,7); hingePostId = MasterSectionId(nextId,8); MasterModify(itemId,"value",wallValue,0); MasterModify(itemId,"showthis",true,1); MasterModify(itemId,"value", "2",1); MasterModify(itemId,"showthis",true,2); MasterModify(itemId,"name","Change Door/Window",2); MasterModify(MasterSectionId(nextId,2),"value",style,0); MasterModify(itemId,"value", 3,3); MasterModify(itemId,"value", 2.9,4); MasterModify(itemId,"value", 0.3,5); doorsWindows["doorsWindows"].push({ "ID": itemId, "style": style, "wall": wallValue, "bay": 2, "location": [0.3,0], "width": 3, "height": 2.9, "openingSide": "out", "hingePost": "right", "dimensions": false, }); updateDoors(); //WD itemId = MasterSectionId("A172",2); style = "WD"; wallValue = "front"; nextId = "A"+(Number(itemId.match(/[0-9]+/g))+1); widthId = MasterSectionId(nextId,3); heightId = MasterSectionId(nextId,4); locationXId = MasterSectionId(nextId,5); locationZId = MasterSectionId(nextId,6); openingSideId = MasterSectionId(nextId,7); hingePostId = MasterSectionId(nextId,8); MasterModify(itemId,"value",wallValue,0); MasterModify(itemId,"showthis",true,1); MasterModify(itemId,"value", "1",1); MasterModify(itemId,"showthis",true,2); MasterModify(itemId,"name","Change Door/Window",2); MasterModify(MasterSectionId(nextId,2),"value",style,0); MasterModify(itemId,"value", 2.1,3); MasterModify(itemId,"value", 1.2,4); MasterModify(itemId,"value", 0.8,5); MasterModify(itemId,"value", 1,6); doorsWindows["doorsWindows"].push({ "ID": itemId, "style": style, "wall": wallValue, "bay": 1, "location": [0.8,1], "width": 2.1, "height": 1.2, "openingSide": "out", "hingePost": "right", "dimensions": false, }); updateDoors(); //PA DOOR itemId = MasterSectionId("A172",3); style = "steelPA"; wallValue = "intWall_1"; nextId = "A"+(Number(itemId.match(/[0-9]+/g))+1); widthId = MasterSectionId(nextId,3); heightId = MasterSectionId(nextId,4); locationXId = MasterSectionId(nextId,5); locationZId = MasterSectionId(nextId,6); openingSideId = MasterSectionId(nextId,7); hingePostId = MasterSectionId(nextId,8); MasterModify(itemId,"value",wallValue,0); MasterModify(itemId,"showthis",true,2); MasterModify(itemId,"name","Change Door/Window",2); MasterModify(MasterSectionId(nextId,2),"value",style,0); MasterModify(itemId,"value", 0.9,3); MasterModify(itemId,"value", 2.1,4); MasterModify(itemId,"value", 4,5); doorsWindows["doorsWindows"].push({ "ID": itemId, "style": style, "wall": wallValue, "bay": 1, "location": [4,0], "width": 0.9, "height": 2.1, "openingSide": "out", "hingePost": "right", "dimensions": false, }); updateDoors(); if (MasterValue("A189")==true){ SetValShapeDiver("DoorsAndWindows",(MasterValue("A189","name"))[0]); doorsWindows=JSON.parse((MasterValue("A189","name"))[0]); }}