![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Copy Module Topic Summary: Copying a module through DXL Created On: 31-Aug-2005 16:00 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am trying to copy a module through DXL, but I can't the module reference created correctly. I have a function that passes a string ModuleName as the name of the module to be copied and then I have the following code:
ModName_ baseModRef = module(ModuleName) bool ModCreated = false ModCreated = copy(baseModRef, newModName, "New " ModuleName) where newModName is the name of the resulting module. I have checked to make sure that ModuleName is not null, but I get a message, "null Module name parameter was passed into argument position 1," saying that my reference is null. I've tried a lot of random things to get my reference correct, but I can't seem to do it. Any thoughts? ------------------------- Jeremy Eble Software Engineer Teragon Consulting LLC jeremy.r.eble@lmco.com |
|
![]() |
|
![]() |
|
I tested using the following code:
string newModName = "NewCopy2" string ModuleName = "ActionItems" ModName_ baseModRef = module(ModuleName) bool ModCreated = false ModCreated = copy(baseModRef, newModName, "New" ModuleName ) Where ActionItems is a module name. It worked for me. It might be possible that the current project/folder is not the correct one. Try adding the code: if (null baseModRef) {print name(current Folder)} ------------------------- Cliff Bly |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Copy Module
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.