Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
55 views10 pages

User Defined Info Window in CAT1000S

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 10

User defined

info window in CAT1000S

Manual for creating user defined info windows


Table of Contents

1 Table of Contents

1 Table of Contents......................................................... 1-2


2 User defined info windows .......................................... 2-3
3 File Format Specification............................................. 3-3
3.1 Sections .................................................................................... 3-3
3.2 Variables ................................................................................... 3-3
3.3 Format section ......................................................................... 3-4
3.4 Main section ............................................................................. 3-5
3.5 Table section ............................................................................ 3-6
4 Keywords...................................................................... 4-8
5 Example ........................................................................ 5-9

1-2 UM_User_Def_Info_Win_e.doc 08.09.05


User defined info windows

2 User defined info windows


The dialogue for "Edit graphic report" has now the possibility to select a user
defined format for the layout of the info windows. This document describes how
to create such a user defined info window.

3 File Format Specification


For each type of info window a separate info window layout file (*.iwl) has to be
generated. The files are located in the ini directory of MCOSMOS. The name of
the file is shown in the "Change type of info window" dialogue (cf.chapter
"Dialogue").

3.1 Sections
The file structure of a layout format file for the info windows is similar to an INI
file. Different sections are available.
The name of section is enclosed by square brackets
(„[name of section]“).
Some names of section depend on variable values.
Use each name of section only once in the whole file.
If a section has been defined twice, the first entry of the file is valid.
A section ends with the beginning of a new section.
Always use capital letters for the name of section.

3.2 Variables
Within a section, different variables are defined.
These variables can have different values.
The value of a variable is set by assigning the name of a value,
followed by an equal sign and the value, e.g. NoOfElem=27.
Some variables can have more than one value; if these are to be
set, a comma must separate them.
Some names of variables depend on values of other variables.
Use each name of variable only once within a section.
If a variable has been defined twice, the value of the first variable is
valid.

08.09.05 UM_User_Def_Info_Win_e.doc 3-3


File Format Specification

3.3 Format section

Section
[FORMAT] There is one format section in the file. This section contains variables
valid for the different types of deviation windows (e.g. surface
measurement mode and tolerance mode). Each type can have an own
style for the info window. This style is described in the corresponding
main section. It is possible to use the same style (main section) for
different types.

Variable
SurfModeSec Number of the main section for the layout of
surface measurement mode windows. This is an
integer between 1-999. For example Value 5
means, the layout description for the surface
measurement mode info windows can be found
int the section [main005].
BorderModeSec Number of the main section for the layout of
border measurement mode info windows.
TolModeSec Number of the main section for the layout of
position tolerance windows.
DistModeSec Number of the section for the layout of distance
along probing direction info windows.
Width With of the info window in 0.1 mm.
Height Height of the info window 0.1 mm.

It is possible to use the same main section for different measurement modes. A
field, which makes no sense for the specific measurement mode (e.g. probe
radius for a position tolerance) remains blank.

3-4 UM_User_Def_Info_Win_e.doc 08.09.05


File Format Specification

3.4 Main section

Section
[MAINXXX] This section contains variables valid for the main section of a
measurement mode. XXX determines the three-digit page
number. The number must always be a three-digit number.
Variables
NoOfTab Each info window consists of one or more
tables. This is the number of tables in the
main section. Two values have to be
allocated, the start number and the end
number of the table elements. Any table
between the start and the end number is
assigned to the main section For example:
NoOfTab=3,6 defines, that these info windows
consist of 4 independent tables. These tables
are described in the sections [Table003] to
[Table006]
RGBBackColor 3 values between 0 and 255 (Red-Green-
Blue) for the Background Colour of the info
window
PrintBack Use the background colour also for printout
Use white background for printout =0
Use the given colour for printout =1

08.09.05 UM_User_Def_Info_Win_e.doc 3-5


File Format Specification

3.5 Table section

Section
[TABLEXXX] This section contains variables for the print element table. XXX
determines the three-digit table number. The table number must
always be a three-digit number, i.e. 001 must be entered for table 1.
Variables
DrawRect Defines the draw range of the table. Four values
have to be assigned: X position, Y position, width
and height. All values have to be entered in 0.1 mm.
FontName Defines the used font. This has to be an installed
system font e.g. 'Arial'
FontSize Defines the font size in percent. This value refers to
the height of the table line.
FontStyle Defines the style of the characters. There are 3
possibilities:
0: Normal
1: Italics
2: Bold
NoRowCol Defines the number of rows and columns of the
table. Two values have to be assigned. The first
value indicates the number of rows, the second the
number of columns. The number of rows must
correspond to the text variable („TextXXX“).
WdOfRow Defines the column width in percent. This value
refers to the table width. The number of values
depends on the number of columns in the variable
„NoRowCol“. The total of the variable values must
be 100%.
TblStyle Defines the frames lines of the table, i.e. if the table
is printed with or without frame, row and column
lines. The value is calculated by connecting a string
out of the following characters:
Left line =l
Right line =r
Upper line =u
Lower line =e
Inner line of first row =w
Inner line of row =o
Inner line of first column= n
Inner line of column =c

