![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Module URL Topic Summary: Created On: 30-Jul-2007 19:13 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Every module has a unique ID, which consists of the database ID concatenated with the module ID. I have some DXL attributes in which I would like to use those values rather than hard coding in the path name of the module used in the attribute. So my question is how do you read the database ID and the module ID? Edited: 30-Jul-2007 at 19:14 by Brian Rohler |
|
![]() |
|
![]() |
|
Probably you'll want to look in the DXL manual under:
uniqueID qualifiedUniqueID Feed either an Item, Folder, Project, or ModName_; get a string back. I don't know for certain but the second one might be what you're after (without having to concatenate anything manually). |
|
![]() |
|
![]() |
|
You probably need this before using Chris' code:
ModName_ mn = module(fullName(current Module)) uniqueID can be used to find where the module is housed in the database folder structure (using Windows Explorer at the server). Prefix the uniqueID with "m" and suffix with ".mod"; e.g. if the ID is '00000140' then its housed in a folder named "m00000140.mod". Run the following from an open module: string ModID = uniqueID(current Module) print ModID "\tFound in windows explorer folder: m" ModID ".mod\n" QualifiedUniqueID doesn't seem to be worth anything. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Module URL
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.