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

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

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