3-6 UM_User_Def_Info_Win_e.doc 08.09.05


File Format Specification

FramColor Defines the colour style for the table frame lines
Colour from tolerance class =t
Black =b
White =w
White for display black for printout =f
The last style is necessary, if you use no
background colour (PrintBack=0). If you would use
white as colour for the frame lines, you would see
nothing on the printout
TextFlg Text alignment in the table. This refers to the
alignment within the fields defined by WdOfRow, .
Possible values:
Right justification =1
Left justification =2
Centered =3
NumFlg Alignment for integer and real values in the table.
This refers to the tabs. Possible values:
Right justification =1
Left justification =2
Centered =3
TextXXX This variable contains the text for the table. XXX
determines the three-digit text number. The text
number must always be a three-digit number, i.e.
001 must be entered for text 1. The text number
depends on the number of rows in the variable
„NoRowCol“. The columns of the table must be
separated by a semicolon („ ; “). A semicolon is
necessary for each column.

08.09.05 UM_User_Def_Info_Win_e.doc 3-7


Keywords

4 Keywords
Keywords are used in the text of the tables to apply the data of CAT1000S to an
info window. The keywords must always be enclosed by double angle brackets
e.g. „«keyword»“.

Keywords Description
Values

CadX CAD point X


CadY CAD point Y
CadZ CAD point Z

Comment Free comment line


DevStr Deviation string (e.g. -------|----**-- )
DevX Deviation X
DevY Deviation Y
DevZ Deviation Z
Label Description
LowerTol Lower tolerance
MeasX Measured point X
MeasY Measured point Y
MeasZ Measured point Z
MemNo Memory number
Mode Measurement mode
PointNo Point number
ProbeDiam Probe diameter for a point
TxtCAD Text for "CAD point"
TxtDev Text for "Deviation"
TxtLabel Text for "Label"
TxtLowerTol Text for "Lower tolerance"
TxtMeas Text for "Measurement point"
TxtMemNo Text for "Memory number"
TxtMode Text for "Measurement mode"
TxtModeBorder Text for "Border measurement mode"
TxtModeSurface Text for "Surface measurement mode"
TxtModeTol Text for "Tolerance measurement mode"
TxtPointNo Text for ""Point number"
TxtProbeDiam Text for "Probe diameter"
TxtUpperTol Text for "Upper tolerance"
UpperTol Upper tolerance

4-8 UM_User_Def_Info_Win_e.doc 08.09.05


Example

5 Example
Here is an example to define the following already existing info window:

[FORMAT]
; In this example, the same main section is used for all measurement modes.
SurfModeSec=1
BorderModeSec=1
TolModeSec=1
DistModeSec=1
Width=700
Height=148

[MAIN001]
NoOfTab=3,4; We need 2 tables to define this layout.
They are defined in [TABLE003] and [TABLE004]
RGBBackColor=255,255,255
PrintBack=0;

08.09.05 UM_User_Def_Info_Win_e.doc 5-9


Example

[TABLE003]
DrawRect=0,0,700,37
FontName=System
FontSize=95
FontStyle=0
NoRowCol=1,4
WdOfRow=20,24,28,28
TblStyle=lru
FramColor= t
TextFlg=2
NumFlg=1
Text001=«Mode»«PointNo»;«Dev»;;«ProbeDiam»

[TABLE004]
DrawRect=0,37,700,111
FontName=System
FontSize=95
FontStyle=0
NoRowCol=3,4
WdOfRow=16,28,28,28

TblStyle=lren
FramColor= t
TextFlg=2
NumFlg=1
Text001=«TxtDevStr»;«DevX»;«DevY»;«DevZ»
Text002=«TxtMeas»;«MeasX»;«MeasY»;«MeasZ»
Text003=«TxtCAD»;«CadX»;«CadY»;«CadZ»

5-10 UM_User_Def_Info_Win_e.doc 08.09.05

You might also like