Validates supports. These rules implement the IHgrRule interface and return an array that contains a constant integer value (1).
The validation rules return a constant value to verify that the software reaches the end of the rule without encountering an error. If the software does not encounter an error, the support is validated.
PipeNDValidation.cs
Description
Checks that the diameter of the selected pipe is valid for the support. This rule supports metric and imperial units. The software displays a message if the selected pipe is outside the valid range.
Input
nominalPipeDiameter - The diameter for the first selected pipe
ndTo - The maximum pipe diameter available for the support
ndFrom - The minimum pipe diameter available for the support
Output
ruleResult - 1 for successful validation. If the validation is not successful, the software displays an error message.
Example
Most SDB supports use this rule. For example, the DDS_Shoe_01 support uses the PipeNDValidation rule.
Rule_ShoeValidation.cs
Description
Checks the shoe support. The software displays a warning message in the following cases:
-
The pipe insulation thickness is greater than the shoe height.
-
The supporting structure width plus the stop gap is greater than the shoe length.
Input
insulTh - The insulation thickness of the first selected pipe
shoeHeight - The shoe height of the support
supportingSectionWidth - The width of the supporting section
shoeLength - The shoe length of the support
structConn - Determines whether the stop is connect to a pipe or a structure
stopGap - The gap between the stop and the section
Output
ruleResult - 1 for successful validation. If the validation is not successful, the software displays an error message.
Example
Most SDB supports use this rule. For example, the DDS_CmbShoe_Slide_01 support uses the ShoeValidation rule.