RULE compound_features_of_equal_type FOR (compound_feature, shape_aspect_relationship); WHERE wr1: SIZEOF ( QUERY ( sar <* shape_aspect_relationship | ( sar.name = 'compound feature ordering' ) AND (( SIZEOF ( QUERY ( fcr <* USEDIN ( sar. relating_shape_aspect , 'AUTOMOTIVE_DESIGN.SHAPE_ASPECT_RELATIONSHIP.RELATED_SHAPE_ASPECT' ) | ( 'AUTOMOTIVE_DESIGN.'+ 'FEATURE_COMPONENT_RELATIONSHIP' IN TYPEOF ( fcr ) ) AND ( 'AUTOMOTIVE_DESIGN.'+ 'COMPOSITE_SHAPE_ASPECT' IN TYPEOF ( fcr. relating_shape_aspect ) ) AND ( fcr. relating_shape_aspect.name IN [ 'compound feature in solid' , 'compound feature in panel' ] ) ) ) =0 ) AND ( SIZEOF ( QUERY ( fcr <* USEDIN ( sar. related_shape_aspect , 'AUTOMOTIVE_DESIGN.SHAPE_ASPECT_RELATIONSHIP.RELATED_SHAPE_ASPECT' ) | ( 'AUTOMOTIVE_DESIGN.'+ 'FEATURE_COMPONENT_RELATIONSHIP' IN TYPEOF ( fcr ) ) AND ( 'AUTOMOTIVE_DESIGN.'+ 'COMPOSITE_SHAPE_ASPECT' IN TYPEOF ( fcr. relating_shape_aspect ) ) AND ( fcr. relating_shape_aspect.name IN [ 'compound feature in solid' , 'compound feature in panel' ] ) ) ) =0 )) ) ) =0; END_RULE; -- compound_features_of_equal_type |
public class RCompound_features_of_equal_type public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |