General InformationThis opening ID is invoked during the creation of a Piping or a HVAC BOM table template. It computes the weight using Computed Weight property, or Declared Weight as fallback. Customizing this rule lets you to implement another way to compute the weight of parts. Sample
Result = NULL let ComputedWeight(WCGEquivalentComputedExt) set ComputedWeight = ThisObject.Reference if (ComputedWeight <> NULL) { Result = ComputedWeight.V_WCG_Mass } else { let DeclaredWeight(WCGEquivalentDeclaredWeightExt)set DeclaredWeight = ThisObject.Reference if (DeclaredWeight <> NULL) { Result = DeclaredWeight.V_WCG_Declared_Mass } } //Message("Result: ", Result) |