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: Syntax help for copy (module)
Created On: 5-Aug-2008 09:20
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.
Answer This question was answered by Mark Williamson, on Tuesday, August 5, 2008 8:25 PM

Answer:
Hi Peter,

Thanks for that. It works a treat. I wasn't aware of the lock issue on exclusive edit. I would prefer to do the copy without opening the 'template' module and have modified your example to to that.

copy(module "Test Module template", "Another New module", "My description")

Many thanks

Mark
 5-Aug-2008 09:20
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Hi,

I'm fairly familiar with DOORS but new to DXL.

Rather than create a new module and create the module attributes each time via DXL, I wish to set up the template module with all the applicable attributes and then copy that module with the user designated name and description. I have tried every combination of the DXL reference manual syntax that I can think off.

bool copy(ModName_ modRef,
string newName,
string newDesc)

Any help would be appreciated.

Thanks

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 5-Aug-2008 12:59
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

What is the problem you're having?

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 5-Aug-2008 14:41
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Hi David,

I am getting the following error: -E-
DXL: <Line:2> incorrect arguments for function (copy)
-I- DXL: all done with 1 error and 0 warnings

I've tried specifying the module name literally or with handle ModName_. I'm sure it is a syntactical issue but there is not an example within the reference manual to crib from!

Mark


copy ((current Module),"New Module", "My description")

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 5-Aug-2008 15:28
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

You need the 'ModName_ module(string modRef)' perm to get a handle of type ModName_, thus the simplest form of the 'copy' perm is

copy(module fullName current Module, "New module, "My description")

Note that the current Module must not be open in exclusive edit.

Peter
Report this to a Moderator Report this to a Moderator
 5-Aug-2008 20:25
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Answer Answer
Hi Peter,

Thanks for that. It works a treat. I wasn't aware of the lock issue on exclusive edit. I would prefer to do the copy without opening the 'template' module and have modified your example to to that.

copy(module "Test Module template", "Another New module", "My description")

Many thanks

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
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.