Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r171 -r173 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 171) +++ development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 173) @@ -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,37 +60,49 @@ "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_ViewSection3/CB_VW_NeededFor3D/C_MVX_CutOutCode.Z1" + "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_B300", - "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_MVX_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" }, - "HasDoubleCutOut": { - "default": 1, - "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_CutOut_HasDoubleCutOut.Bool" + "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" }, - "HasSiphonCapCutOut": { - "default": 1, - "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_Visu3D.HasSiphonCapCutOut" + "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_LeftX_Width": { - "default": 250, - "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_CutOutData.LeftX.Width" + "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": { - "default": 100, - "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_CutOutData.CenterM.Width" + "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_ViewSection3/CB_VW_NeededFor3D/C_BOX_CutOutData.CapZ1.Width" + "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": 300, - "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_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" }, "BomComponents": { "default": "##################################################################################################################", @@ -180,6 +192,8 @@ "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****************************************' ", @@ -221,17 +235,17 @@ }, { "comment": "Cutout SiphonCap Left", - "if": "is(HasSiphonCapCutOut, 1)", + "if": "is(IsSiphonBoxSystem, 1)", "cube": { "center": { "x": "SiphonCap_CenterPositionX_Z1", "y": "ChipBoardThickness/2", - "z": "-(BaseDepth - ((SiphonCap_Depth - 6)/2))" + "z": "-(BaseDepth + ChipBoardThickness + 8 - (SiphonCap_Depth/2))" }, "size": { - "x": "CutOutData_CapZ1_Width + 4", + "x": "CutOutData_CapZ1_Width + 6", "y": "ChipBoardThickness", - "z": "SiphonCap_Depth - 6" + "z": "SiphonCap_Depth" } } }, @@ -242,12 +256,12 @@ "center": { "x": "SiphonCap_CenterPositionX_Z2", "y": "ChipBoardThickness/2", - "z": "-(BaseDepth - ((SiphonCap_Depth - 6)/2))" + "z": "-(BaseDepth + ChipBoardThickness + 8 - (SiphonCap_Depth/2))" }, "size": { - "x": "CutOutData_CapZ2_Width + 4", + "x": "CutOutData_CapZ2_Width + 6", "y": "ChipBoardThickness", - "z": "SiphonCap_Depth - 6" + "z": "SiphonCap_Depth" } } } @@ -507,15 +521,15 @@ }, { "comment": "Cutout SiphonCap Left", - "if": "is(HasSiphonCapCutOut, 1)", + "if": "is(IsSiphonBoxSystem, 1)", "cube": { "center": { "x": "SiphonCap_CenterPositionX_Z1", "y": "BackHeightInMM / 2", "z": "-(BaseDepth + (ChipBoardThickness / 2))" }, "size": { - "x": "CutOutData_CapZ1_Width + 4", + "x": "CutOutData_CapZ1_Width + 18", "y": "BackHeightInMM", "z": "ChipBoardThickness" } @@ -531,7 +545,7 @@ "z": "-(BaseDepth + (ChipBoardThickness / 2))" }, "size": { - "x": "CutOutData_CapZ2_Width + 4", + "x": "CutOutData_CapZ2_Width + 18", "y": "BackHeightInMM", "z": "ChipBoardThickness" } @@ -1077,7 +1091,7 @@ }, { "comment": "SiphonCap Left", - "if": "is(HasSiphonCapCutOut, 1)", + "if": "is(IsSiphonBoxSystem, 1)", "geometry": { "pass": true, "url": "ProductId_SiphonCap_Z1" @@ -1086,7 +1100,7 @@ "translate": { "x": "SiphonCap_CenterPositionX_Z1", "y": "ChipBoardThickness", - "z": "-(BaseDepth - SiphonCap_Depth)" + "z": "-(BaseDepth + ChipBoardThickness + 1 - SiphonCap_Depth)" }, "uv": "@cube scale(0.01)" }, @@ -1097,11 +1111,11 @@ "pass": true, "url": "ProductId_SiphonCap_Z2" }, - "material": "MT_Debug_ORANGE", + "material": "MaterialId_BoxSystemColour", "translate": { "x": "SiphonCap_CenterPositionX_Z2", "y": "ChipBoardThickness", - "z": "-(BaseDepth - SiphonCap_Depth)" + "z": "-(BaseDepth + ChipBoardThickness + 1 - SiphonCap_Depth)" }, "uv": "@cube scale(0.01)" }