![]() |
Attach Collection of Objects to Relationship |
Post Reply
|
| Author | |
Vasilis
Member
Joined: 28.Oct.2008 Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: Attach Collection of Objects to RelationshipPosted: 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 |
|
![]() |
|
stevek
MetaCase
Joined: 11.Mar.2008 Points: 643 |
Post Options
Thanks(0)
Quote Reply
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').
|
|
![]() |
|
Post Reply
|
|
| Tweet |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |