Table of Contents

Tool House Page

The page triggers by Main Panel.

The key model is MachiningToolHouse. The model <xref:Hi.HiNcKits.AppService> is delivered by the host GUI.

Layout

  • Tool House Page
    • Tool List Panel The panel has CRUD (and Duplicate) of the tools. Read and Update the selected tool by the Selected Tool Editor Panel.
      • Head Line
      • Batch Action Menu
        • Select All Button
        • De-Select All Button
        • (splition bar)
        • Duplication Button
        • Remove Button
      • Create Tool Button
      • Tool List
        • Selection Checkbox (for batch action)
        • Editable Tool ID TextField
        • Editable Note/Abstract TextField
    • Selected Tool Editor Panel
    • Viewer Panel
      • Viewer ToolBar
        • Title Label
        • RenderingCanvas Tool Bar
        • EditorDisplayee Options ToolBar
          • EditorDisplayee Options Menu Dropdown
            • Head Label: Cutter
            • Show Cutter CheckBox
            • (Options of MillingCutterEditorDisplayee)
              • Shape Mode SubMenu Set ShapeMode to Solid Bounding Shape if <xref:Hi.HiNcKits.AppService>.<xref:Hi.HiNcKits.AppService.EnablePhysics> is false on GUI initialization.
                • Solid Bounding Shape Ratio Button
                • Detail Physics Shape Ratio Button Visible if <xref:Hi.HiNcKits.AppService>.<xref:Hi.HiNcKits.AppService.EnablePhysics> is true.
            • (spliter)
            • Head Label: Holder
            • Show Holder CheckBox
            • (Options of HolderEditorDisplayee)
              • Show Geometry Anchor CheckBox
              • Show Spindle Buckle CheckBox
              • Show Cutter Buckle CheckBox
              • Rendering Mode SubMenu
                • Solid CheckBox
                • Edge CheckBox
                • Hide CheckBox
      • RenderingCanvas
Tip
  • Do not apply new window for tool creation. Assume the workflow is user create a default content tool and then user setup it in by the edit panel.
  • Add a resizable splition bar between Tool List Panel, Selected Tool Editor Panel and Viewer Panel.
  • The options of MillingCutterEditorDisplayee and HolderEditorDisplayee is enabled only if the upper level options are enabled, i.e. ShowCutter and ShowHolder.
  • Use less layer of EditorDisplayee Options ToolBar for user convenient. Flatten the options of the children displayee except the ratio button group.

The Tool ID can not be repeated. When create new tool, assign a new tool ID (maybe the largest ID plus 1).

When a tool is entered, call the renderingCanvas.DispEngine.SetViewToHomeView().

Duplication Button

Use Duplicate(params object[]) to duplicate the tool.

Note/Abstract TextField

The Note/Abstract TextField shows note if note existed and is not empty string; otherwise it shows the AbstractNote. The tooltip is the abstract note.

Source Code Path

See this page for git repository.

WPF Application Source Code Path

  • Mech/ToolHouse/ToolHousePage
  • Mech/ToolHouse/ToolHouseWindow

Web Page Application Source Code Path

  • wwwroot/mech/tool-house-page.js
  • Controller/Mech/MechController.cs