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

An opening ID is an entry point used to customize business logic. The Piping_Spool_Description business rule opening ID is used by assembly isometric to compute the description property of a Piping_Spool.

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 description property depending on the BOMSpoolDescription attribute from the drawing profile.

Customizing this rule lets you to implement another way to compute the description property.

Sample

Result = NULL

let SpoolDescriptionMode(Integer)

if (Parameters.HasAttribute("BOMSpoolDescription")) 
{ SpoolDescriptionMode = Parameters.GetAttributeInteger("BOMSpoolDescription") }

else { SpoolDescriptionMode = 3 } Message("SpoolDescriptionMode: ", SpoolDescriptionMode)

let PipingSpoolObject(Piping_Spool)
set PipingSpoolObject = ThisObject.Reference

if (PipingSpoolObject <> NULL) { if (SpoolDescriptionMode == 1) { Result = PipingSpoolObject.V_Name }
 
else if (SpoolDescriptionMode == 2) { Result = PipingSpoolObject.V_Name }

else if (SpoolDescriptionMode == 3) { Result = PipingSpoolObject.V_Name } }

else { Message("Object is not a spool...") } Message("Result: ", Result)