7.11.3. [Template] with basic information

[Note]Note

The "Template" element contains basic information and is mandatory.

It contains the following attributes:

  • name

    Name is the unique identifier for this sketch view. In other words, there may not exist another one by the same name.

  • unitbase

    Indicates the basic unit in which the sketch view is defined.

  • hide (set the attribute yourself if necessary)

    With "hide=1" you can prevent the template from being displayed under PARTdataManager -> 2D derivation -> Combination views.

    [Note]Note

    This option may be interesting if you create dw files explicitly for other applications (e.g. PARTtemplateDesigner ) or application purposes (e.g. for the PDF data sheet function [PDF datasheet] ).

Example:

[Template]
name=datasheet
unitbase=mm
hide=0/1

Sectional view

You can also use cuts in 2D views.

To do this, declare the section plane, direction of the section (1/-1) and optionally a shift in the Template block.

Example:

[Template]
cutPlaneType=YZ
cutPlaneDirection=1
cutPlaneDistance=0.0

Under "order", enter the desired views to be displayed:

[ELEMENT_grid1]
type=grid
padding_x=10
padding_y=10
padding_unit=percent
columns=2
rows=1
order=back,left

Example: On the left side the top view on the sectional plane, on the right side a side view on the sectional plane. In the side view a dotdashed line is displayed to mark the plane, arrows show the direction of view.

Example: On the left side the top view on the sectional plane, on the right side a side view on the sectional plane. In the side view a dotdashed line is displayed to mark the plane, arrows show the direction of view.

[Note]Note

The dw definition has priority before the manual definition.

It is only possible to enable the cut for the whole drawing, it applies for all views.