FUNCTION acyclic_shape_aspect_relationship

(* SCHEMA step_merged_ap_schema; *)
-- IN AP242
FUNCTION acyclic_shape_aspect_relationship
      (relation : shape_aspect_relationship;
       relatives : SET [1:?] OF shape_aspect;
       specific_relation : STRING ) : BOOLEAN;
   LOCAL
      x : SET OF shape_aspect_relationship;
   END_LOCAL;
      IF relation.relating_shape_aspect IN relatives THEN
         RETURN (FALSE);
      END_IF;
      x := QUERY (sa <* bag_to_set(USEDIN(relation.relating_shape_aspect, 'STEP_MERGED_AP_SCHEMA.SHAPE_ASPECT_RELATIONSHIP.RELATED_SHAPE_ASPECT'))| specific_relation IN TYPEOF(sa));
      REPEAT i := 1 TO HIINDEX(x);
         IF NOT acyclic_shape_aspect_relationship(x[i], (relatives + relation.relating_shape_aspect), specific_relation) THEN
            RETURN (FALSE);
         END_IF;
      END_REPEAT;
      RETURN (TRUE);
END_FUNCTION;

Referenced By

Defintion acyclic_shape_aspect_relationship is references by the following definitions:
DefinitionType
 assembly_joint ENTITY


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2024-09-06T14:00:33-04:00