![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Dxl Project Creation Topic Summary: Created On: 18-Jun-2003 15:17 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Sutherland is right. Failing to use a path results in DXL presuming you intend to move to a sub-folder of the "current" folder. The "current" folder is nebulous, but is likely either the folder currently selected in your DOORS explorer, but can also be the folder housing the "current" module, which is likely your link module. I have not had much luck predicting the "current folder" in DXL. Try: string FullNameModule = "/My Project/Old Folder/My Module" string FullNameDestinationFolder = "/My Project/New Folder" string ErrMess = move(item(FullNameModule), folder(FullNameDesinationFolder)). if (!null ErrMess) print "Error trying to move '" FullNameModule "': " ErrMess - Louie | |
![]() |
|
I am trying to create a default project set up that uses multiple folders and link modules. However, when I try to move the link modules created to the specify folder, this does not work. What is the best ways of performing this action?
if (exists module "HWLink") { move (item "HWLink", folder"Link Modules") } Bobbette |
|
![]() |
|
![]() |
|
Bobbette,
The move() command returns a string error message when it fails. What error message is being returned in your case? ------------------------- Michael Sutherland michael@galactic-solutions.com http://galactic-solutions.com |
|
![]() |
|
![]() |
|
The error message is:
null Folder parameter was passed into argument position 2 Bobbette |
|
![]() |
|
![]() |
|
Bobbette,
Since "argument position 2" is returning a null, you need to try something different there. Try using the full path for the Folder (from the containing Project down). The example in the DXL manual is: move(item "My Module", folder "/new projects") Note they are using the "/", where you are not. The folder "new projects" must be at the root level of a Project. ------------------------- Michael Sutherland michael@galactic-solutions.com http://galactic-solutions.com |
|
![]() |
|
![]() |
|
Sutherland is right. Failing to use a path results in DXL presuming you intend to move to a sub-folder of the "current" folder. The "current" folder is nebulous, but is likely either the folder currently selected in your DOORS explorer, but can also be the folder housing the "current" module, which is likely your link module. I have not had much luck predicting the "current folder" in DXL. Try:
string FullNameModule = "/My Project/Old Folder/My Module" string FullNameDestinationFolder = "/My Project/New Folder" string ErrMess = move(item(FullNameModule), folder(FullNameDesinationFolder)). if (!null ErrMess) print "Error trying to move '" FullNameModule "': " ErrMess - Louie |
|
![]() |
|
![]() |
|
Thanks Louie, this solved my problem
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Dxl Project Creation
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.