General InformationThis opening ID is invoked when using Mechanical Interface.
SampleThe following sample checks the local validity of a mechanical interface based on specific criteria. They are useful for mechanical interface instantiation and so, these should be created before the instantiation. For example, to instantiate a mechanical interface template for a bushing, you can specify a rule to enable a valid instantiation if the inner diameter is within a certain range. The following is a sample rule to check the validity for instantiation only if the primary diameter of the instance is 20 mm :
let ToPlacePrimaryDiameter (LENGTH)
if (Parameters.HasAttribute("ToPlace_Primary_Diameter") == true) {
set ToPlacePrimaryDiameter=Parameters.GetAttributeReal("ToPlace_Primary_Diameter")
Validation = False
if (ToPlacePrimaryDiameter==20mm)
Validation = True
| |||||||