![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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 ---------------------------------------- |
|
![]() |
|
![]() |
|
What is the problem you're having?
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
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 ---------------------------------------- |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 ---------------------------------------- |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Copy (module)
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.