Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r169 -r175 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 169) +++ development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 175) @@ -9,7 +9,7 @@ "source": "/CB_VW_ConfiguratorTAB/CB_VW_Colours/C_MVX_BaseColour" }, "InternalWidth": { - "default": 564, + "default": 564.01, "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_InternalWidth" }, "BoxSystemHeight": { @@ -42,7 +42,7 @@ }, "BackHeight": { "default": "None", - "source": "/CB_VW_ConfiguratorTAB/CB_VW_Afwerking/C_MVX_BackHeight" + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_MVX_BackHeight" }, "BackHeightInMM": { "default": "83", @@ -60,6 +60,58 @@ "default": 0, "source": "/CB_VW_ConfiguratorTAB/CB_VW_Afwerking/C_BOX_HasSideStabiliser.Bool" }, + "IsSiphonBoxSystem": { + "default": 0, + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_IsSiphonBoxSystem.Bool" + }, + "HasSiphonCapCutOut": { + "default": 0, + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_Visu3D.HasSiphonCapCutOut" + }, + "HasDoubleCutOut": { + "default": 0, + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_CutOut.HasDoubleCutOut.Bool" + }, + "CutOutCode_Z1": { + "default": "SY_Recht_M_D240_B160", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_CutOut.Siphon-or-Sink/CB_VW_Section_NoTitle/CB_GRID_5/C_MVX_CutOutCode.Z1.Input.SY" + }, + "CutOutCode_Z2": { + "default": "SY_Recht_M_D240_B160", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_CutOut.Siphon-or-Sink/CB_VW_Section_NoTitle/CB_GRID_5/C_MVX_CutOutCode.Z2.Input.SY" + }, + "CutOutData_LeftX_Width_Customer": { + "default": 0, + "source": "/CB_VW_ConfiguratorTAB/CB_VW_CutOut.Siphon-or-Sink/CB_VW_Section_NoTitle/CB_GRID_5/C_BOX_CutOutData.LeftX.Width.Input" + }, + "CutOutData_LeftX_Width_Suggested": { + "default": 520, + "source": "/CB_VW_ConfiguratorTAB/CB_VW_CutOut.Siphon-or-Sink/CB_VW_Section_NoTitle/CB_GRID_5/C_BOX_SugWd.LeftX.SuggestedWidth" + }, + "CutOutData_CenterM_Width_Customer": { + "default": 0, + "source": "/CB_VW_ConfiguratorTAB/CB_VW_CutOut.Siphon-or-Sink/CB_VW_Section_NoTitle/CB_GRID_5/C_BOX_CutOutData.CenterM.Width.Input" + }, + "CutOutData_CenterM_Width_Suggested": { + "default": 97, + "source": "/CB_VW_ConfiguratorTAB/CB_VW_CutOut.Siphon-or-Sink/CB_VW_Section_NoTitle/CB_GRID_5/C_BOX_SugWd.CenterM.SuggestedWidth" + }, + "CutOutData_CapZ1_Width": { + "default": 160, + "source": "/CB_VW_ConfiguratorTAB/CB_VW_CutOut.Siphon-or-Sink/CB_VW_Section_NoTitle/CB_GRID_5/C_BOX_CutOutData.CapZ1.Width_ReadOnly" + }, + "CutOutData_CapZ2_Width": { + "default": 160, + "source": "/CB_VW_ConfiguratorTAB/CB_VW_CutOut.Siphon-or-Sink/CB_VW_Section_NoTitle/CB_GRID_5/C_BOX_CutOutData.CapZ2.Width_ReadOnly" + }, + "SuggestedWidthIsApplicable": { + "default": 0, + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_SugWd.IsApplicable.Bool" + }, + "HasValidDimensions": { + "default": 0, + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_Visu3D.HasValidDimensions" + }, "BomComponents": { "default": "##################################################################################################################", "source": "###################################################################################################################" @@ -99,7 +151,8 @@ }, "var": [ "VARSECTIE = '**************************************GENERAL*****************************************' ", - "InternalWidthFor3D = InternalWidth", + "IsValid_CabinetWidth = is(IsSiphonBoxSystem, 1) ? ((is(HasValidDimensions, 1) or is(SuggestedWidthIsApplicable, 1)) ? 'true' : 'false') : is(InternalWidth, 564.01) ? 'false' : 'true'", + "InternalWidthFor3D = is(IsValid_CabinetWidth, 'true') ? InternalWidth : is(IsSiphonBoxSystem, 1) ? 1200 : 564", "BaseWidth = InternalWidthFor3D - 51", "BaseDepthForWood = BoxSystemDepth - 26", "BaseDepthForSteel = BoxSystemDepth - 22", @@ -146,6 +199,12 @@ "SideStabiliserSynchroLinkageOrigin = ((BaseWidth - SideStabiliserSynchroLinkageLength) / 2) - 6", "VARSECTIE = '**************************************BACK STEEL*****************************************' ", "BackSteelVisualCorrectionZ = 2", + "VARSECTIE = '***************************************SIPHON CAP****************************************' ", + "SiphonCap_Depth = 248", + "CutOutData_LeftX_Width = (CutOutData_LeftX_Width_Customer > 0) ? CutOutData_LeftX_Width_Customer : CutOutData_LeftX_Width_Suggested", + "CutOutData_CenterM_Width = (CutOutData_CenterM_Width_Customer > 0) ? CutOutData_CenterM_Width_Customer : CutOutData_CenterM_Width_Suggested", + "SiphonCap_CenterPositionX_Z1 = CutOutData_LeftX_Width + (CutOutData_CapZ1_Width / 2)", + "SiphonCap_CenterPositionX_Z2 = CutOutData_LeftX_Width + CutOutData_CapZ1_Width + CutOutData_CenterM_Width + (CutOutData_CapZ2_Width / 2)", "VARSECTIE = '***************************************GENERATE PRODUCTID****************************************' ", "ProductId_BoxSystemSide = concat('P-VIS-MVX.BoxSystemSide-', SideHeight, string(BoxSystemDepth))", "ProductId_BoxCap = concat('P-VIS-MVX.BoxCap-', string(BoxSystemDepth))", @@ -160,6 +219,8 @@ "ProductId_Frontpanel = P-VIS-MVX.FrontPanel-Contour", "ProductId_Runner = concat('P-VIS-MVX.Runner-', string(BoxSystemDepth))", "ProductId_BackSteel = concat('P-VIS-MVX.BackSteel-', BackHeightFor3D, string(InternalWidthFor3D))", + "ProductId_SiphonCap_Z1 = concat('P-VIS-MVX.SiphonCap-', CutOutCode_Z1)", + "ProductId_SiphonCap_Z2 = concat('P-VIS-MVX.SiphonCap-', CutOutCode_Z2)", "VARSECTIE = '***************************************EINDE****************************************' " ] }, @@ -180,6 +241,38 @@ "z": "BaseDepth" } } + }, + { + "comment": "Cutout SiphonCap Left", + "if": "is(IsSiphonBoxSystem, 1)", + "cube": { + "center": { + "x": "SiphonCap_CenterPositionX_Z1", + "y": "ChipBoardThickness/2", + "z": "-(BaseDepth + ChipBoardThickness + 8 - (SiphonCap_Depth/2))" + }, + "size": { + "x": "CutOutData_CapZ1_Width + 6", + "y": "ChipBoardThickness", + "z": "SiphonCap_Depth" + } + } + }, + { + "comment": "Cutout SiphonCap Right", + "if": "is(HasDoubleCutOut, 1)", + "cube": { + "center": { + "x": "SiphonCap_CenterPositionX_Z2", + "y": "ChipBoardThickness/2", + "z": "-(BaseDepth + ChipBoardThickness + 8 - (SiphonCap_Depth/2))" + }, + "size": { + "x": "CutOutData_CapZ2_Width + 6", + "y": "ChipBoardThickness", + "z": "SiphonCap_Depth" + } + } } ] }, @@ -434,6 +527,38 @@ "z": "ChipBoardThickness" } } + }, + { + "comment": "Cutout SiphonCap Left", + "if": "is(IsSiphonBoxSystem, 1)", + "cube": { + "center": { + "x": "SiphonCap_CenterPositionX_Z1", + "y": "BackHeightInMM / 2", + "z": "-(BaseDepth + (ChipBoardThickness / 2))" + }, + "size": { + "x": "CutOutData_CapZ1_Width + 18", + "y": "BackHeightInMM", + "z": "ChipBoardThickness" + } + } + }, + { + "comment": "Cutout SiphonCap Right", + "if": "is(HasDoubleCutOut, 1)", + "cube": { + "center": { + "x": "SiphonCap_CenterPositionX_Z2", + "y": "BackHeightInMM / 2", + "z": "-(BaseDepth + (ChipBoardThickness / 2))" + }, + "size": { + "x": "CutOutData_CapZ2_Width + 18", + "y": "BackHeightInMM", + "z": "ChipBoardThickness" + } + } } ] }, @@ -972,6 +1097,36 @@ "z": "-(BaseDepth + BackSteelVisualCorrectionZ)" }, "uv": "@cube scale(0.01)" + }, + { + "comment": "SiphonCap Left", + "if": "is(IsSiphonBoxSystem, 1)", + "geometry": { + "pass": true, + "url": "ProductId_SiphonCap_Z1" + }, + "material": "MaterialId_BoxSystemColour", + "translate": { + "x": "SiphonCap_CenterPositionX_Z1", + "y": "ChipBoardThickness", + "z": "-(BaseDepth + ChipBoardThickness + 1 - SiphonCap_Depth)" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "SiphonCap Right", + "if": "is(HasDoubleCutOut, 1)", + "geometry": { + "pass": true, + "url": "ProductId_SiphonCap_Z2" + }, + "material": "MaterialId_BoxSystemColour", + "translate": { + "x": "SiphonCap_CenterPositionX_Z2", + "y": "ChipBoardThickness", + "z": "-(BaseDepth + ChipBoardThickness + 1 - SiphonCap_Depth)" + }, + "uv": "@cube scale(0.01)" } ] } \ No newline at end of file