MGED CMD press


press[edit]

Syntax[edit]

press buttonlabel


Argument(s)[edit]

No Arguments for this command.


Return Value(s)[edit]

No Return Values for this command.


Description[edit]

The "press" command simulates the pressing of a button. All of these button actions can be run directly as a command. The button_label indicates which button to simulate. The available buttons are:

  • help -- Provide a list of the available button_labels.
  • 35,25 -- Switch to a view from an azimuth of 35˚ and an elevation of 25˚.
  • 45,45 -- Switch to a view from an azimuth of 45˚ and an elevation of 45˚.
  • accept -- Simulate the accept button (accepts edits and writes the edited object to the database).
  • reject -- Simulate the reject button (discards edits).
  • reset -- Resets view to top and resizes such that all displayed objects are within the view.
  • save -- Remember the current view aspect and size.
  • restore -- Restore the most recently saved view.
  • adc -- Toggle display of the adc.
  • front -- Switch to view from the front (synonym for ae 0 0).
  • left -- Switch to view from the left (synonym for ae 90 0).
  • rear -- Switch to view from the rear (synonym for ae 180 0).
  • right -- Switch to view from the right (synonym for ae 270 0).
  • bottom -- Switch to view from the bottom (synonym for ae -90 -90).
  • top -- Switch to view from the top (synonym for ae -90 90).
  • oill -- Enter object illuminate mode.
  • orot -- Enter object rotate mode (must already be in matrix edit mode).
  • oscale -- Enter object scale mode (must already be in matrix edit mode).
  • oxscale -- Enter object scale (x-direction only) mode (must already be in matrix edit mode).
  • oyscale -- Enter object scale (y-direction only) mode (must already be in matrix edit mode).
  • ozscale -- Enter object scale (z-direction only) mode (must already be in matrix edit mode).
  • oxy -- Enter object translate mode (must already be in matrix edit mode).
  • ox -- Enter object translate (horizontal only) mode (must already be in matrix edit mode).
  • oy -- Enter object translate (vertical only) mode (must already be in matrix edit mode).
  • sill -- Enter solid (i.e., primitive) illuminate mode.
  • sedit -- (deprecated) Enter primitive edit mode.
  • srot -- Enter solid (i.e., primitive) rotate mode (must be in primitive edit mode).
  • sscale -- Enter solid (i.e., primitive) scale mode (must be in primitive edit mode).
  • sxy -- Enter solid (i.e., primitive) translate mode (must be in primitive edit mode).
  • zoomin -- Zoom in, synonym for zoom 2.
  • zoomout -- Zoom out, synonym for zoom 0.5.
  • rate -- Toggle between rate and absolute mode for knobs and sliders.
  • edit – (deprecated) Toggle between edit and view modes for knobs and sliders (useful during editing to allow the knobs and sliders to be used for either editing operations (in edit mode) or to adjust the view without affecting the edited object (in view mode).


Example(s)[edit]

mged> press top
Switch to view from the top direction.


See Also[edit]

No related commands.



Page Generated by David Loman on: 10/11/2007 at: 1:58:36 PM