![]() |
Telelogic System Architect (steve huntington) | ![]() |
Topic Title: Definitions 'Used by' Definitions Relationship Topic Summary: Created On: 5-Aug-2008 17:46 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.