This example will enumerate and print names of all compositions of an element:
<%==SIM:ForEach:Element.Relations==%>
<%==SIM:If:Equals(Relation.StartRoleAssociationType,"Composition")==%>
Composition: <%==SIM:Relation.Name==%>
<%==SIM:EndIf==%>
<%==SIM:If:Equals(Relation.EndRoleAssociationType,"Composition")==%>
<%==SIM:EndFor==%>
Reply To: RE: Just what I was waiting for
This example will enumerate and print names of all compositions of an element:
<%==SIM:ForEach:Element.Relations==%>
<%==SIM:If:Equals(Relation.StartRoleAssociationType,"Composition")==%>
Composition: <%==SIM:Relation.Name==%>
<%==SIM:EndIf==%>
<%==SIM:If:Equals(Relation.EndRoleAssociationType,"Composition")==%>
Composition: <%==SIM:Relation.Name==%>
<%==SIM:EndIf==%>
<%==SIM:EndFor==%>
Dusan Rodina - softwareideas.net 10 February 2012 15:05:00