Difference between revisions of "MGED CMD make name"
From BRL-CAD
(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...) |
m |
||
Line 1: | Line 1: | ||
− | [[Category:MGED]] | + | [[Category:MGED|Make_name]] |
− | + | [[Category:MGED developer commands|Make_name]] | |
=make_name= | =make_name= | ||
:: This is a developer command. | :: This is a developer command. |
Latest revision as of 08:58, 18 November 2009
make_name[edit]
- This is a developer command.
Contents
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