BobCAM permits the post processor builder to also build custom pages to appear in some of the default dialog boxes in the CAM tree.
Files need to have the same name as the post in that is being used with the following extensions. (Post being used YasnacMX1.MILLPST)
Custom variable files to activate Advance Posting page for user defined variables. When one of these files is present in the posting folder, when the YasnacMX1.MILLPST is being used, an advance posting page is added to the operation dialog box with the user defined variable defined as below.
YasnacMX1.CustomZLevelRough
YasnacMX1.CustomZLevelFinish
YasnacMX1.CustomVCarve
YasnacMX1.CustomThreadMill
YasnacMX1.CustomTap
YasnacMX1.CustomSliceSpiral
YasnacMX1.CustomSlicePlanar
YasnacMX1.CustomReam
YasnacMX1.CustomOffsetContour
YasnacMX1.CustomIrregularPocket
YasnacMX1.CustomHole
YasnacMX1.CustomFaceMill
YasnacMX1.CustomEngraveVector
YasnacMX1.CustomEngrave
YasnacMX1.CustomContour
YasnacMX1.CustomChamferMill
YasnacMX1.CustomCenterHole
YasnacMX1.CustomBoring
Custom variables for Milling Settings
YasnacMX1.CustomSettings
The format for all of the preceding examples is the same, as follows.
There are 9 possible check boxes that can be accessed.
There are 25 edit boxes, and 25 Combo boxes that are on top of each other, only one of the two can be used. (COMBO_BOX 1-25, and EDIT_BOX 1-25. In the resource file one edit box is located on top of each combo box. For this reason you may only use one of the controls for each control number 1-25.
CHECK_BOX, 1, Output Value
DEFAULT_CHECK, 1, 1
EDIT_BOX, 1, REAL
TEXT_LABEL, 1, Part Height
DEFAULT_REAL, 1, 25.4
COMBO_BOX, 2, Choice 1, Choice 2, Choice 3, Choice 4, Choice 5
TEXT_LABEL, 2, Pick One
DEFAULT_COMBO_INDEX, 2, 3
EDIT_BOX, 3, INTEGER
TEXT_LABEL, 3, Integer Value
DEFAULT_INTEGER, 3, 222
EDIT_BOX, 4, STRING
TEXT_LABEL, 4, String Value
DEFAULT_STRING, 4, TESTING
The last 5 edit boxes and combo boxes are wider (COMBO_BOX 21-25).
The bold lines show the command language to define variables.
CHECK_BOX, 1, Output Value
Activate check box, #1, Use “Output Value” as the label.
DEFAULT_CHECK, 1, 1
Set default value for check box, #1, set to selected. (0 = cleared, 1 = selected)
EDIT_BOX, 1, REAL
Activate Edit box, #1, Set edit data type to a real number.
TEXT_LABEL, 1, Part Height
Set the text label for edit box, #1, to “Part Height”.
DEFAULT_REAL, 1, 25.4
Set the default value edit box, #1, to 25.4.
COMBO_BOX, 2, Choice 1, Choice 2, Choice 3, Choice 4, Choice 5
Activate combo box, #2, and set 5 selection choices (Choice 1, Choice 2, Choice 3, Choice 4, Choice 5)
TEXT_LABEL, 2, Pick One
Set Text label for combo box, #2, to “Pick One”.
DEFAULT_COMBO_INDEX, 2, 3
Set the default selection for combo box, #2, to index #3 (0 based index which would be 4th item.)
EDIT_BOX, 3, INTEGER
Activate edit box, #3, and set the value data type to Integer.
TEXT_LABEL, 3, Integer Value
Set the text label for edit box, #3, to “Integer Value”.
DEFAULT_INTEGER, 3, 222
Set the default integer value for edit box, #3, to 222
EDIT_BOX, 4, STRING
Activate edit box, #4, and set the data type to String.
TEXT_LABEL, 4, String Value
Set the text label for edit box, #4, to “String Value”
DEFAULT_STRING, 4, TESTING
Set the default string value for edit box, #4, to “TESTING”