

1.
----------------------------------------------------------------------------
| Command     : stk_mirror                                                 |
----------------------------------------------------------------------------
| Description : Set/Unset mirroring of stackup                             |
----------------------------------------------------------------------------
| Response    : odd_mirror / even_mirror / no_mirror                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| mirror              | no/yes                       |                     |
|                     |                              |                     |
----------------------------------------------------------------------------


2.
----------------------------------------------------------------------------
| Command     : stk_lyr                                                    |
----------------------------------------------------------------------------
| Description : Set/Unset layer display of stackup                         |
----------------------------------------------------------------------------
| Response    : number of copper layers in stackup                         |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| match               | no/yes                       |                     |
|                     |                              |                     |
----------------------------------------------------------------------------


3.
----------------------------------------------------------------------------
| Command     : stk_lyr_type                                               |
----------------------------------------------------------------------------
| Description : Set/Unset layer type display of stackup                    |
----------------------------------------------------------------------------
| Response    : number of copper layers in stackup                         |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| display             | no/yes                       |                     |
|                     |                              |                     |
----------------------------------------------------------------------------


4.
----------------------------------------------------------------------------
| Command     : stk_part_num                                               |
----------------------------------------------------------------------------
| Description : Display part_num or name of materials in stackup           |
----------------------------------------------------------------------------
| Response    : number of copper layers in stackup                         |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
|part_num             | no                           | Display part name   |
|                     | yes                          | Display part num    |
----------------------------------------------------------------------------


5.
----------------------------------------------------------------------------
| Command     : stk_select                                                 |
----------------------------------------------------------------------------
| Description : select element of a stackup                                |
----------------------------------------------------------------------------
| Response    : total number of selected elements                          |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| all                 | no/yes                       |                     |
|                     |                              |                     |
----------------------------------------------------------------------------
| elem                |   >= 1                       |                     |
|                     |                              |                     |
----------------------------------------------------------------------------
| additive            | no/yes                       |                     |
|                     |                              |                     |
----------------------------------------------------------------------------


6.
----------------------------------------------------------------------------
| Command     : stk_deselect_all                                           |
----------------------------------------------------------------------------
| Description : deselect elements of a stackup                             |
----------------------------------------------------------------------------
| Response    : none                                                       |
============================================================================


7.
----------------------------------------------------------------------------
| Command     : stk_delete                                                 |
----------------------------------------------------------------------------
| Description : delete selected elements of stackup editor                 |
----------------------------------------------------------------------------
| Response    : number of stackup elements deleted                         |
----------------------------------------------------------------------------


8.
----------------------------------------------------------------------------
| Command     : stk_cut                                                    |
----------------------------------------------------------------------------
| Description : cut selected elements of stackup editor                    |
----------------------------------------------------------------------------
| Response    : number of stackup elements cut                             |
----------------------------------------------------------------------------


9.
----------------------------------------------------------------------------
| Command     : stk_copy                                                   |
----------------------------------------------------------------------------
| Description : copy selected elements of stackup editor                   |
----------------------------------------------------------------------------
| Response    : number of stackup elements added                           |
----------------------------------------------------------------------------


10.
----------------------------------------------------------------------------
| Command     : stk_paste                                                  |
----------------------------------------------------------------------------
| Description : paste from buffer into stackup                             |
----------------------------------------------------------------------------
| Response    : number of elements added                                   |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| where               | before              | preceding selected elements  |
|                     | after               | succeeding selected elements |
|                     | start               | start of stackup             |
|                     | replace             | replace selected elements    |
|                     | end                 | end of stackup               |
----------------------------------------------------------------------------


11.
----------------------------------------------------------------------------
| Command     : stk_insert                                                 |
----------------------------------------------------------------------------
| Description : insert from buffer into stackup                            |
----------------------------------------------------------------------------
| Response    : number of elements added                                   |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| where               | before              | preceding selected elements  |
|                     | after               | succeeding selected elements |
|                     | start               | start of stackup             |
|                     | replace             | replace selected elements    |
|                     | end                 | end of stackup               |
| refresh             | no/yes              | Call stk_refresh later       |
| upside              | no/yes              | Insert upsidedown            |
----------------------------------------------------------------------------
| part_number         | existing part       | May include non-numeric      |
----------------------------------------------------------------------------


12.
----------------------------------------------------------------------------
| Command     : stk_close                                                  |
----------------------------------------------------------------------------
| Description : close stackup editor                                       |
----------------------------------------------------------------------------
| Response    : None                                                       |
----------------------------------------------------------------------------


13.
----------------------------------------------------------------------------
| Command     : stk_undo                                                   |
----------------------------------------------------------------------------
| Description : undo last stackup editor operation                         |
----------------------------------------------------------------------------
| Response    : None                                                       |
----------------------------------------------------------------------------


