Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 31-Aug-2005 16:00
User is offline View Users Profile Print this message


Jeremy Eble

Posts: 30
Joined: 20-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 31-Aug-2005 17:52
User is offline View Users Profile Print this message


cliff Bly

Posts: 58
Joined: 11-Apr-2003

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.