Fluidic (Piping/HVAC) BOM Table Template Business Rule (Piping_Pipe_Weight)

An opening ID is an entry point used to customize business logic. The Piping_Pipe_Weight business rule opening ID is used to compute the weight property of a Piping_Pipe.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

This 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)