|
FUNCTION no_2d_location_for_component (comp : assembly_component_armx) : BOOLEAN; LOCAL i , j : INTEGER ; cis : SET OF contextual_item_shape ; loc : SET OF component_2d_location_armx ; END_LOCAL ; REPEAT i := 1 TO SIZEOF ( comp . occurrence_contexts ) ; cis := bag_to_set ( USEDIN ( comp . occurrence_contexts [ i ] , 'shape_property_assignment_xim.contextual_item_shape.described_element' ) ) ; REPEAT j := 1 TO SIZEOF ( cis ) ; loc := bag_to_set ( USEDIN ( cis [ j ] , 'contextual_shape_positioning_xim.contextual_shape_representation.contextual_shape' ) ) ; IF ( SIZEOF ( loc ) > 0 ) THEN RETURN ( FALSE ) ; END_IF ; END_REPEAT ; END_REPEAT ; RETURN ( TRUE ) ; END_FUNCTION; -- no_2d_location_for_component |
|
public class FNo_2d_location_for_component public static Value run(SdaiContext _context, Value comp) |