![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Find module path from unique ID Topic Summary: Created On: 20-Jul-2005 20:35 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Is there a way to find the module name and path based only on a uniqueID? So if I have a uniqueID of 000006c3 it will tell me where it is and what it's called?
|
|
![]() |
|
![]() |
|
I've never done it but there's an "Item itemFromID(string uniqueID)" command. If the return Item is not null then you can get the "path" of the item.
May look like this: string UniqueID = "0000006c3" Item itm = itemFromID(UniqueID) string Path if (null itm) Path = "Does not exist" else Path = path(itm) print "Path of " UniqueID "\t= " Path "\n" The number of leading zero's is relevant, but I don't recall how. - Louie |
|
![]() |
|
![]() |
|
Yes -- Louie is right. Plus you can get the name, type and path
string mName = fullName(itm) or .. rootName_(itm) string iType = type(item1) if ( (iType == "Formal") ..etc I store uniqueIDs as some managers have moved modules to other folders and then they are hard to find. (the modules not the managers) ------------------------- Cliff Bly |
|
![]() |
|
![]() |
|
Excellent! Exactly what I needed. Thanks to both of you!
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Find module path from unique ID
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.