Save a Style Sheet in CATIA
You can save a style sheet. The style sheet determines the look and feel
of the user's report (color, font, font style, etc.).
-
Open and edit an existing .xsl style sheet to suit your requirements (color, font,
font style, etc.).
-
Open the style sheet in CATIA:
-
Select .
The New content dialog box appears.
-
In the New dialog box, select VPM
Document.
The VPM Document and Select File
dialog boxes appear.
-
In the Select File dialog box, select your style sheet, and
then click Save.
-
In the VPM Document dialog box, enter a
Name and Document Name and click
OK.
The new document is created in the PLM database.
- Optional:
To modify the style sheet when it is in CATIA:
-
Search for the document using vpmdoc: as the quick search
criteria.
-
In the search results list, right-click the document and select Check
Out.
Note:
It is impossible to use Open for Edit; the file opens
in the Windows default editor which is the web browser, and in this browser you
cannot edit the file.
-
Edit the document to suit your requirements using a dedicated .xsl editing
software.
-
In the search results list, right-click the document and select Check
In.
After you have saved your style sheet, associate the style sheet to the resource
set Style Sheet for report generation in Data Setup.
Define a Report Template
You can define a report template. The report template determines the
layout of the user's report.
-
From the Compass, click Quality Rules Reuse.
The Quality Rules Reuse
app opens.
- From the Know-how Reuse section of the action bar, click Report Definition .
The Report Template Definition dialog box appears. -
In the Report Definition area of the dialog box, enter a Report name and Report title and select the style sheet you saved previously.
-
In the Attribute Definition area of the dialog box, select the
required options and then select the Type and
Attribute from the lists. If required, create
Expressions.
-
In the Attribute Management area of the dialog box, enter the
required options for sorting, grouping, operations, etc.
- Optional:
In the Object Filter area of the dialog box, choose an attribute
type in the list, click Create Filter.
- Optional:
In the Attribute Filter dialog box, define your filter.
-
In the Report Generation Parameters area of the dialog box, enter the required options.
- Optional: Click Report Preview to see a preview of the report.
- Click Save.
After you have saved your report,associate the report to the resource set
Report Template Definition Catalog in Data Setup.
Associate Files in Data Setup
You can associate a style sheet and a report template to their respective
resource sets in the Data Setup
app.
-
From the Compass, click Data Setup.
The Data Setup
app opens.
- In the Setup Data Tables tab, right-click Style Sheet for report generation, select Create a new Resource Table, enter a name in the dialog box and click OK.
The Application Resource Table dialog box appears. The table contains a single line: Style sheet. -
In the Resource column, double-click
<Unset> and select the style sheet you previously
saved.
- In the Application Resource Table, click OK.
The resource is added as a subitem under Style Sheet for report generation. -
Repeat the steps 2 to 4, this time associating your Report Template to the
Report template definition catalog.
- Save your changes to the database when finished.
|