Offset Inset > save preset

 From:  Michael Gibson
9936.2 In reply to 9936.1 
Hi Tom, yes you can set up a shortcut key that passes in parameters to the Inset command. Each parameter corresponds to one of the controls in the UI.

The parameters available are:

thickness=2
direction=Inwards / Outwards
expand=true / false
useseparateheight=true / false
height=4
grooved=true / false
groovewidth=0.2

You specify these parameters in the "Command" part of the shortcut key, with a space separating them.

Here are some examples, you put in the whole line in the "Command" part of the shortcut key:

Inset thickness=2 direction=Outwards expand=false grooved=false useseparateheight=true height=4

Inset thickness=2 direction=Inwards expand=false grooved=false useseparateheight=false

The way you can see what parameters a command can take is by looking at the .htm file for the command, the controls in there have an id="" value, and those id values are what you can specify as a command line parameter. For example in Inset.htm there is a <moi:DistanceInput id="thickness"> element that makes the thickness input field. So if you give a command line parameter of thickness=2 that will set that input field to 2. That's a part of the UI control initialization mechanism that should work with any command.

- Michael