14.
----------------------------------------------------------------------------
| Command     : stk_refresh                                                |
----------------------------------------------------------------------------
| Description : close stackup editor                                       |
----------------------------------------------------------------------------
| Response    : None                                                       |
----------------------------------------------------------------------------


15.
----------------------------------------------------------------------------
| Command     : stk_flip                                                   |
----------------------------------------------------------------------------
| Description : flip stackup.                                              |
----------------------------------------------------------------------------
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| where               | selected                     |                     |
|                     | paste_buffer                 |                     |
|                     | stackup                      |                     |
----------------------------------------------------------------------------
| Response    : Numbers of elements flipped                                |
----------------------------------------------------------------------------


16.
----------------------------------------------------------------------------
| Command     : stk_units                                                  |
----------------------------------------------------------------------------
| Description : paste from buffer into stackup                             |
----------------------------------------------------------------------------
| Response    : none                                                       |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| units               | Inch, mm, %         |                              |
----------------------------------------------------------------------------


17.
----------------------------------------------------------------------------
| Command     : stk_foil_units                                             |
----------------------------------------------------------------------------
| Description : paste from buffer into stackup                             |
----------------------------------------------------------------------------
| Response    : none                                                       |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| units               | oz, g, mm           |                              |
----------------------------------------------------------------------------


18.
----------------------------------------------------------------------------
| Command     : stk_init_cpr                                               |
----------------------------------------------------------------------------
| Description : Initialize stack with copper layers                        |
----------------------------------------------------------------------------
| Response    : number of layers                                           |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| outer_thick         | ounce values        |                              |
| inner_thick         | ounce values        |                              |
----------------------------------------------------------------------------


19.
----------------------------------------------------------------------------
| Command     : stk_set_target                                             |
----------------------------------------------------------------------------
| Description : Set target stackup parameters                              |
----------------------------------------------------------------------------
| Response    : none                                                       |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| thick               | mils (0 - 10000)    |                              |
| pos_tol             | mils (0 - 10000)    |                              |
| neg_tol             | mils (0 - 10000)    |                              |
| plate_thick         | mils (0 - 10000)    | Copper plating               |
| via_plate_thick     | mils (0 - 10)       | Copper plating of vias       |
| mask_thick          | mils (0 - 10000)    | Silk screen & Solder mask    |
| thick_type          | metal, plate,mask   |                              |
| copper_loss         | mils (-5 - 5)       |                              |
----------------------------------------------------------------------------


20.
----------------------------------------------------------------------------
| Command     : stk_set_validation                                         |
----------------------------------------------------------------------------
| Description : Set stackup validation parameters                          |
----------------------------------------------------------------------------
| Response    : none                                                       |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| min_ppg_sheets      | 0-100               | 0 - no constraint            |
| max_ppg_sheets      | 0-100               | 0 - no constraint            |
| min_sep             | 0-100               | 0 - no constraint            |
| max_sep             | 0-100               | 0 - no constraint            |
| min_ppg_thick       | 0-100               | 0 - no constraint            |
| max_ppg_thick       | 0-100               | 0 - no constraint            |
| min_core_thick      | 0-100               | 0 - no constraint            |
| max_core_thick      | 0-100               | 0 - no constraint            |
----------------------------------------------------------------------------


21.
----------------------------------------------------------------------------
| Command     : stk_set_construct                                          |
----------------------------------------------------------------------------
| Description : Set stack construct parameters                             |
----------------------------------------------------------------------------
| Response    : 0 failure, 1 success                                       |
----------------------------------------------------------------------------
| Note        : Fails if conversion of stackup to new construct fails      |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| width               | inch (0 - 100)      | 0 - Don't care               |
| height              | inch (0 - 100)      | 0 - Don't care               |
| construct           | entity name         |                              |
| vendor              | entity name         |                              |
----------------------------------------------------------------------------


22.
----------------------------------------------------------------------------
| Command     : stk_set_seq_lyr                                            |
----------------------------------------------------------------------------
| Description : Set stackup sequential lamination drill and rout layers    |
----------------------------------------------------------------------------
| Response    : None                                                       |
----------------------------------------------------------------------------
| Note        : Fails if conversion of stackup to new construct fails      |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| lyrs                | a colon separated list of drill and rout layers    |
----------------------------------------------------------------------------


