About Generative View Styles

Generative view styles (GVS) let you customize the appearance and behavior of a generated view by a set of predefined parameters and options.

The following topics are discussed:

This page discusses:

General Information

Administrators can create one or several generative view styles from which users can choose when creating a generative view.

Generative view styles are defined in an XML file.

Important: Some apps (such as Structure Functional Design or Generative Shape Design) also offer the possibility of configuring generative view styles. These styles are specific to the views generated from this app, and specify the appearance of the geometry to be generated. To know if a given app supports generative view styles, either see its documentation or to Setting General Generative View Style Parameters.

Structure of Generative View Styles

The DefaultGenerativeStyle.xml file is available in the Standard Definition dialog box (available through Me > Preferences > 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 app in general. For more information, see Setting General Generative View Style Parameters.
  • The other nodes are devoted to customizing generative view styles for views generated from given apps. For example, the SheetMetal node is devoted to customizing generative view styles for views generated from the Sheet Metal Design app. For more information, see Setting App-Specific Generative View Style Parameters or to the app's user's guide.

Management of Generative View Styles

You can manage generative view styles by creating one generative view style per view, controlling its access and modification and so on.

One Generative View Style Per View

When you create a view using a generative view style, you can specify the XML file that is associated with this view. Within a drawing/layout, you can only associate one generative view style to a given view, but you can use several generative view style files by associating different files to different views.

Standalone Drawings

The values of the parameters in the specified XML file are embedded into the CATDrawing/layout document when a generative view style is applied to a view. Each drawing/layout contains an embedded copy of the generative view styles it uses. The drawing is therefore stand-alone. This makes it possible for users, projects, or companies to exchange CATDrawing/layout documents without needing to send the generative view style file along.

Administrator-Controlled Access and Modification

The Working with Standards and Generative View Styles the location of the generative view style files as well as the ability to modify existing ones. For example, the administrator can define a single generative view style, and prevent users from modifying it.

Administrator-Controlled Authorized Styles

The administrator defines the list of authorized generative view styles, in the Drafting standards XML file.

Generative View Style File Available by Default

By default, a predefined generative view style file is delivered. This file is located in install_root/resources/standard/generativeparameters /DefaultGenerativeStyle.xml.

Administrators can customize this file to define their default generative view styles. They can also use this file as a template for creating new generative view styles.

They can add as many generative view style files as required. See Working with Standards and Generative View Styles for more information.

Important: Do not delete the DefaultGenerativeStyle.xml file: it contains all generative view style parameters. Furthermore, it is used as a default if a parameter happens to be missing from a custom view style file (in this case, the corresponding parameter defined in DefaultGenerativeStyle.xml is used instead). In case the DefaultGenerativeStyle.xml file cannot be found, the app uses its own default parameter instead.

Editing the Generative View Style File

The generative view style files can be edited using an interactive editor. This editor provides an easy-to-use graphic interface to let you customize the parameters included in the generative view style file. For information on how to customize the parameters included in the generative view style file, see Setting General Generative View Style Parameters.

The interactive editor is available in Me > Preferences > Standards. (It is the same editor with which you can customize the Drafting standards). For more information on how to use this editor, see the Customizing Standards chapter in the 3DEXPERIENCE Native Apps.

Important: Make sure you use the Standards editor available in Me > Preferences > Standards when modifying and customizing the XML generative view style files. Using other editors (such as text editors) may alter the consistency of the generative view style XML files, and may make them unusable.

Update of a Newer Version of a Generative View Style File

Once a generative view style is assigned to a view, it is embedded into the drawing/layout. That is if you update the GVS file, the style of the view itself is not modified and it remains as it was when the view was created.

To modify the style used by the view, you need to update the newer version of the generative view style XML file into the drawing/layout. To do so, select Me > Preferences > Generative View Styles. In the dialog box, select the generative view style to update and click Update .

Note the following points:

  • The newer generative view style completely overrides the older version of the generative view style in all views that use this generative view style.
  • If the drawing/layout contains views that use other generative view styles, these views are not affected by the import.

When you update a newer GVS, the views created on a previous release using the default GVS can have the benefit of the new styles and parameters added in the latest release.

To Sum-Up

For this scenario, create a drawing view with a generative view style according to the following procedure:

  1. Create View 1 using the generative view style defined in Style1.xml.

  2. As a consequence, Style1.xml is embedded into the drawing.

  3. Then, when a given parameter cannot be retrieved from Style1.xml, DefaultGenerativestyle.xml is embedded into the drawing.

  4. Finally, the missing parameter is retrieved from DefaultGenerativestyle.xml.

Important: If a given parameter cannot be retrieved from the default XML file, a predefined and non-modifiable value is used instead.



Update of a generative view file is as follows:

  1. View 1 has been created using the generative view style defined in Style1.xml that was embedded into the drawing.

  2. Update the current Style1.xml file with the latest version of the external Style1.xml file and thus the XML file is overridden.

  3. As a consequence View1 refers to updated Style1.xml.



Use of Generative View Styles

The information in this section is presented in a context, but you can use generative view styles in a 2D Layout for 3D Design context by opening a layout representation, selecting a view, and changing its generation properties. See 2D Layout for 3D Design User's Guide: Generation Tab, for more information.

Create Views Using Generative View Styles

When generating a view from the 3D, users can choose to use one of the styles defined by the administrator.

Switch a View to Another Generative View Style

Once a view has been created using a specific generative view style, it is possible to switch this view to another view style.

Apply the Generative Style of a View to Another View

You can apply the generative view style used to create a given view to another view.

Apply a Generative View Style to a View

You can apply a generative view style to a view that was created without one.