I think this is one of the most thorough technotes on the subject. There are
several others that can be viewed by typing Curdir in the following search
engine. 

http://www.rational.com/support/technotes/index.jsp?borschtid=33406060222501
901422 


TechnoteID: 18170   
Subject: How can I use a relative virtual path map to navigate up in the
directory structure?

PRODUCT: Rational Rose

 
QUESTION:
How can I use a relative virtual path map to navigate up in the directory 
structure?

ANSWER:
This technote explains how to use a relative virtual path map setting to 
navigate up in a directory structure to where the model root is located. 
This path map setting is only useful if the model file (.mdl) is located
deeper 
within the directory structure than the category files (.cat)

The path map setting `&� assumes that the .mdl file is located in the root
of 
your .cat/.sub file structure. To be able to use this path map setting to 
navigate you can use the same technique as you should use to navigate with
DOS 
commands.

To navigate up one level in a file system you can use the command CD ..
To navigate two levels you can use the command CD ..\.. 

In Rose it is possible to define virtual path maps that navigates up
through:
CURDIR$ = &\.. (this navigates one level up in the directory structure)
CURDIR$ = &\..\.. (this navigates two levels up in the directory structure)

EXAMPLE 1
A
|
|-----B                     -> (model root starts here)
            |
            |-------C     -> (the model file are located here)
If your model is located in the directory C and your model root starts
in the directory B you can use the setting &\.. to navigate up one level. 

EXAMPLE 2
A                                   -> (model root starts here)
|
|-----B                     
            |
            |-------C     -> (the Rose model are located here)
If your model is located in the directory C and your model root starts
in the directory A you can use the setting &\..\.. to navigate up two
levels.

EXAMPLE 3
A
|
|-----B
|         |
|         |-------C       -> (model root starts here)
|
|-----B2                   -> (.cat-files are located here)
If your model is located in the directory C and your model root starts
in the directory B2 you can use the setting &\..\..\B2 to navigate up two 
levels and down one level.

--------
---
WARNING:
Changes to the path map setting should be done carefully when this
will affect all .cat/.sub files that rely on these settings. 
If you already use the relative path map setting `&� for the models that
are located in the root, do not edit these settings. 

Instead you can ad a new virtual path in Rose like this this:
TWO_LEVEL_DOWN$ = &\..\.. 

And leave this setting unmodified:
CURDIR$ = &
---
--------

Read this information before doing above described changes:
Rational Rose Guide to Team Development
http://www.rational.com/support/documentation/manuals/man-082400-rose.jsp

I you are not familiar with how to set up a relative path maps in Rational
Rose 
read:
Technote # 3666 - Using the symbol & for relative model location in virtual 
path maps.
http://www.rational.com/technotes/rose_html/Rose_html/technote_3666.html
Or
Search for the word path map in the Rose help.


For more information, contact Rational Software Technical Support.

Best Regards
Wayne E. Denman
Rose Technical Support Engineer
Rational Software Corp. 
The E-Development Corporation
1-800-433-5444

Rational User Conference 2001
July 22-26    Denver, Colorado
 http://www.rational.com/ruc

 -----Original Message-----
From:   Sumpter, Anthony T (N-Intecon) [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, June 27, 2001 11:05 AM
To:     Rose_Forum (E-mail)
Subject:        (ROSE) CURDIR


We are currently experiencing a problem with CURDIR and being set to &. In
particular to having a controlled unit in a different branch of the
directory structure. I would like to have a better explanation of CURDIR and
how it works and how it changes when opening the model and how/if it changes
when loading a controlled unit. If someone at Rational could let me know or
a very knowledgeable person. Even if it is a white paper link or something
to start us down the right road.

> A. Todd Sumpter
> Lockheed Martin Management & Data Systems
> * 6304 Spine Rd., Boulder, CO 80301
> * 303/581-4472 (work) / 303/581-4268 (fax)
        * 877/369-9836 (pager)
        * [EMAIL PROTECTED]


************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: 
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to