Print Page | Close Window

Attach Collection of Objects to Relationship

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: https://www.metacase.com/forums/forum_posts.asp?TID=64
Printed Date: 27.Mar.2026 at 02:15
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: Attach Collection of Objects to Relationship
Posted By: Vasilis
Subject: Attach Collection of Objects to Relationship
Date Posted: 28.Oct.2008 at 02:22
Dear All,

I am trying to achieve attaching a property which is a collection of objects (that have a symbol), to a relationship. Conceptually of course this works and in the Graph, indeed I can edit the relationship and add objects of the specific type to the property. What I really want though, is to also show each object's symbol over and under the relationship line, according to some other property of the object. In other words I would like to do something like in the following image:


O.3, O.4 and O.5 (I would very much want them to be ;) ) the Symbols of the the objects in the property-collection of the realtionship between Object 1 and Object 2. Is this possible at all?

Thank you very much



Replies:
Posted By: stevek
Date Posted: 28.Oct.2008 at 11:14
Hi Vasilis,
 
You can put a text element in the relationship symbol, and have its content come from a generator. The generator will print each sub-object's number and a character to show the direction. E.g.
 
do :SubObjects
{  if :Direction = 'left' then '<' else '>' endif
   :Value ' '
}
 
Your example picture splits the collection into two sets, one going left and the other right. If you want that, you could have two text elements, either for separate collection properties in the relationship (do :LeftSubObjects and do :RightSubObjects), or only iterating over the desired SubObjects (do :SubObjects where :Direction = 'left').



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net