在Aras PLM中,可以使用AML (Aras Markup Language) 查询当前类的多个关系类以及关系类的右类信息。以下是一个示例查询的 AML 语句:

<AML>
  <Item action="get" type="RelationshipType">
    <related_id>
      <Item type="ItemType" action="get" select="id">
        <keyed_name>Your_Current_Class</keyed_name>
      </Item>
    </related_id>
    <is_relationship>1</is_relationship>
  </Item>
</AML>

请将 "Your_Current_Class" 替换为您想要查询的当前类的名称。这个查询将返回与当前类相关的所有关系类型。然后,您可以使用关系类型的 "right_itemtype" 属性来获取关系类的右类信息。以下是一个示例查询的 AML 语句:

<AML>
  <Item action="get" type="ItemType">
    <id>
      <Item action="get" type="RelationshipType">
        <related_id>
          <Item type="ItemType" action="get" select="id">
            <keyed_name>Your_Current_Class</keyed_name>
          </Item>
        </related_id>
        <is_relationship>1</is_relationship>
      </Item>
    </id>
    <select="keyed_name">
  </Item>
</AML>

这个查询将返回与当前类相关的所有关系类型的右类信息。您可以根据需要修改这些查询以满足您的具体需求

aras plm中使用aml查找当前类的多个关系类以及关系类的右类信息

原文地址: https://www.cveoy.top/t/topic/hVGl 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录