![]() |
How to access enclosing graph |
Post Reply
|
| Author | |
martind
Contributor
Joined: 18.Apr.2008 Location: Bremen, Germany Points: 16 |
Post Options
Thanks(0)
Quote Reply
Topic: How to access enclosing graphPosted: 14.May.2008 at 15:00 |
|
I have an oid of an element which I want to highlight, but therefore I need the oid of the enclosing graph, because the animate method requires that. How can I get information about the overlaying graph by using the API?
Regards, Martin |
|
![]() |
|
stevek
MetaCase
Joined: 11.Mar.2008 Points: 643 |
Post Options
Thanks(0)
Quote Reply
Posted: 14.May.2008 at 15:12 |
|
An object can be used in many graphs, so you can't just get a single graph as an answer. However, you've got the object oid, and you presumably were able to output that by navigating to that object through a certain graph, so you can simply improve that output by adding the graph oid information along with the object oid.
Of course the API can deal with all the power of MetaEdit+ as well: objects having multiple representations, graphs having multiple representations, the same object having multiple representations in the same graph representation. You can find all an object's representations with repSet, find the representation graph of a given object representation with reprGraph, and find the graph of a given graph representation with inst.
|
|
![]() |
|
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 |