Print Page | Close Window

How to access enclosing graph

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=35
Printed Date: 27.Mar.2026 at 02:15
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: How to access enclosing graph
Posted By: martind
Subject: How to access enclosing graph
Date 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



Replies:
Posted By: stevek
Date 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.



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