Professional Documents
Culture Documents
PC Dmis Reporting Training Level 1
PC Dmis Reporting Training Level 1
Reporting Training
Slide 1
Slide 2
Report Window
Report
Window is
now
separate
from Edit
Window
Slide 3
Report Window
Report
Window
Toolbar
and
Standard
windows
controls to
minimize,
restore
and close.
Starting with PC-DMIS version 4 the
Report and Edit Windows are separate.
Slide 4
New Menu for Reporting
Version 3.7 Version 4.2
Slide 5
New Menu for Reporting
Version 3.7 Version 4.2
Differences in Menu:
1. Hyperview Report has
been replaced by
Custom Report,
Template Report and
Legacy Report
2. Menu list is now
alphabetized.
3. Menu item “Screen
Capture” has been
added.
Slide 7
Edit Window Layout Dialog
Version 3.7 Version 4.2
Hyper-Reports
can no longer
be created
starting with
v4!
Now done
in the
Report Reflects that Edit Window and
Window Report Window have been
separated
Slide 8
Slide 9
Six Standard Reports
• TEXTONLY.RTP
• Text reporting with labels
• Default template unless registry entry specifies
another template
• CADONLY. RTP
• Entire report based on Cad Object with labels
• Page orientation is Portrait
• TEXTANDCAD. RTP
• Top half Cad (Cad Object) with labels
• Bottom half text (Text object) with labels
Slide 10
Six Standard Reports
• GRAPHICALANALYSIS. RTP
• Feature information is presented in the
Graphical Analysis chart
• CADONLY_LANDSCAPE. RTP
• Like CADONLY.RTP, the entire report based on
Cad Object with labels
• Page orientation is Landscape
• PPAP. RTP
• Production Part Approval Process report
• Concise tabulated report
Slide 11
Standard Reports
Header
1-Touch Reporting
TEXTONLY
Feature
1-Touch Reporting
CAD
TEXTANDCAD
Text
1-Touch Reporting
CADONLY
All 5 dimensions
shown on one page
Slide 14
Standard Reports
1-Touch Reporting
GRAPHICALANALYSIS
Graphs
Graphsforfor Circularity,
Circularity,
Cylindricity,
Cylindricity,Flatness
Flatness
and
andStraightness
Straightness
Slide 15
Standard Reports
1- Touch Reporting
CADONLY_LANDSCAPE
CADONLY report in
Landscape instead
of Portrait
orientation
Slide 16
Standard Reports
1-Touch Reporting
PPAP
Quickly determine
acceptance or rejection
Slide 17
Standard Reports
ViewSets
are not new
What is
new is their
effect on
the Report.
Slide 18
Standard Reports
Also works
in Command
Mode Status Window shows
report for current
Slide 20 command
Slide 21
Ways to Customize a Report
Right click in the text section of a report and select:
1. “Edit Object” to specify what data is to be included
in the report (e.g. Features, Alignments, etc.)
2. “Duplicate Page” to make a copy in the Report
Window of the current page
3. “Add Object on Page / Section Cut Profile” to add a
cut-away view of the CAD model
4. “Add Object on Page / Custom Label” to add a label
to the page based on a selected label template
5. “Remove Object Modifications” to Undo
modifications to an object
Slide 22
Ways to Customize a Report
6. Right click on a label and select “Edit Object” to
specify what data is to be included in a label
7. Right click on a label and select “Change Template”
to change the formatting of that data
8. Right click on a CAD label and select “Hide
Selected Labels” to make the label not visible
9. Right click on a CAD image that has hidden labels
and select “Show Hidden Labels” to make the
hidden labels visible
10.Double-click on a CAD image to modify the zoom
and orientation of the image
Slide 23
Ways to Customize a Report
11.Double-click on a CAD label to reposition the label
12.Right click on a CAD image and select “Edit
Object” to access the Label Layout Wizard
13.Right click the GraphicalAnalysis object and
change its properties
14.Double click GraphicalAnalysis object and change
zoom and orientation
15.File | Reporting | Clear Template Associated Data
16.File | Reporting | Clear All Template
Associated Data
Slide 24
Customizing a Generated Report
Clear Template Associated Data
– Removes all report customizing used in the current
part program with the current selected report
template
Slide 25
What Template is Used?
New part program (order of precedence):
Slide 26
What Template is Used?
Existing part program (order of precedence):
Slide 27
Slide 28
Report Window
PC-DMIS includes
template name in the
Report Window Title Bar
Slide 29
Report Window Toolbar
Save Report Saved
Layout Magnification Custom
Set Report as Reports
Default Full Report
Mode
Slide 30
Template Selection Dialog
Slide 31
Template Selection Dialog
Can change
preview for
report and label
templates
Slide 34
Change Previews
• New font
• Loaded with PC-DMIS
• Provides GD&T symbols
Slide 36
Slide 37
Examining Standard Templates
n ly
tO
Tex
Slide 38
Examining Standard Templates
Font
TEXTONLY.RTP in the
Report Template editor
Object
Properties Docked
Docked for selected Property
Toolbars object Sheet
Layout
Slide 39
Examining Standard Templates
Just
Toolbars and “Grab &
Property Sheet Drag”
can also float (i.e.
be undocked)
Slide 40
Examining Standard Templates
TextReportObject
CadReportObject
Label
Property
Sheet Zoom
in Ungroup Space
Zoom Make
View Snap Regroup
1:1 Same Size Redo
Points
From
Help
Slide 43
Examining Standard Templates
Click Rules
TEXTONLY.RPT in the
Report Template editor
Slide 44
Examining Standard Templates
When
Rules exist
to if BOLD
Report
Data
Data
format Rule for
Dimension
Location
Report
Expression We will talk more about
Language Rules and the Rule Tree
Editor later
Slide 45
Standard Report Templates
• Questions:
1. What happens if I delete a report template that I
have set as my default for a part program?
– If the report template is not found, “default.rtp” is used. If it
is not found, PC-DMIS creates it. It is a TextReportObject
with no rules.
– This is similar to Text Mode Dimension Report
2. What happens if I modify my report template?
– Whenever you click the Redraw button in the Report
Window, or when you run the part program, PC-DMIS will
notice that the report template has been updated and will
use that updated report template.
– This is a VERY handy feature!
Slide 46
Examining Standard Templates
Several text
objects
TextReportObject
with rules
Label Layout
CADReportObject
with rules
2 leader lines?
Feature centroid?
Color ball on leader line?
Border?
Auto-Zoom CAD image?
Slide 49
Layout in Property Sheet
Slide 50
Standard Label Templates
• 33 Current Standard Label Templates
• File_Header.lbl
• Reference_ID.lbl
• Legacy_Dimension_CAD.lbl
Slide 51
Standard Label Templates
• FCF_Label.lbl
• Line1.lbl
Slide 52
Standard Label Templates
• Line2.lbl
• Line3.lbl
Slide 53
Standard Label Templates
• Line1, Line2 and Line3 refer to lines or rows in the
Feature Control Frames Table
• Line2 is the FCF primary dimension
• In some cases, e.g. True Position of a Circle, Line1
presents the size information
• Line3 is for a secondary tolerance type or a secondary
dimension
Slide 54
Label Templates
How to view / edit a label template
Slide 55
Label Templates
File header template in Label Template Editor
Slide 56
Label Templates
Double click in
label to put in
Edit mode
Click to select
a single cell
Slide 57
Label Templates
How to change the File header label bitmap
ap
tm
bi
g e
han
C
Slide 59
Slide 60
Creating a Report Template
1
Open the
Report
Template
Editor for a
new
Template
Slide 61
Creating a Report Template
Report
Properties
Portrait or
Landscape
Section Cut
Profile
New in v4.2
Slide 63
Creating a Report Template
Sectio
nProperti
es
Section Height
and Width
Slide 64
Creating a Report Template
Properties for:
•Font
•Colors
•Alignment
•Size
•Location
•Orientation
•Text
Slide 66
Creating a Report Template
Add a bitmap
Modify properties
Slide 67
Creating a Report Template
Not
e
of “ corre
Sho latio
w”
item n
s
7
Add a TextReportObject
Slide 68
Creating a Report Template
Rules allow
you to
define how
your data
will be
presented
Click
TextReportObject
8
Slide 69
Creating a Report Template
1 3
Click to
specify when
rules apply Specify the rules
Slide 70
Creating a Report Template
Set the
condition
when rule will What additional text
apply or text expression
should be included
in the report?
Slide 71
Exporting / Importing Rules
Slide 72
Copy / Paste Rules
Slide 73
Creating a Report Template
• User Assigned Properties:
– The ability to create a template now but have the
user specify supplemental data later
But When?
• Prompt when the user selects template
– In the Template Selection Dialog, when the user selects
Open, the user is prompted for this information
– Select this for data specific to a part type but does not
change with each part that is measured
• Prompt when executing report
– Each time the part program is run, the user is prompted
for this data
– Select this for data specific to the individual part; such
as, some type of part identification
– Select this for ancillary information about the run; such
Slide 74
as, operator name, CMM ID, etc.
Creating a Report Template
Click
checkbox.
Specify
when user
will be
prompted.
Slide 75
Creating a Report Template
Note prompt
Prompted once
when template
selected, unless
user chooses to
clear template
associated data
Slide 76
Creating a Report Template
Prompt at
execution
Delete
2 lists to modify:
1. When template
selected
2. When report executed
Move up
Slide 79
Creating a Report Template
• Sections
• Ability to divide a report into sub-reports
• Each sub-report acts as if it has its own
separate report template
• Sections print out in the order that they are
defined
• Data is made available to all sections based
on two properties:
• Command Set
• Maximum Number of Pages
• Rules determine if section displays the data
Slide 80
Creating a Report Template
• Sections
• Possible Report Outline:
• Cover sheet
• Title page
• Summary Report
• Detailed data section
Slide 81
Creating a Report Template
Section
properties
Multi-section
report
Slide 82
New Section Properties
All Commands - The setting will process the entire command set in
the current section (Page tab). This is the default value.
The default value of 0 means there is no maximum and so all pages will be
Slide 83 displayed.
Example 1 of "Command Set" &
"Maximum Number of Pages"
In the following examples suppose that your report template has four
sections named A, B, C, and D and that each contains a
TextReportObject. Additionally, suppose that your part program
has enough dimensions to display three pages of dimensions per
section.
Section Max. # of Pages Command Set
A 0 All Commands
B 0 All Commands
C 0 All Commands
D 0 All Commands
PC-DMIS would display the pages in the final report like this:
A1,A2,A3,B1,B2,B3,C1,C2,C3,D1,D2,D3
Slide 84
Example 2 of "Command Set" &
"Maximum Number of Pages"
In the following examples suppose that your report template has four
sections named A, B, C, and D and that each contains a
TextReportObject. Additionally, suppose that your part program
has enough dimensions to display three pages of dimensions per
section.
Section Max. # of Pages Command Set
A 1 All Commands
B 0 All Commands
C 0 All Commands
D 1 All Commands
PC-DMIS would display the pages in the final report like this:
A1,B1,B2,B3,C1,C3,C3,D1
Slide 85
Example 3 of "Command Set" &
"Maximum Number of Pages"
In the following examples suppose that your report template has four
sections named A, B, C, and D and that each contains a
TextReportObject. Additionally, suppose that your part program
has enough dimensions to display three pages of dimensions per
section.
Section Max. # of Pages Command Set
A 1 All Commands
B 0 All Commands
C 0 Same as Previous
Section
D 1 All Commands
PC-DMIS would display the pages in the final report like this:
A1,B1,C1,B2,C2,B3,C3,D1
Slide 86
Example 4 of "Command Set" &
"Maximum Number of Pages"
In the following examples suppose that your report template has four
sections named A, B, C, and D and that each contains a
TextReportObject. Additionally, suppose that your part program
has enough dimensions to display three pages of dimensions per
section.
Section Max. # of Pages Command Set
A 1 All Commands
B 0 Continue From
Previous Section
C 0 Same as Previous
Section
D 1 All Commands
PC-DMIS would display the pages in the final report like this:
Slide 87 A1,B2,C2,B3,C3,D1
Slide 88
Label Templates
Object Toolbar
• Similar to Report Template Editor
Object Toolbar, except:
– No CadReportObject
– No Label Object
– No TextReportObject CommandTextObject
– No Leaderline
ChartObject
• But it does include:
– CommandTextObject
– AnalysisObject
– ChartObject CADImageObject AnalysisObject
– CADImageObject
Slide 89
Label Templates
Slide 90
Label Templates
Example Text Object 1 with CommandTextObject
Label ShadowStyle
property
Text Object 2
Slide 91
Label Templates
Grid Control
Slide 93
Creating a Report Template
Could be multiple cells,
entire row or entire
column
There
Thereare
are
many
many
properties
properties
here
hereto
toallow
allow
you
youtototailor
tailor
each
eachcell
cell
Slide 94
Label Templates
Legacy_Dimension.lbl
is a Grid Control
Slide 96
Label Templates
This equation
determines how many
times to repeat this
row
Slide 97
Label Templates
Rule
Rulefor
forDimension
DimensionLocation
Locationis:
is:
USE
USETEMPLATE
TEMPLATE"legacy_dimension.lbl"
"legacy_dimension.lbl"
3 Rows Point
4 Rows Sphere
Same
Cone Label
5 Rows Templat
e
Slide 98
Label Templates
List
Tab based
le s
elec on
ted
Slide 99
Slide
100
Rule Tree Editor
Main categories of
Rules
Slide
101
Rule Tree Editor
Specify to what
the label shall
apply. Here Click
Features are Add to
highlighted. add rule
Slide
102
Rule uses Label Template
Already
Alreadyfilled
filledinin
for
foryou.
you.This
Thisrule
rule
applies
appliestotoall
all
Features
Features
Check here
… or browse
Enter Label Template file name For the label
template
Slide
103
Rule Uses Text Expression
Check here
IF Command Type = Features Then DISPLAY TEXT EXPRESSION “Message for features"
Slide
104
Create a Report Template
Conditionally
Conditionally
outputtext
output text
expression
expression
If the
MINOR_WORD_TOGGLE
of the referenced feature
is “CIRCLE” then display
its BF_MATH_TYPE
Slide
105
Create a Report Template
Rule
added to
the Rule
Tree
Slide
106
What if Rules Conflict?
All apply?
Rule Here
None?
Which one?
Rule Here
Child
overrules
Parent !
What if there
was a rule here?
Slide
107
Rules about Rules
Rule Tree Rules
• Multiple rules per command
• Can be applied unconditionally or conditionally
• A rule can put out text directly or provide
information based on the format of a label
template
• Can use conditional expressions using the
Reporting Expression Language
• Can use a text expression using the Reporting
Expression Language
• You can specify an initial grid format (label
template)
• You can specify order that the rules are applied
• Parent node rule applies to a child node only if
Slide the child node has no rule
108
Slide
109
Report Expression Language
• See the Help File
• Table of Contents
• PC-DMIS 4 Core Help File
• Reporting Measurement Results
• Creating Custom Reports
• About Report Expressions
• Edit Window pop-up can provide data type
name used in report expressions
• Can also be used in properties
Slide 110
Typical Report Language Expressions
=ID - This displays the feature or dimension ID.
=DIM_MEASURED:N - This displays a dimension's measured value.
=UNIT_TYPE - This displays the unit What is “N”? for the feature or
of measurement
dimension.
=LOADSTR - This loads a string from a table of stored strings within PC-
DMIS.
=AXIS:N - This displays the current axis name The(XAXIS,
“N”YAXIS, or ZAXIS).
=NOMINAL:N - This displays the nominal data for aevaluates
expression feature.
=F_PLUS_TOL:N - This displays a feature's toplus tolerance.
the current
=F_MINUS_TOL:N - This displays a feature's minus
iteration tolerance.
value of a
=DIM_OUTTOL:N - This displays the out repeating
of tolerance value
row or for a
dimension.
column.
=DIM_MAX:N - This displays the maximum possible in-tolerance upper
value for a dimension.
=DIM_MIN:N - This displays the minimum possible in-tolerance lower
value for a dimension.
Slide 111
Report Expression Language
Legacy_Dimension.lbl
=GDT_SYMBOL
Slide 112
Report Expression Language
TOL
=TOL(NOMINAL:N,DIM_OUTTOL:N, 0.0, 0.0)
From Help
Slide 113
Report Expression Language
Legacy_Dimension.lbl
=TOL(DIM_MEASURED:N,DIM_OUTTOL:N,0.0,0.0)
Slide 114
=UNIT_TYPE
Report Expression Language
There are four areas where you can insert report
expressions:
Slide 115
Report Expression Language
From Help:
Slide 116
Report Expression Language
Edit Rule / Conditional Expression
TOGGLEVALUE(TEXT_ANALYSIS)>0
Edit Rule / Text Expression
***** Dimension is Out-Of-Tolerance *****
GridControlObject / Repeat Expression
=COUNT(AXIS)
Property Sheet / Properties with text values
=REF_ID
=REVISION_NUMBER
=PART_NAME
=SYSTEMTIME("HH:mm")
GridControlObject / Cell
=RGB("Blue",0,0,255) + RGB(" Black",0,0,0) + RGB(" Yellow",255,255,0)
Blue Black Yellow
=TOL(NOMINAL:N,DIM_OUTTOL:N, 0.0, 0.0)
Slide 117
ActiveX Controls
• Can be added:
• Directly to a Label Template
• To a cell of a Grid Control
• Directly to a Report Template
• 6 ActiveX controls ship with PC-DMIS
• ActiveX controls have 2 sets of properties
• Properties common to all ActiveX controls
• e.g. This.Left
• Properties unique to a control (.X)
• e.g. This.X.EventReportData
Slide 118
ActiveX Controls
1. Best Fit Analysis
Red dots –
before best
fit
Used for
Used forAlignments
Alignments
Slide 119
ActiveX Controls
2. Dimension Analysis
Slide
120
ActiveX Controls
3. Feature Analysis
Slide
121
ActiveX Controls
Slide
122
Uses for ActiveX Controls
• Best Fit Analysis
• BEST_FIT_ANALYSIS.LBL
• Used in Best Fit 2D & 3D Alignment rule in TextOnly.RTP
• Feature Analysis
• FEATURE.LBL
• Used in Features rule in TextOnly.RTP
• Dimension Report Linear
• LEGACY_DIMENSION.LBL
• Used in Dimension Location rule in TextOnly.RTP
• Dimension Report Radial
• LEGACY_DIMENSION_TRUE_POSITION.LBL
• Used in Dimension True Position rule in TextOnly.RTP
Slide
123
Uses for ActiveX Controls
• Dimension Analysis
• Not used directly in a template
• Used by GraphicalAnalysis
• Does not have exposed methods
• It is in the list when you insert an ActiveX control into a
template
• Dimension Report Linear2
• Not currently used by any standard template
• Could be used in place of Dimension Report Linear in
Legacy_Dimension.lbl
• Changes to use Dimension Report Linear2 in
Legacy_Dimension.lbl
Set EventReportData to This.X.EventReportData ReportData
Set Deviation to =DIM_DEVIATION:N
Set NegativeTolerance to =F_MINUS_TOL:N
Set PositiveTolerance to =F_PLUS_TOL:N
Slide
124
Event Report Data
Best_Fit_Analysis.lbl
Slide
125
Automation
1
From Help
2 3 4 5 6
Slide
126
Automation
Dim App As PCDLRN.Application
Set App = CreateObject("PCDLRN.Application") 1
Dim Reports As PCDLRN.ReportTemplates
Set Reports = App.ReportTemplates 2
Dim Report As PCDLRN.ReportTemplate
Set Report = Reports.Add 3
Dim Sections As PCDLRN.Sections
Set Sections = Report.Sections 4
Dim Section As PCDLRN.Section
5
Set Section = Sections.Item(1)
Dim ReportObjects As PCDLRN.ReportControls
Set ReportObjects = Section.ReportControls 6
Slide
127
Slide
128
Custom Reports
• Unlike templates, Custom Reports are specific to a
part program
• Custom Reports are stored in the part program
• Custom Reports are very similar to Hyperview
Reports
• Tools exist to convert Hyperview Reports to
Custom Reports
• Custom Reports are created via “drag ‘n drop” from
the Edit Window (Summary Mode)
• You can use a Custom Report from another part
program as a “starting point”
Slide
129
Editing a Custom Report
Inthis
In thispart
partprogram
program
In
Inanother
anotherpart
partprogram
program
Slide
130
Creating a Custom Report
Always
Alwaysstored
storedin
inthis
this
part
partprogram
program
Slide
131
Creating a Custom Report
Report Template
Object Bar
Label Template
Object Bar
Slide
132
Creating a Custom Report
Slide
133
Creating a Custom Report
Uses
File_Header.lbl
as specified in
the Rule Tree
Drag ‘n Drop
Slide
134
Creating a Custom Report
Uses
Uses
Feature.lbl as
Feature.lbl as
specified in
specified in the
the
Rule Tree
Rule Tree
Slide
135
Creating a Custom Report
Uses
legacy_Dimension.lbl as
specified in the Rule Tree
Slide
136
Creating a Custom Report
To change feature or
dimension, drag onto
Slide
existing label
137
Creating a Custom Report
Slide
140
Creating a Custom Report
Slide
141
Creating a Custom Report
Slide
142
Creating a Custom Report
Note
equations
Aligned grid.
Added text to two cells.
Slide
143
Creating a Custom Report
CADReportObject
also has a Rule Tree
Slide
144
Creating a Custom Report
International
International
NOsign
NO sign
saysthat
says that
thisisisnot
this not
allowed
allowed
Slide
148
Questions?
Slide
149