Home Page > Programming Samples and Tutorials > Visual Basic Samples > Data Flow
Data Flow VB Sample
Data Flow Sample
Visual Basic Implementation
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
ImportObjects Sub. The sub demonstrates how KernelCAD component can be
used as a background service, which can
provide export/import functionality and perform different geometric calculations
without being a part of User Interface . The ImportObjects Sub uses CreateObject()
API to create a standalone Model class, which loads model from an external file.
The objects are added to the main model of the component using IArray interface.
Functionality from STL Directory menu is implemented in mnuSTLLoad_Click and mnuSTLSave_Click
handlers, which use ISTLDataContext
interface to set options and
IModelEx
interface to perform save/load operations.
|