MGED CMD attach




attach [-d display_string] [-i init_script] [-n name] [-t is_toplevel] [-W width] [-N height] [-S square_size] win_type


Display String
Init Script
Is toplevel
Square Size
Window type

Return Value(s)

No Return Values for this command.


The "attach" command is used to open a display window. The set of supported window types includes X and ogl. It should be noted that attach no longer releases previously attached display windows (i.e., multiple attaches are supported). To destroy a display window, use the release command.


mged> attach ogl
Open an ogl display window named .dm_ogl0 (assuming this is the first ogl display window opened using the default naming scheme).
mged> attach ogl
Open a ogl display window named .dm_ogl1.
mged> attach -n myOgl -W 720 -N 486 ogl
Open a 720x486 OpenGL display window named myOgl.
mged> attach -n myX -d remote_host:0 -i myInit X
*Open an X display window named myX on remote_host that is initialized by myInit.

>> *myInit might contain user specified bindings like those found in the default binding

mged> toplevel .t
Create a toplevel window named .t.
mged> attach -t 0 -S 800 -n .t.ogl ogl
Open a 800x800 OpenGl display window named .t.ogl that is not a top-level window
mged> button .t.dismiss -text Dismiss -command "release .t.ogl; destroy .t"
Create a button to dismiss the display manager etc.
mged> pack .t.ogl -expand 1 -fill both
Pack the display manager inside .t.
mged> pack .t.dismiss
Pack the Dismiss button inside .t.
mged> attach
List the help message that includes the valid display types.

See Also

No related commands.

Page Generated by David Loman on: 10/11/2007 at: 11:41:37 AM