Index: development/Visualisatie_3D/Parametric_3D_models/TBX.json =================================================================== diff -u -r139 -r141 --- development/Visualisatie_3D/Parametric_3D_models/TBX.json (.../TBX.json) (revision 139) +++ development/Visualisatie_3D/Parametric_3D_models/TBX.json (.../TBX.json) (revision 141) @@ -4,12 +4,16 @@ "default": "##################################################################################################################", "source": "###################################################################################################################" }, + "Application": { + "default": "L", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Tandembox/C_TBX_Application.View" + }, "BaseColour": { "default": "WI", "source": "/CB_VW_ConfiguratorTAB/CB_VW_Colours/C_TBX_BaseColour" }, "InternalWidth": { - "default": 564, + "default": 564.01, "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_InternalWidth" }, "BoxSystemHeight": { @@ -44,6 +48,58 @@ "default": "None", "source": "/CB_VW_ConfiguratorTAB/CB_VW_Afwerking/C_TBX_BackHeight.Input" }, + "SugWidthIsApplicable": { + "default": 0, + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_SugWd.IsApplicable.Bool" + }, + "Visu3DHasValidDimensions": { + "default": 0, + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_Visu3D.HasValidDimensions" + }, + "HasDoubleCutOut": { + "default": 0, + "source": "/CB_VW_ViewSection3/CB_VW_Invisibles/C_BOX_CutOut.HasDoubleCutOut.Bool" + }, + "IsSiphon": { + "default": 0, + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_IsSiphonBoxSystem.Bool" + }, + "IsSink": { + "default": 0, + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_IsSink.Bool" + }, + "CutOutCode_Z1": { + "default": "SY_Square_M_D240_B160", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_CutOut.Siphon-or-Sink/CB_VW_Section_NoTitle/CB_GRID_5/C_TBX_CutOutCode.Z1" + }, + "CutOutCode_Z2": { + "default": "SY_Square_M_D240_B160", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_CutOut.Siphon-or-Sink/CB_VW_Section_NoTitle/CB_GRID_5/C_TBX_CutOutCode.Z2" + }, + "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" + }, "DND_CoverCapOuter": { "default": 0, "source": "/CB_VW_ConfiguratorTAB/CB_VW_NietMeeleveren/C_TBX_DND.CoverCap.Bool" @@ -78,12 +134,15 @@ }, "var": [ "VARSECTIE = '**************************************GENERAL*****************************************' ", - "BaseWidth = InternalWidth - 75", + "CabinetWidth_IsValid = is(IsSiphon, 1) ? ( (is(SugWidthIsApplicable, 1) or is(Visu3DHasValidDimensions, 1) ) ? 1 : 0 ) : is(InternalWidth, 564.01) ? 0 : 1", + "InternalWidthFor3D = is(CabinetWidth_IsValid, 1) ? InternalWidth : is(IsSink, 1) ? 564 : is(IsSiphon, 1) ? 1200 : 564", + "BaseWidth = InternalWidthFor3D - 75", "BaseDepth = BoxSystemDepth - 24", "ChipBoardThickness = 16", "SideDistanceBetweenBaseAndCabinetWall = 37.5", + "DistanceInsideCabinetToInsideBoxSystem = 37", "TranslationDrawersideRight = BaseWidth", - "BackWidth = InternalWidth - 87", + "BackWidth = InternalWidthFor3D - 87", "BoxSystemCenterWidth = BaseWidth/2", "BackHeightFor3D = is(BackHeight, 'None') ? BoxSystemHeight : BackHeight", "VARSECTIE = '***************************************GallerySide****************************************' ", @@ -102,6 +161,13 @@ "FrontAttachment_HeightTranslation = -ChipBoardThickness - 9 + FrontAttachment_HeightFromCabinetBase", "FrontAttachment_HeightTranslationKPositionPiece = FrontAttachment_HeightTranslation + 32 + 32", "FrontAttachment_SideTranslation = -SideDistanceBetweenBaseAndCabinetWall + 15.5", + "VARSECTIE = '***************************************SIPHON CUTOUT****************************************' ", + "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", + "X_position_center_Z1 = (CutOutData_CapZ1_Width/2) + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem", + "X_position_center_Z2 = CutOutData_CapZ1_Width + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem + CutOutData_CenterM_Width + (CutOutData_CapZ2_Width/2)", + "Z_position_center_cutout = -(BaseDepth - (248/2) + ChipBoardThickness + 8)", + "Z_position_center_cutout_back = -(BaseDepth - (248/2) + ChipBoardThickness + 2)", "VARSECTIE = '***************************************MATERIAL / DO NOT DELIVER****************************************' ", "MaterialId_ChipBoard = concat('MT_ChipBoard_', BaseColour)", "MaterialId_BoxSystemColour = concat('MT_BLUM_', BoxSystemColour)", @@ -117,6 +183,8 @@ "ProductId_Runner = concat('P-VIS-TBX.Runner-', string(BoxSystemDepth))", "ProductId_FrontAttachment = concat('P-VIS-TBX.FrontAttachment-', string(FrontAttachment))", "ProductId_FrontAttachmentKPositionPiece = 'P-VIS-TBX.FrontAttachment-PositionPiece' ", + "ProductId_SiphonCapLeft = concat('P-VIS-TBX.SiphonCap-', string(CutOutCode_Z1) )", + "ProductId_SiphonCapRight = concat('P-VIS-TBX.SiphonCap-', string(CutOutCode_Z2) )", "VARSECTIE = '***************************************EINDE****************************************' " ] }, @@ -137,6 +205,38 @@ "z": "BaseDepth" } } + }, + { + "comment": "Cutout SiphonCap Bottom Left", + "if": "is(IsSiphon, 1)", + "cube": { + "center": { + "x": "X_position_center_Z1", + "y": "-ChipBoardThickness/2", + "z": "Z_position_center_cutout" + }, + "size": { + "x": "CutOutData_CapZ1_Width + 4", + "y": 50, + "z": 248 + } + } + }, + { + "comment": "Cutout SiphonCap Bottom Right", + "if": "is(HasDoubleCutOut, 1)", + "cube": { + "center": { + "x": "X_position_center_Z2", + "y": "-ChipBoardThickness/2", + "z": "Z_position_center_cutout" + }, + "size": { + "x": "CutOutData_CapZ2_Width + 4", + "y": 50, + "z": 248 + } + } } ] }, @@ -256,6 +356,38 @@ "z": "ChipBoardThickness" } } + }, + { + "comment": "Siphon Cutout Left", + "if": "is(IsSiphon, 1)", + "cube": { + "center": { + "x": "X_position_center_Z1", + "y": "-ChipBoardThickness/2", + "z": "Z_position_center_cutout_back" + }, + "size": { + "x": "CutOutData_CapZ1_Width + 18", + "y": 500, + "z": 500 + } + } + }, + { + "comment": "Siphon Cutout Right", + "if": "is(HasDoubleCutOut, 1)", + "cube": { + "center": { + "x": "X_position_center_Z2", + "y": "-ChipBoardThickness/2", + "z": "Z_position_center_cutout_back" + }, + "size": { + "x": "CutOutData_CapZ2_Width + 18", + "y": 500, + "z": 500 + } + } } ] }, @@ -357,6 +489,36 @@ "x": "BaseWidth - FrontAttachment_SideTranslation", "y": "FrontAttachment_HeightTranslationKPositionPiece" } + }, + { + "comment": "SiphonCap Left", + "if": "is(IsSiphon, 1)", + "geometry": { + "pass": true, + "url": "ProductId_SiphonCapLeft" + }, + "translate": { + "x": "X_position_center_Z1", + "y": 0, + "z": "-(BaseDepth - 248 + ChipBoardThickness + 1)" + }, + "material": "MaterialId_BoxSystemColour", + "uv": "@cube scale(0.01)" + }, + { + "comment": "SiphonCap Right", + "if": "is(HasDoubleCutOut, 1)", + "geometry": { + "pass": true, + "url": "ProductId_SiphonCapRight" + }, + "translate": { + "x": "X_position_center_Z2", + "y": 0, + "z": "-(BaseDepth - 248 + ChipBoardThickness + 1)" + }, + "material": "MaterialId_BoxSystemColour", + "uv": "@cube scale(0.01)" } ] } \ No newline at end of file