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