Command Template Editor

 

Invoked ByInsert go to History Operation go to Custom Input (Part Level)

 

Use this editor during the Insert Custom Input command to define a command template (*.t) file.   The template specifies what interactive inputs are to be gathered during the Custom Input operation.  This operation, along with subsequent operations derived from it is used to create a Custom Feature.

 

Show Me the Command Template Editor

 

Command Template Editor

 

 

Show Me the Basic Steps

 

  1. Give the template a name and a description.
     

  2. Right-click on Required Inputs in the command template tree and select Add to specify user input.  The Command Field Form shown below is displayed.


    Command Field Form
     
     

  3. Fill in the Name and Prompt fields.
     

  4. Specify the type of input (e.g. number, distance, etc) using the Class combo box.  If an Options string is required, a default is given.
     

  5. For point or entity input, the Select pick filtering icon allows you to select different types of pick filtering.   When you select one of these popup options, the appropriate Options string is filled in for you.  Refer to the Tips & Techniques (for Advanced Users) section below for more information.
    The field definition for "Plane" 

  6. Pick OK from the Command Field Form when you're done.  The field definition for Plane will be added to the Command Template Editor.  Refer to the Tips & Techniques section below for more information.
     

  7. Repeat this procedure for each Required and Optional input field that you want the command template to define.
     

  8. Pick OK to accept the template and close the editor.  See below for additional editor options.

 

 

Optional Inputs are documented here.Command Template Editor Options

 

 

 

Tips & Techniques

 

Tips & Techniques

If the form will not close during the Insert Custom Input command

If the Command Input Form is redisplayed as soon as you pick OK, it means that a field on the form is not defined properly.  Check the message area for an indication of the problem.

 

 

Tips & Techniques

Why you should Export from the Command Template Editor

It's a good idea to Export your template (using a ".t" extension) for future re-use or modification.   Once you create a Custom Feature from a template, there is currently no way to recall the version of the template saved with the Custom Feature.

 

 

Tips & Techniques (for Advanced Users)

 

Tips & Techniques

Advanced users and the "Options" field

A macro/OpenVX advanced user can hand-edit the Options field using any of the template options described in the OpenVX documentation.  If you want to specify selection of an insertion plane, the Class should be set to entity and you should pick the Reference Plane option using the Select pick filtering popup menu.

 

 

Tips & Techniques

Advanced users and the "Procedure" field

A macro/OpenVX advanced user can hand-edit the Procedure field to use the editor to design command templates for their OpenVX applications.  The Procedure field defines the name of the OpenVX function(idx_in, idx_out) called after the template data has been gathered.   For a Custom Feature, this field should always be CustomOp.

 

 

Related Topics

Return to VX CAD/CAM Index