Overview Schemas Index

PHYSICAL_UNIT_3D_DESIGN_VIEW_XIM (jsdai.SPhysical_unit_3d_design_view_xim)


RULE unique_physical_unit_3d_shape_model_for_part_design_and_usage_view FOR (part_design_view, part_usage_view);
 
WHERE
          wr1:  SIZEOF  ( QUERY  ( pdv <* part_design_view | ( SIZEOF  ( QUERY  ( pu3dsm1 <* USEDIN  ( pdv , 'physical_unit_shape_with_parameters_xim.physical_unit_shape_model.shape_characterized_definition' ) | ( 'physical_unit_2d_shape_arm.physical_unit_planar_shape_model' IN  TYPEOF  ( pu3dsm1 ) ) AND  ( SIZEOF ( QUERY ( pu3dsm2 <* USEDIN ( pdv , 'physical_unit_shape_with_parameters_xim.physical_unit_shape_model.shape_characterized_definition' ) | ( 'physical_unit_2d_shape_xim.physical_unit_planar_shape_model' IN TYPEOF ( pu3dsm2 ) ) AND ( pu3dsm1 = pu3dsm2 ) ) ) > 1 ) ) ) > 0 ) ) ) = 0 ;
          wr2:  SIZEOF  ( QUERY  ( puv <* part_usage_view | ( SIZEOF  ( QUERY  ( pu3dsm1 <* USEDIN  ( puv , 'physical_unit_shape_with_parameters_xim.physical_unit_shape_model.shape_characterized_definition' ) | ( 'physical_unit_2d_shape_xim.physical_unit_planar_shape_model' IN  TYPEOF  ( pu3dsm1 ) ) AND  ( SIZEOF ( QUERY ( pu3dsm2 <* USEDIN ( puv , 'physical_unit_shape_with_parameters_xim.physical_unit_shape_model.shape_characterized_definition' ) | ( 'physical_unit_2d_shape_xim.physical_unit_planar_shape_model' IN TYPEOF ( pu3dsm2 ) ) AND ( pu3dsm1 = pu3dsm2 ) ) ) > 1 ) ) ) > 0 ) ) ) = 0 ;
END_RULE; -- unique_physical_unit_3d_shape_model_for_part_design_and_usage_view

public class RUnique_physical_unit_3d_shape_model_for_part_design_and_usage_view
          public int rWr2(SdaiContext _context)
          public int rWr1(SdaiContext _context)
          public int run(SdaiContext _context, A_string violations)