Batch (Command Line) Positioning
Batch (Command Line) Positioning
A subset of the interactive positioning commands described above are also available in command-line line form. While these can be used interactively the main purpose of them is to enable positioning to be performed in batch mode. These commands will provide visual feedback if the graphical user interface is running, but if it is not ( PRIMER started with "-d=batch" command line option) they will still function. A full listing of command-line commands is given in Appendix L .
The positioning commands are invoked by the [PRIMER >] MECHANISM command, and occupy a hierarchy as follows:
| At MECHANISM> level | ||||||||||||||
|
ASSEMBLY
|
Select an assembly by name or number, then perform one of the following operations upon it: |
|
||||||||||||
|
POINT
|
Select a point by name or number, then perform one of the following operations upon it: (Note: moving the point implicitly moves its "owner" assembly.) |
|
||||||||||||
| CONNECTION | Select a connection by name or number |
|
||||||||||||
| POSITION | Specify a position name or id | Retrieves and applies the stored position name or id | ||||||||||||
| SAVE | Specify a position id and (optional) name | Saves the current configuration as a saved position id, with optional name . | ||||||||||||
| READ_CONFIG | Specify a filename | Retrieves a free-standing dummy configuration file (the keywords and data between *MECHANISM_START and *MECHANISM_END ). Filename will usually have the extension .mcf | ||||||||||||
| ACCURACY | Specify a value | Global factor on the accuracy of the mechanism positioning process. Value must lie in the range 0.1 to 100.0 | ||||||||||||
|
ACCEPT
|
Accept the current mechanism position, save its updated geometry and return to the main [PRIMER >] prompt. | |||||||||||||
|
RESET
|
Undo all transformations and restore the initial geometry of the mechanism, remaining at this prompt level. | |||||||||||||
|
QUIT
|
Undo all transformations and restore the initial geometry of the mechanism, then return to the main [PRIMER >] prompt. | |||||||||||||
Is a numeric Degree of Freedom code made up of any permutation of 123456, where
1 = Tx, 2 = Ty, 3 = Tz, 4 = Rx, 5 = Ry, 6 = Rz
For example code 136 means restraint in Tx, Tz, Rz
Code 0 may also be used, meaning "free all restraints"