Before You Begin Setting Generative View Style Parameters 

  This section deals with the following subjects:

Structure of the Generative View Styles

  The DefaultGenerativeStyle.xml file is available in the Standard Definition dialog box (via Tools > Standards > generativeparameters category). 

This file is structured as a tree. Under the Standard > DefaultGenerativeStyle nodes, there are several sub-nodes:

  • the Drafting node is devoted to customizing generative view styles for views generated from any 3D workbench in general. For more information, refer to Setting General Generative View Style Parameters.
  • the other nodes are devoted to customizing generative view styles for views generated from given workbenches. For example, the SheetMetal node is devoted to customizing generative view styles for views generated from the Generative SheetMetal Design workbench. For more information, refer to Setting Workbench-Specific Generative View Style Parameters and/or to the workbench's User's Guide.

 

 
   

Customizing Generative View Style Parameters

In this scenario, you will learn how to customize generative view style parameters using a specific example.

The pre-defined DefaultGenerativeStyle.xml file specifies that hidden edges should be displayed in black, using a specific linetype and thickness. You will modify these parameters so that hidden edges are displayed in orange, for example, and using a different linetype and thickness.

Note that all generative view styles apply to views generated in exact mode.

Open the GenDrafting_part.CATPart document.

Select Tools > Standards to launch the Standard Definition dialog box. Choose the generativeparameters category, and then open the DefaultGenerativeStyle.xml file from the drop-down list.

 

  1. In the editor, expand the following nodes successively: Standard > DefaultGenerativeStyle > Drafting > ViewDressup > GeneratedGeometry > HiddenEdges.

  2. Select the Color parameter.

  3. Set the color to orange, for example by choosing another color from the drop-down list in the right-hand pane.

  4. Select the Linetype parameter.

  5. Set the linetype to 4, for example by choosing another linetype number from the drop-down list in the right-hand pane.
     

    Linetypes are defined in Tools > Options > General > Display > Linetype tab.
  6. Select the Thickness parameter.

  7. Set the thickness to 2, for example by choosing another thickness number from the drop-down list in the right-hand pane.
     

    To define a thickness, select Tools > Standards to launch the Standard Definition dialog box. Choose the drafting category, and then open the [StandardFile].xml file from the drop-down list. In the editor, expand the following nodes successively: Standard > [StandardFile] > Line Thicknesses.
  8. Click OK to save your modifications and exit the standards editor.

  9. Define a new drawing sheet.

  10. Create a front view. The view is generated, taking into account the parameters you defined.