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, or using PipeLength * LinearWeight as a last fallback. Customizing this rule lets you to implement another way to compute the weight of pipes. 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 } else { let PipingPipeObject(Piping_Pipe) set PipingPipeObject = ThisObject.Reference if (PipingPipeObject <> NULL) { Result = PipingPipeObject.V_Length * PipingPipeObject.V_Linearweight } } } //Message("Result: ", Result) |