Wednesday, 4 July 2012

Mged (Command line and GUI)

After installation of BRLCAD you can see in the my program list BRL-CAD>mged
For linux user you can type mged on your terminal or search for BRL-CAD in Application.

$ mged

There will be two windows popping up after you start. One is GUI and another is the command line. For the starting you have to learn few commands.

 Opening a creating new database
$ mged> shape_name.g<ENTER>

To assign a Titile to your datebase
mged> title MyTitle<ENTER>

To select units
mged> units in<ENTER> for inches
or mged> units mm<ENTER> for mm

To make a Sphere form the command line
mged> make shape_name.s sph<ENTER> 
where sph1.s is the name selected for the sphere

To clear the Graphic window 
mged> Z<ENTER>

To recall the previous shapes
mged> draw shape_name.s<ENTER>

To erase a particular item on the Graphical Window
mged> erase shape_name.s<ENTER>

To view the shape's parameters
mged>l shape_name<ENTER> 

To list the contents of a database
mged>ls<ENTER>

To elimate a shape or object forn datatbase
mged>kill shape_name.s<ENTER>

To quit MGED
mged>q<ENTER>


Just use these commands and see what happen. Next we will learn to make something use mged.

No comments:

Post a Comment