Check Functional Surface validity

An opening ID is an entry point used to customize business logic. The validity rules are the business rules specified to check the local validity of a functional surface based on specific criteria.

They are useful for functional surface instantiation and so, these should be created before the instantiation..

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked when using Functional Surface.

  • This opening ID is used to declare if a functional surface based on a template is valid.
  • There is one check per template.
  • The validity status can be used in connection rule
  • If there is no rule for a functional surface type , it is considered as valid

Sample

The following sample The following sample checks the local validity of a functional surface based on specific criteria.

//general Rule
// ToPlace_MIId can be used

let ToPlacePrimaryDiameter (LENGTH)


if (Parameters.HasAttribute("ToPlace_Primary_Diameter") == true) {
set ToPlacePrimaryDiameter=Parameters.GetAttributeLENGTH("ToPlace_Primary_Diameter")

  Validation = False
if (ToPlacePrimaryDiameter==20mm)
  Validation = True