THANKS
IT WORKS FINE
-----Original Message-----
From: Viswanathan, Annamalai [mailto:[EMAIL PROTECTED]]
Sent: gio 20 giugno 2002 15:29
To: 'Andrea Fasanella'; [EMAIL PROTECTED]
Subject: RE: (ROSE) manage links to external docs

Andrea,

 

Listed below is a Solution that you might find helpful:

 

/////

QUESTION:

Is there a mechanism to store virtual paths for the
file attachments to model
elements.   Is this possible to do? If so, how?

ANSWER:

Yes this is possible.   Essentially this works the same way as it does for
controlled units.   Listed below are two different scenarios.   One involves a
situation where a
file is not yet attached to a use case and the other involves
a situation where the
file is already attached to a use case.

---
1.   Let us consider a situation where you want to attach a
file to a use case
but you want the path to the
file to be denoted by a pathmap and not by a hard
coded path.

- Lets say that you have a model called myModel.mdl.   This model has a use case
called UC1 and you want to attach a
file called File1 to UC1.   Lets say that
File1 exists in a folder called C:\myDir\myFiles

- First do a
File|Edit Pathmap.   In the Virtual Pathmap dialog box define a new
pathmap called $MYFILES and map this to the C:\myDir\myFiles directory.   Then
apply the changes and close the dialog box.

- Now attach the File1
file to the UC1 usecase.     Although the Use Case
Specification will indicate that the path to the File1
file is
C:\myDir\myFiles, in fact the $MYFILES
pathmap will be used to denote the path
to File1.   You can verify this by saving the model and then opening up the .mdl
file in a text editor.   You will see that $MYFILES is being used and not
C:\myDir\myFiles.   Keep in mind though if you do open the model
file in a text
editor be sure not to alter the
file in any way by adding an extra space or a
carriage return etc.   This would cause problems when you try to open the model
file later.
---

---
2.   Now consider another situation where you have a model
file called
myModel.mdl which contains a usecase called UC1 that has a
file called File1
attached to it.   File1 resides in the C:\myDir\myFiles directory.

- Once again do a
File|Edit Pathmap.   In the Virtual Pathmap dialog box define
a new
pathmap called $MYFILES and map this to the C:\myDir\myFiles directory.    
Then apply the changes and close the dialog box.

-     Now you need to make some small change to the model and then save it over
in order for the pathmapped path to be picked up instead of the hard coded
path.     This could be any sort of change such as adding an attribute and
deleting it or moving something around in a diagram etc., i.e. anything that
would force Rose to save the model over.   The change from the hard coded path
to the pathmapped path would occur when Rose resaves the model.   If your model
contains controlled units and if the usecase with the attached
file is located
in a controlled unit then you would need to make some small change in the
controlled unit package and then save the model in order to force Rose to
resave the .cat
file.

-     Once again you wont see in the Use Case Specification that the virtual
pathmap is being used instead of the hard coded path.   However when you open
the .mdl (or the .cat)
file in a text editor you will see that the pathmap is
being used.     Again, be sure not to edit the .mdl (or .cat)
file in the text
editor even by accident since that would affect the model when you try to open
it up next.
---


For more information, contact Rational Software Customer Service.

/////

 

Regards

 

Vishu

 

 

**********

Annamalai "Vishu" Viswanathan  --  [EMAIL PROTECTED]

Senior Technical Support Engineer

 

Rational Customer Service - Committed to Service Excellence

SCP Certified:  http://www.rational.com/support/scp.jsp

 

Rational User Conference 2002.....Freedom to Create!

Call for Papers Now Open at http://www.rational.com/ruc

August 18-22, 2002

Lake Buena Vista, Florida

**********

 

-----Original Message-----
From: Andrea Fasanella [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 5:14 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) manage links to external docs

 

hi all

my Rose model has several external docs linked to it

When you link an external doc, the pathname of the external file is absolute.

By this way, if you move the model, the pathnames of the external docs should be

changed and that it's really time consuming

Does anyone know if it's possible to make them relative ?

Would it be possible to use a environment variabile ?

Thanks, bye

 

===========================

Andrea Fasanella

Business Area Finance

 

ETN�TEAM SPA

Via dei Valtorta 48, 20127, Milan, Italy

Mobile: +39 (348) 4033221

Phone: +39 (02) 26164449

===========================

 

Reply via email to