Data Flow C# Sample
Data Flow Sample
C# implementation
The solution located in KerneLCAD_2_1\Samples\NET\C#\DataFlow folder of the
installation directory includes KernCADLib class library project. located in
User\NET\CS\KernCADLib. Thus, if copied outside, it is recommended to copy both
Samples and User directories and remove unused subdirectories.
Open and Save As operations from the File menu are performed mostly
automatically by the component, which determines the file type by its
extension.
The File>"Import Objects" operation is performed with the help of ModelManager class,
which is isolated in a separate class library project. The library can be
expanded and shared in actual development projects. It does not have a visual
window and is using KernelCAD component as a background service, which can
provide export/import functionality and perform different geometric calculations
without being a part of User Interface .
Functionality from STL Directory menu is implemented in OnSTLDirectoryLoad and
OnSTLDirectorySave handlers, which use ISTLDataContext
interface to set options and
IModelEx
interface to perform save/load operations.
|