Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r143 -r144 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 143) +++ development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 144) @@ -52,6 +52,10 @@ "default": "ET", "source": "/CB_VW_ConfiguratorTAB/CB_VW_Afwerking/C_BOX_FrontAttachment" }, + "FrontType": { + "default": "Gallery", + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_FrontType" + }, "BomComponents": { "default": "##################################################################################################################", "source": "###################################################################################################################" @@ -80,6 +84,8 @@ "ChipBoardThickness = 16", "GlassLengthDesignElementSide = BoxSystemDepth - 90", "BoxSystemCenterWidth = BaseWidth / 2", + "Side_HeightMatrix = ['N', '60.5'; 'M', '83'; 'K', '121'; 'E', '184']", + "SideHeightInMm = lookup(Side_HeightMatrix, [['=', string(BoxSystemHeight)], ['#', 'height']])", "BackWidth = InternalWidthFor3D - 51", "BackHeightFor3D = is(BackHeight, 'None') ? BoxSystemHeight : BackHeight", "VARSECTIE = '**************************************MATERIALID*****************************************' ", @@ -89,13 +95,19 @@ "VARSECTIE = '**************************************FRONT ATTACHMENT*****************************************' ", "ShowFrontAttachmentBottom = is(IsInnerBoxSystem, '1') ? 'false' : 'true' ", "ShowFrontAttachmentTop = is(IsInnerBoxSystem, '1') ? 'false' : is(BoxSystemHeight, 'E') ? 'true' : 'false' ", + "VARSECTIE = '**************************************FRONT FIXING*****************************************' ", + "FrontFixing_Suffix_For_ProductId = is(BoxSystemHeight, 'E') ? ((is(FrontType, 'GlassLow') or is(FrontType, 'GlassHigh')) ? 'DesignElement' : 'Gallery') : ''", + "ShowFrontFixingAdapter = (is(IsInnerBoxSystem, '1') and is(BoxSystemHeight, 'E') and is(FrontType, 'GlassLow')) ? 'true' : 'false'", "VARSECTIE = '***************************************GENERATE PRODUCTID****************************************' ", "ProductId_BoxSystemSide = concat('P-VIS-MVX.BoxSystemSide-', SideHeight, string(BoxSystemDepth))", "ProductId_BoxCap = concat('P-VIS-MVX.BoxCap-', string(BoxSystemDepth))", "ProductId_GallerySide = concat('P-VIS-MVX.GallerySide-', string(BoxSystemDepth))", "ProductId_BackFixing = concat('P-VIS-MVX.BackFixing-', BackHeightFor3D)", "ProductId_FrontAttachmentBottom = concat('P-VIS-MVX.FrontAttachmentBottom-', FrontAttachment)", "ProductId_FrontAttachmentTop = concat('P-VIS-MVX.FrontAttachmentTop-', FrontAttachment)", + "ProductId_FrontFixing = concat('P-VIS-MVX.FrontFixing-', BoxSystemHeight, FrontFixing_Suffix_For_ProductId)", + "ProductId_CoverCapFrontFixingInner = concat('P-VIS-MVX.CoverCapFrontFixingInner-', BoxSystemHeight, FrontFixing_Suffix_For_ProductId)", + "ProductId_CoverCapFrontFixingOuter = concat('P-VIS-MVX.CoverCapFrontFixingOuter-', BoxSystemHeight)", "VARSECTIE = '***************************************EINDE****************************************' " ] }, @@ -450,6 +462,122 @@ "y": "174.5" }, "uv": "@cube scale(0.01)" + }, + { + "comment": "FrontFixing Left", + "if": "is(IsInnerBoxSystem, '1')", + "geometry": { + "pass": true, + "url": "ProductId_FrontFixing" + }, + "material": "MaterialId_BoxSystemColour", + "translate": { + "x": "-5", + "y": "13.5" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "FrontFixing Right", + "if": "is(IsInnerBoxSystem, '1')", + "geometry": { + "pass": true, + "url": "ProductId_FrontFixing" + }, + "material": "MaterialId_BoxSystemColour", + "mirror": "x", + "translate": { + "x": "BaseWidth + 5", + "y": "13.5" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "CoverCapFrontFixingOuter Left", + "if": "is(IsInnerBoxSystem, '1')", + "geometry": { + "pass": true, + "url": "ProductId_CoverCapFrontFixingOuter" + }, + "material": "MaterialId_BoxSystemColour", + "translate": { + "x": "-5", + "y": "13.5" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "CoverCapFrontFixingOuter Right", + "if": "is(IsInnerBoxSystem, '1')", + "geometry": { + "pass": true, + "url": "ProductId_CoverCapFrontFixingOuter" + }, + "material": "MaterialId_BoxSystemColour", + "mirror": "x", + "translate": { + "x": "BaseWidth + 5", + "y": "13.5" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "CoverCapFrontFixingInner Left", + "if": "is(IsInnerBoxSystem, '1')", + "geometry": { + "pass": true, + "url": "ProductId_CoverCapFrontFixingInner" + }, + "material": "MaterialId_BoxSystemColour", + "translate": { + "x": "-5", + "y": "13.5" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "CoverCapFrontFixingInner Right", + "if": "is(IsInnerBoxSystem, '1')", + "geometry": { + "pass": true, + "url": "ProductId_CoverCapFrontFixingInner" + }, + "material": "MaterialId_BoxSystemColour", + "mirror": "x", + "translate": { + "x": "BaseWidth + 5", + "y": "13.5" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "FrontFixingAdapter Left", + "if": "is(ShowFrontFixingAdapter, 'true')", + "geometry": { + "pass": true, + "url": "P-VIS-MVX.FrontFixingAdapter" + }, + "material": "MaterialId_BoxSystemColour", + "translate": { + "x": "-5", + "y": "13.5" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "FrontFixingAdapter Right", + "if": "is(ShowFrontFixingAdapter, 'true')", + "geometry": { + "pass": true, + "url": "P-VIS-MVX.FrontFixingAdapter" + }, + "material": "MaterialId_BoxSystemColour", + "mirror": "x", + "translate": { + "x": "BaseWidth + 5", + "y": "13.5" + }, + "uv": "@cube scale(0.01)" } ] } \ No newline at end of file