23.
----------------------------------------------------------------------------
| Command     : stk_add_seq_lyr                                            |
----------------------------------------------------------------------------
| Description : Set sequential layer with its lamination type              |
----------------------------------------------------------------------------
| Response    : None                                                       |
----------------------------------------------------------------------------
| Note        : Fails if conversion of stackup to new construct fails      |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| lyr                 | drill layer         |                              |
----------------------------------------------------------------------------
| lam_type            | foil, sheet, mixed, |                              | 
|                     | auto                |                              |
----------------------------------------------------------------------------
| top_lam             | foil, sheet         | for mixed lamination only    |
----------------------------------------------------------------------------



24.
----------------------------------------------------------------------------
| Command     : stk_reset_seq_lyr_list                                     |
----------------------------------------------------------------------------
| Description : Reset seq_lyr list                                         |
----------------------------------------------------------------------------
| Response    : None                                                       |
----------------------------------------------------------------------------
| Note        : Fails if conversion of stackup to new construct fails      |
----------------------------------------------------------------------------


25.
----------------------------------------------------------------------------
| Command     : stk_add_microvia_lyr                                       |
----------------------------------------------------------------------------
| Description : Set blind_microvia layer                                         |
----------------------------------------------------------------------------
| Response    : None                                                       |
----------------------------------------------------------------------------
| Note        : Fails if conversion of stackup to new construct fails      |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| lyr                 | drill layer                                        |
----------------------------------------------------------------------------


26.
----------------------------------------------------------------------------
| Command     : stk_reset_blind_microvia_list                              |
----------------------------------------------------------------------------
| Description : Reset blind_microvia layers                                |
----------------------------------------------------------------------------
| Response    : None                                                       |
----------------------------------------------------------------------------
| Note        : Fails if conversion of stackup to new construct fails      |
----------------------------------------------------------------------------


27.
----------------------------------------------------------------------------
| Command     : stk_auto_best                                              |
----------------------------------------------------------------------------
| Description : Set stackup to best automatically generated stackup        |
----------------------------------------------------------------------------
| Response    : Thickness of new stackup on success, and 0.0 on failure    |
----------------------------------------------------------------------------
| Note        : Fails if conversion of stackup to new construct fails      |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| outer_thick         | oz (0 - 100)        | Used for Fresh_Start only    |
| inner_thick         | oz (0 - 100)        | Used for Fresh_Start only    |
| top_lam_type        | Foil Sheet          |                              |
| mode                | Fresh_Start,        |                              |
|                     | Constraint_Based    |                              |
| symmetric           | yes/no              | Default = yes                |
| iterations          | 1-2000              | How many iterations to run   |
| choose_result       | 1-2000              | Which generated result to use|
| reopen_results      | no yes              | Use previous suggestions?    |
----------------------------------------------------------------------------


28.
----------------------------------------------------------------------------
| Command     : stk_auto_open                                              |
----------------------------------------------------------------------------
| Description : Calculates and displays automatically generated stackups   |
----------------------------------------------------------------------------
| Response    : success                                                    |
----------------------------------------------------------------------------
| Note        : Fails if conversion of stackup to new construct fails      |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| outer_thick         | oz (0 - 100)        | Used for Fresh_Start only    |
| inner_thick         | oz (0 - 100)        | Used for Fresh_Start only    |
| lam_type            | Foil Sheet          |                              |
| symmetric           | yes/no              | Default = yes                |
| max_results         | positive            |                              |
| iterations          | positive            |                              |
| mode                | Fresh_Start,        |                              |
|                     | Constraint_Based    |                              |
| sort_by             | Cost, Thick,        |                              |
|                     | Diff_Cores,Diff_prepregs                           |  
| top_lam             | foil, sheet         | when lam_type = mixed        |
----------------------------------------------------------------------------


29.
----------------------------------------------------------------------------
| Command     : stk_clear                                                  |
----------------------------------------------------------------------------
| Description : clear all materials from stackup                           |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------


30.
----------------------------------------------------------------------------
| Command     : stk_imp_open                                               |
----------------------------------------------------------------------------
| Description : open impedance window                                      |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------


31.
----------------------------------------------------------------------------
| Command     : stk_imp_close                                              |
----------------------------------------------------------------------------
| Description : close impedance window                                     |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------


32.
----------------------------------------------------------------------------
| Command     : stk_imp_refresh                                            |
----------------------------------------------------------------------------
| Description : refresh impedance window                                   |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------


33.
----------------------------------------------------------------------------
| Command     : stk_imp_delete                                             |
----------------------------------------------------------------------------
| Description : delete impedance constraint                                |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------


34.
----------------------------------------------------------------------------
| Command     : stk_imp_add                                                |
----------------------------------------------------------------------------
| Description : add impedance constraint                                   |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------


35.
----------------------------------------------------------------------------
| Command     : stk_imp_improve                                            |
----------------------------------------------------------------------------
| Description : improve meeting impedance constraints                      |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------


