Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic System Architect (steve huntington)
Decrease font size
Increase font size
Topic Title: Definitions 'Used by' Definitions Relationship
Topic Summary:
Created On: 5-Aug-2008 17:46
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 5-Aug-2008 17:46
User is offline View Users Profile Print this message


Ruben Cunha

Posts: 2
Joined: 28-Apr-2008

Hi,

How can i obtain a list of definitions used by other definitions in VBA?

I've tried so far with the GetRelatedObjects() function from 'Definition' class. However, none of the available relationships types is suited for the job.


Report this to a Moderator Report this to a Moderator
 6-Aug-2008 09:13
User is offline View Users Profile Print this message


Peter Crabb-Wyke

Posts: 73
Joined: 3-May-2007

In VBA you are expected to identify the relationship type that you want to report. Most commonly this is RELELEMENTDFE or RELDFEELEMENT (from memory, check my spelling if you use those).

I normally use Report Writer to review the available relationship types for a definition and then go on to write the macro. It sometimes takes a bit of trial and error.
Report this to a Moderator Report this to a Moderator
 7-Aug-2008 02:50
User is offline View Users Profile Print this message


Ruben Cunha

Posts: 2
Joined: 28-Apr-2008

RELELEMENTDFE Data (elements or structures) are used by and expression


Honestly when reading this explanation from VBA documentation at first i didnt perceive that it was intended for definitions.

It's working just as i wanted now anyway. Thanks for the tip.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic System Architect forum.
There are currently 1 users logged in.
The most users ever online was 16 on 30-Oct-2008 at 14:46.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.