Index: development/Visualisatie_3D/Parametric_3D_models/TBX.json =================================================================== diff -u -r137 -r139 --- development/Visualisatie_3D/Parametric_3D_models/TBX.json (.../TBX.json) (revision 137) +++ development/Visualisatie_3D/Parametric_3D_models/TBX.json (.../TBX.json) (revision 139) @@ -36,6 +36,10 @@ "default": "84", "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_BackHeightInMm" }, + "FrontAttachment": { + "default": "D", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Afwerking/C_TBX_FrontAttachment" + }, "BackHeight": { "default": "None", "source": "/CB_VW_ConfiguratorTAB/CB_VW_Afwerking/C_TBX_BackHeight.Input" @@ -48,6 +52,10 @@ "default": 0, "source": "/CB_VW_ConfiguratorTAB/CB_VW_NietMeeleveren/C_BOX_DND.Runner.Bool" }, + "DND_FrontAttachment": { + "default": 0, + "source": "/CB_VW_ConfiguratorTAB/CB_VW_NietMeeleveren/C_BOX_DND.FrontAttachment.Bool" + }, "BomComponents": { "default": "##################################################################################################################", "source": "###################################################################################################################" @@ -73,33 +81,42 @@ "BaseWidth = InternalWidth - 75", "BaseDepth = BoxSystemDepth - 24", "ChipBoardThickness = 16", + "SideDistanceBetweenBaseAndCabinetWall = 37.5", "TranslationDrawersideRight = BaseWidth", "BackWidth = InternalWidth - 87", "BoxSystemCenterWidth = BaseWidth/2", "BackHeightFor3D = is(BackHeight, 'None') ? BoxSystemHeight : BackHeight", "VARSECTIE = '***************************************GallerySide****************************************' ", "GallerySide_HeightMatrix = ['B', '118.5'; 'C', '150.5'; 'D', '182.5']", "GallerySide_HeightTranslation = lookup(GallerySide_HeightMatrix, [['=', string(BoxSystemHeight)], ['#', 'distance']])", - "GallerySide_SideTranslation = -37.5 + 15.5", + "GallerySide_SideTranslation = -SideDistanceBetweenBaseAndCabinetWall + 15.5", "ShowGallerySide = is(BoxSystemHeight, SideHeight) ? 0 : 1", "VARSECTIE = '***************************************BackFixing****************************************' ", "BackFixing_HeightMatrix = ['N', '22'; 'M', '20'; 'K', '22'; 'C', '39'; 'D', '8'; 'B', '39']", "BackFixing_HeightTranslationLookup = lookup(BackFixing_HeightMatrix, [['=', string(BackHeightFor3D)], ['#', 'distance']])", "BackFixing_HeightTranslation = (BackHeightInMM - ChipBoardThickness) - BackFixing_HeightTranslationLookup.distance", "BackFixing_SideWaysTranslation = (87 - 75) / 2 + 9", "BackFixing_BackTranslation = -BaseDepth - ChipBoardThickness", + "VARSECTIE = '***************************************FrontAttachment****************************************' ", + "FrontAttachment_HeightFromCabinetBase = is(SideHeight, 'N') ? 32.5 : 47.5", + "FrontAttachment_HeightTranslation = -ChipBoardThickness - 9 + FrontAttachment_HeightFromCabinetBase", + "FrontAttachment_HeightTranslationKPositionPiece = FrontAttachment_HeightTranslation + 32 + 32", + "FrontAttachment_SideTranslation = -SideDistanceBetweenBaseAndCabinetWall + 15.5", "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' ", "VARSECTIE = '***************************************GENERATE PRODUCTID****************************************' ", "ProductId_BoxSystemSide = concat('P-VIS-TBX.BoxSystemSide-', string(SideHeight), string(BoxSystemDepth))", "ProductId_CoverCapsOuter = concat('P-VIS-TBX.CoverCapsOuter-', string(SideHeight))", "ProductId_GallerySide = concat('P-VIS-TBX.GallerySide-', string(BoxSystemDepth))", "ProductId_GallerySideFixing = 'P-VIS-TBX.GallerySideFixing' ", "ProductId_BackFixing = concat('P-VIS-TBX.BackFixing-', string(BackHeightFor3D))", "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' ", "VARSECTIE = '***************************************EINDE****************************************' " ] }, @@ -290,6 +307,56 @@ "translate": { "x": "BaseWidth" } + }, + { + "comment": "FrontAttachment Left", + "geometry": { + "pass": true, + "url": "ProductId_FrontAttachment" + }, + "material": "MaterialId_FrontAttachment", + "translate": { + "x": "FrontAttachment_SideTranslation", + "y": "FrontAttachment_HeightTranslation" + } + }, + { + "comment": "FrontAttachment Right", + "geometry": { + "pass": true, + "url": "ProductId_FrontAttachment" + }, + "material": "MaterialId_FrontAttachment", + "translate": { + "x": "BaseWidth - FrontAttachment_SideTranslation", + "y": "FrontAttachment_HeightTranslation" + } + }, + { + "comment": "FrontAttachment Height K Position piece Left", + "if": "is(SideHeight, 'K')", + "geometry": { + "pass": true, + "url": "ProductId_FrontAttachmentKPositionPiece" + }, + "material": "MaterialId_FrontAttachment", + "translate": { + "x": "FrontAttachment_SideTranslation", + "y": "FrontAttachment_HeightTranslationKPositionPiece" + } + }, + { + "comment": "FrontAttachment Height K Position piece Right", + "if": "is(SideHeight, 'K')", + "geometry": { + "pass": true, + "url": "ProductId_FrontAttachmentKPositionPiece" + }, + "material": "MaterialId_FrontAttachment", + "translate": { + "x": "BaseWidth - FrontAttachment_SideTranslation", + "y": "FrontAttachment_HeightTranslationKPositionPiece" + } } ] } \ No newline at end of file