The & is only useful when all of the .cat files are at or below the
directory the .mdl file is in.
>From "Defining Virtual Paths" in the on line help:
A leading "&" on a path name indicates that the path is relative to the
model file or the enclosing controlled unit (if any). For example, suppose
you have created a model:
X:\ordersystem\ordersys.mdl
and a controlled unit:
X:\ordersystem\units\data_serv.cat.
To allow different users to open the model and load the unit in different
workspaces, each user can create a path map:
$CURDIR=&.
When the model is saved, the reference from the model file to the package is
stored as:
$CURDIR\units\data_serv.cat
When the model is opened in another workspace, $CURDIR is expanded to the
physical path to the model in that specific workspace, for example:
Z:\ordersystem.
Note: The "&" requires that the controlled units are located in the same
folder as the model file or in a subfolder to the model file.
Also see "Virtual Path Maps (Overview)" in the on line help.
| -----Original Message-----
| From: Sumpter, Anthony T (N-Intecon)
| [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, June 27, 2001 12:05 PM
| 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
*
*************************************************************************