FUNCTION get_tool_body_item

(* SCHEMA step_merged_ap_schema; *)
-- IN AP238 STEP-NC
FUNCTION get_tool_body_item
      (mt : machining_tool;
       prop_name : STRING ) : SET OF representation_item;
   LOCAL
      props : SET OF resource_property;
      preps : SET OF resource_property_representation;
      items : SET OF representation_item;
   END_LOCAL;
      props := get_resource_property(mt, 'tool body');
      REPEAT i := 1 TO HIINDEX(props);
         preps := preps + USEDIN(props[i], 'STEP_MERGED_AP_SCHEMA.' + 'RESOURCE_PROPERTY_REPRESENTATION.PROPERTY');
      END_REPEAT;
      REPEAT i := 1 TO HIINDEX(preps);
         IF 'STEP_MERGED_AP_SCHEMA.MACHINING_TOOL_BODY_REPRESENTATION' IN TYPEOF(preps[i].representation) THEN
            items := items + preps[i].representation.items;
         END_IF;
      END_REPEAT;
      RETURN (bag_to_set(QUERY (it <* items| it.name = prop_name)));
END_FUNCTION;

Referenced By

Defintion get_tool_body_item is references by the following definitions:
DefinitionType
 verify_ballnose_endmill_dimensions FUNCTION
 verify_bullnose_endmill_dimensions FUNCTION
 verify_count_measure_tool_body_item FUNCTION
 verify_enumeration_tool_body_item FUNCTION
 verify_optional_tool_body_item FUNCTION
 verify_rep_item_for_tool_body FUNCTION
 verify_required_tool_body_item FUNCTION


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2020-07-28T17:02:20-04:00