This task
explains how to set up and lock DLNames in administrator mode.
This allows you to implement a tightly controlled data storage strategy whereby end users will be able to store data in only those directories referenced by DLNames. |
|
A Reminder about DLNames |
|
The Document tab, accessed via the Tools >
Options... command, lets end users choose the way in which they
access their documents. They set up "document environments" which can be:
For a full description of how DLNames are created from an end user point of view during an interactive session, refer to the description of how document environments are set in the section "Customizing Settings - General - Document" in your Infrastructure Users Guide. |
|
Phase One: How To Set Up DLNames for Your End Users |
|
1. Log on as an administrator. You must belong to the Administrators group, or have the privileges assigned to the Administrators group. For the purposes of this particular scenario only, you need to log on as administrator because you are going to modify the default global environment (VersionNumber). |
|
2. Select the
Start > Programs > CATIA > Tools > Environment
Editor VersionNumber command to display the Environment Editor.You will see an environment with the following name:
|
|
3. Double-click the CATIAEnvironmentName environment to display the corresponding environment variables. | |
4. Locate the following
environment variable: CATReferenceSettingPath Note that the default setting for this variable is empty. |
|
5. Reset the variable so
that it points to an existing folder, for example:
then save your modification, and exit the environment editor. This folder will contain the setting locks you will create later. The folder access rights must be set up for read access only for end users, and read/write for the person creating the setting locks. |
|
6. Run a session using the
following command:
or: A session is started using the default global environment, and a message informs you that you are running in administration mode. |
|
7. Click OK in the message
box, then select the Tools > Options... command. The "Options" dialog box is displayed. |
|
8. In the General
category, click the Document tab. Note that a lock symbol like this appears opposite each option: |
|
Setting the DLName Environment As Current |
|
9. To make the DLName
environment the current document environment, select "DLName" in the
Document Environments column, then select successively the Allowed
and Current buttons.
DLName is now defined as your current document environment as indicated by the "Current" value in the State column: |
|
Creating DLNames |
|
Now that you have set the DLName environment as your current environment, you have to create the DLNames you will use. | |
10. Click the Configure... button to
open the Configure dialog box which lets you add or remove DLNames:
|
|
11.
Click the button or right-click
then select the New command once for each new DLName you want to
create. A default name and a default folder are assigned to each new DLName as shown below:
|
|
12. To customize the DLName, click "DLName1", then
click again to activate the editor field, type the new name and press the
ENTER key.
For example, change the name to "CATParts":
|
|
When creating DLNames, you can also organize them into a
logical tree using Root DLNames. For more details, refer to the section
"Customizing Settings - General - Document" in your Infrastructure Users
Guide. |
|
13. To customize the folders, click C: (Windows) or
/tmp (UNIX) in the appropriate column, then click again to activate the
editor field, type the path of the folder and press the ENTER key.
Instead of typing in the editor field, you can also choose a folder by clicking in the field, and selecting the New contextual command and selecting the folder using the explorer which is displayed. |
|
Note that you can include system or user-defined variables
in DLNames using the syntax $ {VARIABLE}: Example 1 C:\users\${MODEL}\publish where ${MODEL} is a user-defined variable. Example 2 DLNAME2=${HOME} where ${HOME} is equivalent to c:\ on Windows. |
|
14. To lock the DLName for end users, select the
DLName and click the Lock icon. Locking a DLName changes its state from "Green" to "Orange" (and inversely when you unlock the DLName):
|
|
The reason why you would want to lock DLNames is to restrict end user access to only those folders referenced by DLNames. End users running Version 5 using the same environment will inherit the locks you set on DLNames, and will not be able to either modify or remove them. | |
15. Add another DLName and name it "CATProducts",
lock it using the same procedure as above, then rename the folders:
|
|
End users will not be able to modify or remove DLNames, but will still be allowed to add DLNames. If you do not want this to happen, lock the list by clicking the green lock symbol to change it to the orange lock symbol . End users will then see the red lock symbol and will not be able to add DLNames to the list. | |
16. When finished adding DLNames to your list, you
can then click the Export... button
to save your list of DLNames
as an ASCII .txt file. This is particularly useful when you have a large number of machines. You can then import the .txt file containing the DLNames onto all the machines so that end users also inherit the same DLNames, as described in Importing DLName Settings in Batch Mode. You can make as many lists as you like. Whenever you want to use one of them, just click the Import... button before selecting a list from the Import dialog box. |
|
17. Click OK to close the Configure dialog box | |
18. To force end users to use the DLName strategy only, make sure that "DLName" is still "Current", set Folder to "Not Allowed", click the lock for the Document Environments, then click OK to exit the Document tab. | |
DLNames settings are stored in the settings file: DLNames.CATSettings. | |
|