Editing Behaviors

This task explains to the end-user how to edit behavior variable (attributes).
This scenario is extracted from the end-user use case Designing the External Mirror.
To edit a behavior variable (attribute):
  • Right-click the object and select the Object_Name object>Definition... command. 
  • Double-click the variable (attribute) to be modified. The Attribute dialog box is displayed.
  • Edit the value of the variable (attribute). Click OK twice to validate and to exit the Attribute dialog box.
  • Update the behavior by clicking the icon or by right-clicking the object in the specification tree and selecting the Operate>Operate command.  (See steps 7 and 9.)

- Or -

  • Click an object in the specification tree and expand its attributes node.
  • Double-click the variable (attribute) to be edited. The Edit parameter dialog box is displayed.
  • Change the parameter value and click OK to validate.

Start the RearViewMirror Workbench

  1. Open CATIA and close the default empty product.

  1. From the Start menu, select RearViewMirror.

If this workbench is not available, contact your expert user for him to copy the files provided in the Before you start topic into the appropriate directories and to generate the workbench enabling you to replay this scenario.

You are now in the user workbench. All the items defined in the .CATfct file now display in the toolbar located right part of the screen. Note that the icons can be replaced with empty check boxes if you did not associate icons with the created behaviors when defining the .CATfct file.

  1. Click the product in the specification tree and click the icon to initialize the assembly context in the selected product.

Define the Type and Loading the Vehicle

  1. Click the product and click the IndirectVision icon. The IndirectVision type is assigned to the root product.

  2. Define the type and load the vehicle.

    • Right-click the IndirectVision (Product1) object in the tree and select the IndirectVision (Product1) object>Define vehicle data command. The vehicle is loaded. Its type is "Vehicle".

Instantiate the Driver

  1. Instantiate the driver.

  • Right-click the IndirectVision (Product1) object in the tree and select the IndirectVision (Product1) object>Define driver command. The Catalog browser is displayed.
  •  In the catalog browser, select Driver-2D-95%-Male. The behavior instantiates the selected driver. Click Yes in the Save As dialog box.
Note that if you do not have a e:\tmp file, you will need to edit the path in the SaveLastPartPathUpdated.CATScript.
 

Instantiate the Mirror

  1. Instantiate the mirror. 

  • Right-click the IndirectVision (Product1) object in the tree and select the IndirectVision (Product1) object>Define external Mirror command.
    A new empty part typed ExternalMirror is inserted into the product. (See picture opposite.)
  • Right-click ExternalMirror (Mirror_Part.1)and select the Generate Geometry command. The Mirror_Part has been created along with its publications.

 

 

Edit the Mirror Variables (Attributes)

  1. Edit the mirror variables (attributes).

    • Right-click ExternalMirror (Mirror_Part.1) and select the ExternalMirror (Driver_Part.1) object>Definition... command. 

    • Double-click the VerticalAngle variable (attribute). The Attribute dialog box is displayed.

    • Set the value of the VerticalAngle to 18deg. Click OK to validate.

    • Double-click the HorizontalAngle variable (attribute). The Attribute dialog box is displayed.

    • Set the value of the HorizontalAngle to -4.5deg. Click OK to validate.

    • Double-click the Width variable (attribute). The Attribute dialog box is displayed.

    • Set the width value 40mm. Click OK twice to validate.

    • Mirror_Part now needs to be updated. Right-click ExternalMirror (Mirror_Part.1) and select the Operate command. 

    • Expand the Mirror variables node and double-click the modified attributes to check their values. The values are updated.