Enabling 2D Preview for 2D Products

This task shows you how to enable the preview of 2D elements making up CATProduct documents.

This operation is divided into three main steps:

  1. Creating a dedicated SmarTeam file-type for 2D Products

  2. Updating SetDesc.bs

  3. Configuring CATIA so that 2D Products are saved using this file-type.

Creating a Dedicated SmarTeam File-type for 2D Products

  1. Select SmarTeam > Tools > Applications Setup.
    The Applications Tools window is displayed.

  2. Click Modify.
    The File Type dialog box is displayed.

  3. Enter CATProduct_2D and CATIA 2D Product in the Name and Description fields respectively.

  4. Click Add to confirm the operation.
    CATProduct_2D is now included in the File Type field.

  5. Click Close to close the File Type dialog box.

  6. From the Application Tools dialog box, select CATIA 2D Product.

  7. Click Tools.
    The CATIA 2D Product - Application Tools dialog box is displayed. Each tab correspond to a capability. You need to provide information to ensure that the capability concerned works for the new file type that you have created.

  8. Click Add to display the parameters for Edit.

    The dialog box that appears includes two tabs. All the fields must be filled in using the information as shown in the following images.

    EDIT

    General Setup tab Advanced Setup tab
  9. Click OK to confirm and close the dialog box.

  10. Repeat this operation for View, Print and Embedded View.

    VIEW

    General Setup tab Advanced Setup tab

    PRINT

    General Setup tab Advanced Setup tab

    EMBEDDED VIEWER

Updating SetDesc.bs

Update SetDesc.bs script to take this new file-type into account.

  1. Open the SetDesc.BS. file using SmartScript Editor.
    As a reminder, by default this file is located in SmarTeam HOME/Script.

  2. Search for "ElseIf FileTypeStr = "CATProduct" Then".

  3. Replace:

    ElseIf FileTypeStr = "CATProduct" Then
    With:

    ElseIf FileTypeStr = "CATProduct" Or FileTypeStr = "CATProduct_2D" Then
     

  4. Save the modified file.

Configuring CATIA

Configure CATIA so that 2D Products are saved using this file-type. You must set this CATIA configuration for all CATIA seats.

  1. Open the ClassBehaviors.txt file using the editor of your choice. By default this file is located in:
    CATIA HOME/OS_name/reffiles/smarteam

  2. Search for "catproduct_2d".

  3. Modify this line as follows: (take care when modifying the file: it is case sensitive).

    Original line:
    catproduct_2d   ; CATProduct   ; TDM_CATIA_PRODUCT
    Modified line:
    catproduct_2d ; CATProduct_2D ; TDM_CATIA_PRODUCT
  4. Save the file.

Notes

  • To make this preview enhancement valid for 2D Products saved using releases prior to V5R16, you need to:

    • update manually their profile-cards so that their file-type is now 'CATIA 2D Product'.
    • save them again in SmarTeam so that a 2D preview is generated and replaces the regular 3D preview.
  • This new preview type does not work if 2D Products (saved in SmarTeam) are not loaded in the CATIA session. The application then considers the CATProduct as a 3D Product.