MGED CMD make name

From BRL-CAD

make_name

This is a developer command.

Syntax

make_name template | -s [num]


Argument(s)

template
Template for autoname generation.
-s
Reset counter.
num
Number in which to reset counter to.


Return Value(s)

Autogenerated object name.


Description

This command generates an object name that does not occur in the database. The name, which is generated in the format specified by template, contains an integer count. By default, this count appears at the end of the generated name, but if template contains the ‘@’ character, then the count appears at that position in the name.


Example(s)

mged> make_name wheel
returns 'wheel0'
mged> make_name wheel
returns 'wheel1'
mged> make_name wheel
returns 'wheel2'
mged> make_name wheel
returns 'wheel3'
mged> make_name tree@trunk
returns 'tree4trunk'
mged> make_name tree@trunk
returns 'tree5trunk'
mged> make_name -s
mged> make_name tree@trunk
returns 'tree0trunk'


See Also

No related commands.



Page Generated by David Loman on: 10/11/2007 at: 1:50:17 PM