VrOne/Python Programming
|
ON-LINE REFERENCE DOCUMENTATION CARDINAL SYSTEMS, LLC 386-439-2525
|
VrOne/Python Configuration Class More...
The Configuration class allows
various VrOne configuration parameters to be viewed and changed.
Example:
from pycfg import *
Cfg = VrCfg ()
(VrVersion) = Cfg.GetVrVersion ()
Loads configuration from disk.
|
FileName |
Configuration file name. (0=Use
default) |
|
|
returns |
(ret) |
|
|
|
ret |
returns 0 = OK 1 = File did not
exist and was created. -1 = Could not open file. |
Records the current configuration.
|
returns |
(ret) |
|
|
|
ret |
0=Success, 1=Failed |
Returns the VrOne version string.
|
returns |
(VrVersion) |
|
|
|
VrVersion |
VrOne version string |
Sets whether or not VrOne uses
default directories.
|
UseDefaultDir |
0=Don't use default directories,
1=Use default directories |
Returns status of default
directory usage.
|
returns |
(ret) |
|
|
|
ret |
0=Not using default directories,
1=Using default directories |
Sets the default directory for a
program
|
ProgNum |
Program number |
|
DefaultDir |
Default directory |
Returns the default directory for
a program If UseDefaultDir is FALSE then NULL is returned
|
ProgNum |
Program number (see vrcfg.h) |
|
|
Override |
TRUE - Always return default
directory FALSE - If UseDefaultDir is FALSE then NULL is returned |
|
|
returns |
(ret) |
|
|
|
ret |
Default directory |
Get the current symbol filename.
|
returns |
(ret) |
|
|
|
ret |
Current symbol filename. |
Set the current symbol filename.
The specified symbol file will be loaded.
|
FileName |
Name of symbol file to load. |
Returns the directory that the
character set files are in.
|
returns |
(ret) |
|
|
|
ret |
Directory of character set
files. |
Returns the color table for screen
filename.
|
returns |
(ret) |
|
|
|
ret |
Color table for screen filename. |
Returns the color table for
plotting filename.
|
returns |
(ret) |
|
|
|
ret |
Color table for plotting
filename. |
Returns the color table override
filename.
|
returns |
(ret) |
|
|
|
ret |
color table override filename. |
Returns name of file containing
layer names.
|
returns |
(ret) |
|
|
|
ret |
Name of file containing layer
names. |
Returns the pen table filename.
|
returns |
(ret) |
|
|
|
ret |
Pen table filename. |
Sets the pen table filename.
|
FileName |
Pen table filename. |
Gets status of pen table usage.
|
returns |
(ret) |
|
|
|
ret |
0=Pen table not being used,
1=Pen table being used. |
Returns current background color.
|
returns |
(ret) |
|
|
|
ret |
Background color (1-255) |
Returns current search radius.
|
returns |
(ret) |
|
|
|
ret |
Current search radius. |
Returns current search dimension.
|
returns |
(ret) |
|
|
|
ret |
Current search dimension. |
Returns the spline chord length in
in or mm.
|
|
Returns the B-Spline increment
|
|
Returns the stroke distance for
wide lines.
|
|
Returns the stroke mode for wide
line.
|
|
Returns the fill distance for wide
lines.
|
|
Returns the minimum text size for
plotting.
|
|
Returns the minimum symbol size
for plotting.
|
|
Returns the default MBR offset
|
|
Sets the display line status.
|
DspLines |
0=Don't display lines, 1=Display
lines |
Gets the display line status.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display lines, 1=Display
lines |
Sets the display splined line
status
|
DspSplines |
0=Don't display splined lines,
1=Display splined lines |
Gets the display splined line
status
|
returns |
(ret) |
|
|
|
ret |
0=Don't display splined lines,
1=Display splined lines |
Sets the display line fonts status
|
DspLfonts |
0=Don't display line fonts,
1=Display line fonts |
Gets the display line fonts status
|
returns |
(ret) |
|
|
|
ret |
0=Don't display line fonts,
1=Display line fonts |
Sets the display construction
lines status
|
DspConstr |
0=Don't display construction
line, 1=Display construction lines |
Gets the display construction
lines status
|
returns |
(ret) |
|
|
|
ret |
0=Don't display construction
line, 1=Display construction lines |
Sets the display line points flag.
|
DspLinePoints |
0=Don't display line points,
1=Display line points |
Gets the display line points flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display line points,
1=Display line points |
Sets the display line elevations
flag.
|
DspLineElevs |
0=Don't display line elevations,
1=Display line elevations |
Gets the display line points flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display line elevations,
1=Display line elevations |
Sets the display symbols flag.
|
DspSymbols |
0=Don't display symbols,
1=Display symbols |
Gets the display symbols flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display symbols,
1=Display symbols |
Sets the display text flag.
|
DspText |
0=Don't display text, 1=Display
text |
Gets the display text flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display text, 1=Display
text |
Sets the display interactive lines
flag.
|
DspILines |
0=Don't display interactive
lines, 1=Display interactive lines |
Gets the display interactive lines
flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display interactive
lines, 1=Display interactive lines |
Sets the display interactive
symbols flag.
|
DspISymbols |
0=Don't display interactive
symbols, 1=Display interactive symbols |
Gets the display interactive
symbols flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display interactive
symbols, 1=Display interactive symbols |
Sets the display interactive text
flag.
|
DspIText |
0=Don't display interactive
text, 1=Display interactive text |
Gets the display interactive text
flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display interactive
text, 1=Display interactive text |
Sets the entity MBR offset used
when searching.
|
Offset |
MBR offset. |
Sets the color table override
filename.
|
ColorTableName |
Color table override filename |
Sets the spline chord length
|
SplineChord |
Spline chord length (in|mm) It
is expected that the parameter is in the proper units (inches or millimeter). |
Sets the B spline increment. Sets
the number of points that will be added between current points.
|
BSplineIncr |
|
Sets the cursor type
|
CursorType |
0=Cross 1=Dot |
Returns the cursor type
|
returns |
(ret) |
|
|
|
ret |
0=Cross 1=Dot |
Sets the cursor size
|
CursorSize |
Cursor size in pixels |
Returns the cursor size in pixels.
|
returns |
(ret) |
|
|
|
ret |
Cursor size in pixels |
Sets the cursor color.
|
CursorColor |
0=White 1=Black 2=Red 3=Green
4=Blue 5=Yellow |
Gets the cursor color.
|
returns |
(ret) |
|
|
|
ret |
0=White 1=Black 2=Red 3=Green
4=Blue 5=Yellow |
Sets the cursor mask size.
|
CursorSize |
Cursor mask size in pixels |
Gets the cursor mask size.
|
returns |
(ret) |
|
|
|
ret |
Cursor mask size in pixels |
Sets the cursor mask shape
|
CursorShape |
0=Square,1=Circle |
Gets the cursor mask shape
|
returns |
(ret) |
|
|
|
ret |
0=Square,1=Circle |
Sets the cursor track plane for
VrTwo.
|
TrackPlane |
0=VIEW_PLANE 1=GROUND_PLANE |
Gets the cursor track plane for
VrTwo.
|
returns |
(ret) |
|
|
|
ret |
0=VIEW_PLANE 1=GROUND_PLANE |
Returns the image pyramid
directory
|
|
Returns the image pyramid drive
|
|
Toggles the display of image
edges/names (Mono view only)
|
|
Sets the image edge display flag.
|
ImgEdges |
0=Don't display image edges,
1=Display image edges |
Gets the image edge display flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display image edges,
1=Display image edges |
Toggles the display of image
edges/names (Mono view only)
|
|
Sets the image edge display flag.
|
ImgNames |
0=Don't display image names,
1=Display image names |
Gets the image edge display flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display image names,
1=Display image names |
Set image draw mode.
|
DrawMode |
1=Draw, 3=Xor, 4=Or |
Get image draw mode.
|
returns |
(ret) |
|
|
|
ret |
1=Draw, 3=Xor, 4=Or |
Get Window shift flag.
|
returns |
(ret) |
|
|
|
ret |
0=Window shifting off, 1=Window
shifting on |
Get Window shift flag.
|
WinShift |
0=Window shifting off, 1=Window
shifting on |
Set input buffering flag.
|
BufMode |
0=Off, 1=On |
Fet input buffering flag.
|
returns |
(ret) |
|
|
|
ret |
0=Off, 1=On |
Set window synchronization flag.
|
WinSync |
0=Off, 1=On |
Get window synchronization flag.
|
returns |
(ret) |
|
|
|
ret |
0=Off, 1=On |
Set grid display flag.
|
GridStus |
0=Off, 1=On |
Get grid display flag.
|
returns |
(ret) |
|
|
|
ret |
0=Off, 1=On |
Set grid resolution.
|
GridRes |
|
Get grid resolution.
|
|
Set grid type.
|
GridType |
0=Points, 1=Lines |
Get grid type.
|
returns |
(ret) |
|
|
|
ret |
0=Points, 1=Lines |
Suspends grid display point
snapping
|
|
Resumes grid display point
snapping
|
|
Set cursor constraint mode flag.
|
CursConstStus |
0=Off, 1=On |
Get cursor constraint mode flag.
|
returns |
(ret) |
|
|
|
ret |
0=Off, 1=On |
Toggle cursor constraint flag.
|
|
Gets the Xy Digitizer Id
|
|
Sets the Xy Digitizer Id
|
XyDigId |
|
Gets Xy Digitizer delay.
|
|
Gets Xy Digitizer mode.
|
|
Returns the Xyz Digitizer Id
|
|
Sets the Xyz Digitizer Id
|
XyzDigId |
|
Gets the XYZ digitizer delay
amount.
|
|
Set VrTwo wake mode
|
WakeMode |
0=Static, 1=Roaming |
Get VrTwo wake mode
|
returns |
(ret) |
|
|
|
ret |
0=Static, 1=Roaming |
Sets VrTwo edge distance.
|
EdgeDist |
|
Gets VrTwo edge distance.
|
|
Set handwheel id
|
HwId |
|
Get handwheel id
|
|
Set handweel X scale factor.
|
HwSfX |
|
Get handweel X scale factor.
|
|
Set handweel Y scale factor.
|
HwSfY |
|
Get handweel Y scale factor.
|
|
Set handweel Z scale factor.
|
HwSfZ |
|
Get handweel Z scale factor.
|
|
Set handweel Z location.
|
HwLocZ |
0=Normal, 1=Z on right
handwheel, 2=Z on left handwheel |
Get handweel Z location.
|
returns |
(ret) |
|
|
|
ret |
0=Normal, 1=Z on right
handwheel, 2=Z on left handwheel |
Sets the Mouse Thumbwheel Scale
Factor.
|
Sf |
Scale factor (1=none) |
Returns the Mouse Thumbwheel Scale
Factor.
|
|
Sets a mouse key cross reference
|
RawKey |
Raw key value (1-16) |
|
KeyX |
Key cross reference value |
Returns the cross reference value
for a mouse key
|
RawKey |
Mouse raw device (1-16) |
|
|
returns |
(ret) |
|
|
|
ret |
Cross referenced key value |
Set Z source.
|
ZSource |
0=Instrument or Active Z, 1=Dtm
Z if active, 2=Force Z |
Get Z source.
|
returns |
(ret) |
|
|
|
ret |
0=Instrument or Active Z, 1=Dtm
Z if active, 2=Force Z |
Set active Z.
|
ActiveZ |
|
Get active Z.
|
|
Increment active Z
|
DeltaZ |
Increment amount. |
Get force Z flag.
|
returns |
(ret) |
|
|
|
ret |
0=On, 1=Off |
Set force Z flag.
|
ForceZ |
0=On, 1=Off |
Get contour interval
|
|
Set contour interval
|
ContInt |
|
Get snap z to active z flag.
|
returns |
(ret) |
|
|
|
ret |
0=On, 1=Off |
Set snap z to active z flag.
|
SnapZToActiveZ |
0=On, 1=Off |
Sets the plot format.
|
PlotFormat |
0=HPGL 1=HPGL2 2=HPGL2/RTL
3=POSTSCRIPT |
Sets the plot format.
|
returns |
(ret) |
|
|
|
ret |
0=HPGL 1=HPGL2 2=HPGL2/RTL
3=POSTSCRIPT |
Get plot interfance.
|
returns |
(ret) |
|
|
|
ret |
0=TO_FILE 1=TO_RS232 |
Returns the plotter brightness and
contrast adjustments.
|
returns |
(Bright, Contrast) |
|
|
|
Bright |
Brightness adjustment 0-100
(50=none) |
|
|
Contrast |
Contrast adjustment 0-100
(50=none) |
Sets the plotter brightness and
contrast adjustments.
|
Bright |
Brightness adjustment 0-100
(50=none) |
|
Contrast |
Contrast adjustment 0-100
(50=none) |
Returns a Vr path directory name
|
DirNum |
Directory number (0-9) |
|
|
returns |
(DirName) |
|
|
|
DirName |
Return directory name (128 char) |
Sets a Vr path directory name
|
DirNum |
Directory number (0-9) |
|
DirName |
Return directory name (128 char) |
Returns digitizer used when
starting VrOne.
|
returns |
(ret) |
|
|
|
ret |
0 = XY, 1 - XYZ, 2 - Mouse |
Returns Open last VR files flag
|
returns |
(ret) |
|
|
|
ret |
0=No 1=Yes |
Returns Open last VR files flag
|
returns |
(ret) |
|
|
|
ret |
0=No 1=Yes |
Returns prompt units
|
returns |
(ret) |
|
|
|
ret |
0=Inches 1=Millimeters |
Returns the maximum number of
VrOne applications
|
|
Set main window decimal accuracy.
|
DecAccur |
Decimal accuracy for coords in
main window. |
Get main window decimal accuracy.
|
|
Returns the number of millimeters
per inch
|
returns |
(ret) |
|
|
|
ret |
Number of mm per inch i.e. 25.4 |
Returns the meters to feet
conversion factor.
|
|
Returns the browser program file
name.
|
|
Returns the function key file
name.
|
|
Returns the Xyz digitizer menu
board command file name.
|
|
Returns the keypad menu board
command file name.
|
|
Get current macro filename.
|
|
Set beep flag.
|
BeepStus |
0=On, 1=Off |
Get beep flag.
|
returns |
(ret) |
|
|
|
ret |
0=On, 1=Off |
Returns the button status for a
single button.
|
ButtonNum |
Button number 0-11 (10=* 11=#) |
Sets the button status for a
single button.
|
ButtonNum |
Button number 0-11 (10=* 11=#) |
|
BeepStatus |
0=Off 1=On |
Sets the button status for all
buttons.
|
BeepStatus |
0=Off 1=On |
Gets the sound file name for a
beep
|
ButtonNum |
ButtonNum 0-11 (10=* 11=#) |
|
|
returns |
(BeepSound) |
|
|
|
BeepSound |
Sound file name (128 char,
Normally .wav) |
Sets the sound file name for a
beep
|
ButtonNum |
ButtonNum 0-11 (10=* 11=#) |
|
BeepSound |
Sound file name (128 char,
Normally .wav) |
Sets the normal beep sound
|
BeepSound |
Sound file name (128 char,
Normally .wav) |
Returns the normal beep sound
|
returns |
(ret) |
|
|
|
ret |
Sound file name (128 char,
Normally .wav) |
Sets the normal beep sound
|
BeepSound |
Sound file name (128 char,
Normally .wav) |
Returns the normal beep sound
|
returns |
(ret) |
|
|
|
ret |
Sound file name (128 char,
Normally .wav) |
Sets the sound of the beep when
replot is started
|
BeepSound |
Sound file name (128 char,
Normally .wav) |
Returns the sound of the beep when
replot is started
|
returns |
(ret) |
|
|
|
ret |
Sound file name (128 char,
Normally .wav) |
Sets the sound of the beep when
replot is done
|
BeepSound |
Sound file name (128 char,
Normally .wav) |
Returns the sound of the beep when
replot is done
|
returns |
(ret) |
|
|
|
ret |
Sound file name (128 char,
Normally .wav) |
Set num lock control flag.
|
State |
0=On, 1=Off |
Get num lock control flag.
|
returns |
(ret) |
|
|
|
ret |
0=On, 1=Off |