36.
----------------------------------------------------------------------------
| Command     : stk_imp_select                                             |
----------------------------------------------------------------------------
| Description : select impedance constraint of a stackup                   |
----------------------------------------------------------------------------
| Response    : ???                                                        |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| row                 |   >= 1                       |                     |
|                     |                              |                     |
----------------------------------------------------------------------------
| col                 |   >= 1                       |                     |
|                     |                              |                     |
----------------------------------------------------------------------------
| selected            | no/yes                       |                     |
|                     |                              |                     |
----------------------------------------------------------------------------


37.
----------------------------------------------------------------------------
| Command     : stk_imp_init                                               |
----------------------------------------------------------------------------
| Description : initialize impedance matrix                                |
----------------------------------------------------------------------------
| Response    : none                                                       |
============================================================================
| Parameter            | Legal values       |          Comment             |
----------------------------------------------------------------------------
| line_width           | mil (0 - 100)      | -1 for using current default |
| spacing              | mil (0 - 100)      | -1 for using current default |
| etch_factor          | mil (0 - 100)      | -1 for using current default |
| width_variation      | mil (0 - 100)      | -1 for using current default |
| width_variation_units| Inch, mm, %        |                              | 
| allowed_change       | mil (0 - 100)      | -1 for using current default |
| allowed_change_units | Inch, mm, %        |                              |
| freq                 | Mhz (0 - 20000)    | -1 for using current default |
| mask_permittivity    | 0 - 100            | -1 for using current default |
| init_method          | Manual             |                              |   
|                      | Feature_Histogram  |                              |
|                      | Checklist          |                              |
| step                 |                    |for init_method /= manual     |
| fixed_models         | No, Yes            |                              |
----------------------------------------------------------------------------


38.
----------------------------------------------------------------------------
| Command     : stk_imp_set                                                |
----------------------------------------------------------------------------
| Description : set values of impedance constraint                         |
----------------------------------------------------------------------------
| Response    : none                                                       |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| model               | Microstrip          |                              |
|                     | Stripline           |     more to come             |
|                     | Dual_Stripline      |                              |
|                     | Differential_Microstrip |                          |
|                     | Differential_Stripline  |                          |
| line_width          | mil (0 - 100)       | -1 for using current value   |
| line_width_tol      | mil (0 - 10)        | -1 for using current value   |
| spacing             | mil (0 - 100)       | -1 for using current value   |
| target_ohm          | ohm (0 - 500)       | -1 for using current value   |
| target_tol          | ohm (0 - 100)       | -1 for using current value   |
| lyr_name            | name of layer       |                              |
| dual_lyr_name       | name of layer       | for Dual_Stripline           |
| ref1_name           | name of layer       |                              |
| ref2_name           | name of layer       | for Stripline                |
----------------------------------------------------------------------------


39.
----------------------------------------------------------------------------
| Command     : stk_imp_adj_width                                          |
----------------------------------------------------------------------------
| Description : adjusting line width to meeting impedance constraints      |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------


40.
----------------------------------------------------------------------------
| Command     : stk_report                                                 |
----------------------------------------------------------------------------
| Description : Create textual stackup report                              |
----------------------------------------------------------------------------
| Response    : none                                                       |
============================================================================
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| report_type         | Normal              | Only one report type         |
| target              | GUI, File           |                              |
| path                | legal path          | Used only when target=file   |
----------------------------------------------------------------------------


41.
----------------------------------------------------------------------------
| Command     : stk_set_start                                              |
----------------------------------------------------------------------------
| Description : begins a series of stk_set_add commands                    |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------


42.
----------------------------------------------------------------------------
| Command     : stk_set_add                                                |
----------------------------------------------------------------------------
| Description : Adds one material to the list of materials which a stackup |
|               is to be set to.                                           |
----------------------------------------------------------------------------
| Parameter           | Legal values        |          Comment             |
----------------------------------------------------------------------------
| part_number         | part number         |                              |
| upside              | no/yes              |                              |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------


43.
----------------------------------------------------------------------------
| Command     : stk_set_do                                                 |
----------------------------------------------------------------------------
| Description : ends a serise of stk_set_add commands                      |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------


44.
----------------------------------------------------------------------------
| Command     : stk_etch                                                   |
----------------------------------------------------------------------------
| Description : Etch off an entire layer of foil from a core               |
|               Or un-Etch  -- works on selected cores                     |
----------------------------------------------------------------------------
| Parameter           | Legal values        |          Comment             |
| Operation           | etch, unetch        |                              |
| pos                 | no,top, bottom, both|                              |
| refresh             | no, yes             |                              |
----------------------------------------------------------------------------
| Response    : none                                                       |
----------------------------------------------------------------------------
