• No results found

Renaming a Unit

In document 1. PROJECT MANAGEMENT INTRO (Page 29-34)

Click Enable SSI CIP to enable the gathering of the data.

The CIP Folder Path indicates the folder where the CIP data will be gathered. This can be a network drive for ease of administration.

To enable the CIP silently:

Open Notepad and paste the following text in it.

Windows Registry Editor Version 5.00

[HKEY_USERS\.DEFAULT\Software\SSI\ShipConstructor2014\CIP]

" to the folder you want to save the CIP files. UNC paths are valid. Double backslashes are required where single backslash would be expected.

Save the file as CIPSettings.reg.

Push CIPSettings.reg to client machines via group policy. Refer to you network administrator on group policy information.

Run some commands in ShipConstructor and check the CIP Folder Path to make sure the CIP txt files are begin generated.

Example CIP Data:

<OperatingSystem>Microsoft Windows NT 6.1.7601 Service Pack 1</OperatingSystem>

<Platform>x64</Platform>

<Commands>

<Command Name="RIBBON" DrawingName="Drawing1.dwg" StartTime="02/18/2012 01:24:21 PM" />

<Command Name="RIBBON" DrawingName="Drawing1.dwg" EndTime="02/18/2012 01:24:21 PM" />

<Command Name="SCNAVIGATE" DrawingName="Drawing1.dwg" StartTime="02/18/2012 01:29:22 PM" />

<Command Name="SCNAVIGATE" DrawingName="\\ssi-myserver\Projects\Metric\Units\G906\Structure\LngBhd\G906_GCL.dwg"

EndTime="02/18/2012 01:32:46 PM" />

</Commands>

</CipData>

10. RENAMING A UNIT

As of ShipConstructor 2015 R2.1, it is possible to rename a unit.

Warning: The following procedure modifies the computer's registry. Have sufficient knowledge of the registry and take the necessary precautions before proceeding.

1.

2.

3.

1.

2.

3.

4.

Prerequisites

Because rename unit modifies both project files and the database, the user performing the task needs both the create unit permission in ShipConstructor as well as sufficient Windows permissions to rename and move files and folders in the project. The project must not have any splits.

To verify that no one is connected to the project database:

Open the Administrator,

Select the project database in the list,

Select Database > Show Connected Processes. To verify that there are no open files in the project folder:

Open Computer Management tool.

Right-click on the root node, select Connect to another computer, enter the name of the server hosting the project files and click OK.

Expand System Tools > Shared Folders > Open Files.

Make sure that none of the open files are in the project folder. If necessary, any open files can be closed via the right-click menu.

Renaming unit cannot be undone. SSI recommends that the operation is performed first on a back up of the project to preview the changes.

1.

2.

3.

4.

5.

a.

b.

6.

Step by Step Instructions

Make sure that no one is connected to the project.

Start ShipConstructor and open the Navigator.

Select the project node in the left-hand panel.

In the unit listing, right-click on the unit you wish to rename and select Rename.

In the Rename Unit dialog enter the new unit name. It is also possible to tell ShipConstructor to:

Update system, model, and production drawings after the unit is renamed.

Associate assembly drawings with the active assembly drawing name convention.

After the OK button is clicked, ShipConstructor will confirm that the unit should be renamed.

6.

7.

1.

2.

3.

4.

After the command completes, ShipConstructor opens the generated log file that lists which parts and drawings were renamed and their new name.

Rename Unit Dialog

SSI recommends that a unit name be under 8 characters. It must be a valid file and layer name.

Renaming a unit will affect part and assembly names. This will make most drawings in the unit out of date. These drawings can be either updated separately using SCUPDATEMODELANDSYSTEMDRAWINGS and SCUPDATEPRODDWGS commands or the rename unit command can update them after renaming the unit.

There is an issue in ShipConstructor that results in assembly drawings not being associated with the active name convention. When Match is checked, ShipConstructor will attempt to generate a drawing name for every user-named assembly drawings to the active name convention

assembly drawing in the unit using the active assembly drawing name convention. If the generated name matches the current file name, the drawing record will be associated with the active name convention. This ensures that if the unit name is part of the assembly drawing name, the drawing will be renamed when the unit name is changed.

Rename Operation

When a unit is renamed, ShipConstructor performs the following:

Changes the name of the unit record and the corresponding assembly in the primary product hierarchy.

Regenerates all names that have the unit name as part of the name convention. This step is identical to the Generate Names command in the Name Manager dialog except it's constrained to the parts and drawings in the renamed unit.

Renames all Structure model drawings. Structure drawing names are prefixed with the unit name on creation but this is not reflected in a name convention.

Renames the unit folder, the unit's nest folder, as well as unit log folder.

Pitfalls and Limitations

Assembly drawings may not be associated with a name convention

Due to an issue in previous version of ShipConstructor, assembly drawings are considered user-named even if there was an active name convention. This issue has been fixed in ShipConstructor 2015R2.1 and any assembly drawings created with this release or later will be associated with a name convention.

If the Match user-named assembly drawings to the active name convention option is checked in the Rename Unit dialog, this issue will be corrected in the current unit before it is renamed.

Renaming a unit may break MLinks and Xrefs

Any MLinks and Xrefs that contain the unit name will become broken after the unit is renamed. They will have to be repaired manually.

This option will not recover the name convention association for any drawing that was created with a different name convention or if the active name convention has been modified after the drawing was created.

1.

2.

3.

4.

Unit name will not be updated in manually-entered file names

ShipConstructor will only rename the files that it named. If a file name contains the unit name and the file has been named by the user, it will have to be renamed manually.

Common Errors and Warnings

The rename unit command logs to a file what action it performed and any failures it encountered.

Renaming a unit will fail if the unit folder cannot be renamed.

Sometimes, a folder may become locked due to temporary files created by AutoCAD. If the above error occurs and the steps outlined in the Prerequisites section do not show any open files, make sure all AutoCAD instances that usually work with drawings in that unit are closed.

Other software used with the project may also maintain file and folder locks that would prevent the rename operation from completing.

An assembly drawing was not associated with the active name convention

If the name of an assembly drawing was generated by a name convention but not the active name convention, it will remain without a name convention association.

Perform the following to associate assembly drawings with a different name convention:

Set the active assembly drawing name convention to the one that was active when the drawings in question were generated. If it no longer exists, create one with the same fields and set it as active.

Open the unit folder in Windows Explorer.

Open Navigator and begin rename unit.

Check the Match user-named assembly drawings to the active name convention checkbox, enter a new unit name click OK.

The assembly drawings will be matched to the active name convention but the unit will not be renamed because the unit folder was open.

A part was not renamed

If a name convention generates a name for a part that is the same as an existing part, that part will not be renamed.

A drawing file did not exist

If a drawing file does not exist when rename unit is run, it will be noted in the log file and the corresponding database record will be updated. This way, when the drawing is recreated or reattached, it will have the updated name.

A drawing file could not renamed

A drawing file that fails to rename will keep its previous name. If the file is an assembly drawing, it will lose its name convention association. The log file will note if the rename failed because the destination file exists. The user will have to rename the drawing file themselves in Navigator.

In document 1. PROJECT MANAGEMENT INTRO (Page 29-34)

Related documents