MGED CMD make name

From BRL-CAD
Revision as of 07:59, 18 August 2008 by Dloman (talk | contribs) (New page: Category:MGED =make_name= :: This is a developer command. __TOC__ ==Syntax== :make_name ''template'' | ''-s [num]'' ==Argument(s)== : '''template''' :: Template for autoname gene...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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