MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - How to access enclosing graph
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to access enclosing graph

 Post Reply Post Reply
Author
Message
martind View Drop Down
Contributor
Contributor
Avatar

Joined: 18.Apr.2008
Location: Bremen, Germany
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote martind Quote  Post ReplyReply Direct Link To This Post Topic: How to access enclosing graph
    Posted: 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
Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 643
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.016 seconds.