MGED CMD make name

From BRL-CAD

make_name[edit]

This is a developer command.

Syntax[edit]

make_name template | -s [num]


Argument(s)[edit]

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


Return Value(s)[edit]

Autogenerated object name.


Description[edit]

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)[edit]

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[edit]

No related commands.



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