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: Moving/renaming modules with DXL
Topic Summary:
Created On: 6-May-2004 17:27
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.
 6-May-2004 17:27
User is offline View Users Profile Print this message


Pieter DE WAARD

Posts: 73
Joined: 11-Jul-2003

We are trying to manage modules by renaming and or moving them to another project or folder. Our developer does not find much in the documentation on this.

Anyone have ideas on it?

Thanks.

-------------------------
Pieter de Waard
www.nhindustries.com
Report this to a Moderator Report this to a Moderator
 7-May-2004 07:59
User is offline View Users Profile Print this message


Dirk Plaschke

Posts: 103
Joined: 17-Sep-2002

Hi Pieter.

This is a function I use to copy modules between projects/folders. I think it is not difficult to adapt it to simply move modules.

Regards
Dirk.

---



-------------------------
Dirk Plaschke
Report this to a Moderator Report this to a Moderator
 7-May-2004 15:11
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

The "move(item)" command should do it. May look something like this:

string NameModFull = "/OldProject/OldFolder/MyModule"
Item itmMod = item(NameModFull)
string NameDestFold = "/NewProject/NewFolder"
Folder fldNew = folder(NameDestFold)

if (null itmMod or null fldNew)
{ print "Cannot attempt move\n"
}
else
{ // attempt to do move
string ErrMess = move(itmMod, fldNew)
if (!null ErrMess) print "Move Error: " ErrMess "\n"
else print "Move OK\n"
} // end else attempt to move

- Louie
Report this to a Moderator Report this to a Moderator
 10-May-2004 11:17
User is offline View Users Profile Print this message


Pieter DE WAARD

Posts: 73
Joined: 11-Jul-2003

Dirk, Louie,

Thanks. Will give it a shot.

- Pieter

-------------------------
Pieter de Waard
www.nhindustries.com
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.