Namespace Sample.Machining
The Sample.Machining namespace contains comprehensive examples for creating and managing machining verification and optimization projects using the Hi.Machining and Hi.MachiningProcs APIs. This namespace demonstrates the complete workflow of building verification projects from scratch, including defining cutting tool geometries with Hi.Milling.Cutters, configuring tool holders with Hi.NcMech.Holders, setting up tool libraries, defining fixture and workpiece geometries, configuring machine kinematics, and setting material properties. These examples are particularly valuable for developers who need to programmatically create complete verification and optimization projects without relying on the HiNC GUI, providing reference code for implementing advanced CNC verification and simulation functionality.
Classes
- DemoBuildMachiningProject
Demonstrates how to create and configure a MachiningProject programmatically. This sample shows how to set up MillingCutter, CylindroidHolder, MillingTool, Fixture, Workpiece, and save the project configuration to a file.
- DemoRenderingMachiningProcessAndStripPosSelection
Demonstrates integration of machining process visualization with interactive strip position selection. Shows how to load a machining project, configure rendering options, and implement user interaction. Provides a complete example of a 3D visualization application with HiAPI and WPF.
- DemoUseMachiningProject
Demonstrates how to load and use an existing MachiningProject instance. This sample shows how to set up event handlers for messages and machining step objects, execute NC files, and properly manage project resources using Dispose().