Index: development/Visualisatie_3D/Parametric_3D_models/TBX.json =================================================================== diff -u -r172 -r181 --- development/Visualisatie_3D/Parametric_3D_models/TBX.json (.../TBX.json) (revision 172) +++ development/Visualisatie_3D/Parametric_3D_models/TBX.json (.../TBX.json) (revision 181) @@ -8,6 +8,10 @@ "default": "L", "source": "/CB_VW_ConfiguratorTAB/CB_VW_Tandembox/C_TBX_Application.View" }, + "IsInnerBoxSystem": { + "default": "0", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Tandembox/C_BOX_IsInnerBoxSystem.View" + }, "BaseColour": { "default": "WI", "source": "/CB_VW_ConfiguratorTAB/CB_VW_Colours/C_TBX_BaseColour" @@ -135,8 +139,20 @@ "BomComponents": { "default": "##################################################################################################################", "source": "###################################################################################################################" + }, + "HF_FrontPanel": { + "default": "P-VIS-TBX.FrontPanel-Contour", + "source": "dummy" + }, + "HF_GalleryFront": { + "default": "P-VIS-TBX.GalleryFront-Contour", + "source": "dummy" } }, + "import": { + "Collection_FrontPanel_Contour": "HF_FrontPanel", + "Collection_GalleryFront_Contour": "HF_GalleryFront" + }, "parts": [ { "comment": "Variabelen", @@ -193,12 +209,22 @@ "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 = '***************************************FrontPanel & GalleryFront****************************************' ", + "SubtractForFrontPanel = 132", + "SubtractForGalleryFront = 122", + "FrontPanelLength = InternalWidthFor3D - SubtractForFrontPanel", + "GalleryFrontLength = InternalWidthFor3D - SubtractForGalleryFront", + "xTranslationFrontPanel = (SubtractForFrontPanel - 75)/2", + "yTranslationFrontPanel = -ChipBoardThickness", + "xTranslationGalleryFront = (SubtractForGalleryFront - 75)/2", + "yTranslationGalleryFront = is(string(BoxSystemHeight), 'C') ? 125 : 157", "VARSECTIE = '***************************************MATERIAL / DO NOT DELIVER****************************************' ", "MaterialId_ChipBoard = concat('MT_ChipBoard_', BaseColour)", "MaterialId_BoxSystemColour = concat('MT_BLUM_', BoxSystemColour)", "MaterialId_CoverCapsOuter = is(DND_CoverCapOuter, 1) ? 'MT_DND_Options' : MaterialId_BoxSystemColour", "MaterialId_Runner = is(DND_Runner, 1) ? 'MT_DND_Options' : 'MT_BLUM_INGL' ", "MaterialId_FrontAttachment = is(DND_FrontAttachment, 1) ? 'MT_DND_Options' : 'MT_Blum_Kunststof_wit' ", + "MaterialId_DistanceTrim = is(DND_DistanceTrim, 1) ? 'MT_DND_Options' : concat('MT_Kunststof_', DistanceTrimColour)", "VARSECTIE = '***************************************GENERATE PRODUCTID****************************************' ", "ProductId_BoxSystemSide = concat('P-VIS-TBX.BoxSystemSide-', string(SideHeight), string(BoxSystemDepth))", "ProductId_CoverCapsOuter = concat('P-VIS-TBX.CoverCapsOuter-', string(SideHeight))", @@ -211,7 +237,9 @@ "ProductId_SiphonCapLeft = concat('P-VIS-TBX.SiphonCap-', string(CutOutCode_Z1) )", "ProductId_SiphonCapRight = concat('P-VIS-TBX.SiphonCap-', string(CutOutCode_Z2) )", "ProductId_SteelBack = concat('P-VIS-TBX.BackSteel-', string(InternalWidthFor3D), string(BackHeightFor3D) )", - "MaterialId_DistanceTrim = is(DND_DistanceTrim, 1) ? 'MT_DND_Options' : concat('MT_Kunststof_', DistanceTrimColour)", + "ProductId_FrontFixing = concat('P-VIS-TBX.FrontFixing-', string(BoxSystemHeight) )", + "ProductId_Frontpanel = 'P-VIS-TBX.FrontPanel' ", + "ProductId_GalleryFront = 'P-VIS-TBX.GalleryFront' ", "VARSECTIE = '***************************************EINDE****************************************' " ] }, @@ -340,7 +368,7 @@ }, { "comment": "GallerySideFixing Left", - "if": "is(ShowGallerySide, 1)", + "if": "is(ShowGallerySide, 1) and is(IsInnerBoxSystem, '0')", "geometry": { "pass": true, "url": "ProductId_GallerySideFixing" @@ -353,7 +381,7 @@ }, { "comment": "GallerySideFixing Right", - "if": "is(ShowGallerySide, 1)", + "if": "is(ShowGallerySide, 1) and is(IsInnerBoxSystem, '0')", "geometry": { "pass": true, "url": "ProductId_GallerySideFixing" @@ -469,6 +497,7 @@ }, { "comment": "FrontAttachment Left", + "if": "is(IsInnerBoxSystem, '0')", "geometry": { "pass": true, "url": "ProductId_FrontAttachment" @@ -481,6 +510,7 @@ }, { "comment": "FrontAttachment Right", + "if": "is(IsInnerBoxSystem, '0')", "geometry": { "pass": true, "url": "ProductId_FrontAttachment" @@ -493,7 +523,7 @@ }, { "comment": "FrontAttachment Height K Position piece Left", - "if": "is(SideHeight, 'K')", + "if": "is(SideHeight, 'K') and is(IsInnerBoxSystem, '0')", "geometry": { "pass": true, "url": "ProductId_FrontAttachmentKPositionPiece" @@ -506,7 +536,7 @@ }, { "comment": "FrontAttachment Height K Position piece Right", - "if": "is(SideHeight, 'K')", + "if": "is(SideHeight, 'K') and is(IsInnerBoxSystem, '0')", "geometry": { "pass": true, "url": "ProductId_FrontAttachmentKPositionPiece" @@ -595,6 +625,75 @@ "z": "DistanceTrimLength" } } + }, + { + "comment": "FronFixing Left", + "if": "is(IsInnerBoxSystem, '1')", + "geometry": { + "pass": true, + "url": "ProductId_FrontFixing" + }, + "translate": { + "x": "FrontAttachment_SideTranslation", + "y": "FrontAttachment_HeightTranslation + 1.55" + }, + "material": "MaterialId_BoxSystemColour", + "uv": "@cube scale(0.01)" + }, + { + "comment": "FronFixing Right", + "if": "is(IsInnerBoxSystem, '1')", + "geometry": { + "pass": true, + "url": "ProductId_FrontFixing" + }, + "translate": { + "x": "BaseWidth - FrontAttachment_SideTranslation", + "y": "FrontAttachment_HeightTranslation + 1.55" + }, + "mirror": "x", + "material": "MaterialId_BoxSystemColour", + "uv": "@cube scale(0.01)" + }, + { + "comment": "Parametric Frontpanel", + "if": "is(IsInnerBoxSystem, '1')", + "use": { + "from": "Collection_FrontPanel_Contour", + "part": "ProductId_Frontpanel", + "params": { + "Length": "FrontPanelLength" + } + }, + "material": "MaterialId_BoxSystemColour", + "uv": "@cube scale(0.01)", + "rotate": { + "y": 90 + }, + "translate": { + "x": "xTranslationFrontPanel", + "y": "yTranslationFrontPanel" + } + }, + { + "comment": "Parametric GalleryFront", + "if": "is(IsInnerBoxSystem, '1') and (is(string(BoxSystemHeight), 'C') or is(string(BoxSystemHeight), 'D'))", + "use": { + "from": "Collection_GalleryFront_Contour", + "part": "ProductId_GalleryFront", + "params": { + "Length": "GalleryFrontLength" + } + }, + "material": "MaterialId_BoxSystemColour", + "uv": "@cube scale(0.01)", + "rotate": { + "y": 90 + }, + "translate": { + "x": "xTranslationGalleryFront", + "y": "yTranslationGalleryFront" + } } ] } \ No newline at end of file