- multiple fixes in the Tcl commands (especially regarding the interchange between True/false and 1/0 values)
- updated the help for all Tcl Commands - in Tcl Shell, the 'help' command will add also a brief description for each command in the list
This commit is contained in:
@@ -34,6 +34,8 @@ class TclCommandSetOrigin(TclCommand):
|
||||
# List of all command aliases, to be able use old names for backward compatibility (add_poly, add_polygon)
|
||||
aliases = ['set_origin', 'origin']
|
||||
|
||||
description = '%s %s' % ("--", "Set the origin at the specified x,y location.")
|
||||
|
||||
# Dictionary of types from Tcl command, needs to be ordered
|
||||
arg_names = collections.OrderedDict([
|
||||
('loc', str)
|
||||
@@ -41,7 +43,7 @@ class TclCommandSetOrigin(TclCommand):
|
||||
|
||||
# Dictionary of types from Tcl command, needs to be ordered , this is for options like -optionname value
|
||||
option_types = collections.OrderedDict([
|
||||
('auto', bool)
|
||||
('auto', str)
|
||||
])
|
||||
|
||||
# array of mandatory options for current Tcl command: required = {'name','outname'}
|
||||
@@ -55,7 +57,7 @@ class TclCommandSetOrigin(TclCommand):
|
||||
('loc', 'Location to offset all the selected objects. NO SPACES ALLOWED in X and Y pair.\n'
|
||||
'Use like this: 2,3'),
|
||||
('auto', 'If set to True it will set the origin to the minimum x, y of the object selection bounding box.'
|
||||
'-auto=True is not correct but -auto 1 or -auto True is correct.')
|
||||
'-auto=True is not correct but -auto 1 or -auto True is correct. True (1) or False (0).')
|
||||
]),
|
||||
'examples': ['set_origin 3,2', 'set_origin -auto 1', 'origin']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user