SHREFMODEL
(Statement)
Refer to registered model data.
SHREFMODEL (<model number>,<item>)
<model number>
Designates the reference model number (0 to 99).
<item>
Designates the data type of a reference model (0 to 8).
0:
|
Status (Presence of the model registration Yes = 0 No = -1)
|
1:
|
Width of the registered model
|
2:
|
Height of the registered model
|
3:
|
Offset X of the registered model
|
4:
|
Offset Y of the registered model
|
5:
|
File size of the registered model
|
6:
|
Registrable file size (Available capacity).
|
7.
|
Offset angle of the registered model [V1.4 or later]
|
8:
|
Compatible mode (1: for mode without angle measurement, 2: for mode with angle measurement, 3 for mode with and without angle measurement) [V1.4 or later]
|
VISSCREEN 1,0,1
|
|
VISCLS 0
|
|
IF SHREFMODEL(1,0) = 0 THEN
|
'Confirm the presence of registration
|
VISLOC 10,1
|
|
VISPRINT "Width =";SHREFMODEL(1,1)
|
'Display the width
|
VISLOC 10,2
|
|
VISPRINT "Height =";SHREFMODEL(1,2)
|
'Display the height
|
VISLOC 10,3
|
|
VISPRINT "X=";SHREFMODEL(1,3)
|
'Display the reference X coordinate
|
VISLOC 10,4
|
|
VISPRINT "Y=";SHREFMODEL(1,4)
|
'Display the Y reference coordinate
|
VISLOC 10,5
|
|
VISPRINT "Size =";SHREFMODEL(1,5)
|
'Display the file size
|
VISLOC 10,6
|
|
VISPRINT "Capacity =";SHREFMODEL(1,6)
|
'Display the available capacity
|
END IF
|
|