Sect3DGenerator class

This topic describes how to create new 3DO objects in the model programmatically
at runtime using Sect3DGenerator COM class. See also Object Array sample

Sect3DGenerator is an Object Generator, which allows creation of new Generic
3D Objectss. In COM terminology Sect3DGenerator is a Class Factory. It can
be instantiated in COM-enabled development environments by using either its Class ID or Program ID (see below). Note that
KernelCAD control does not have to be created in the application before creation
of the object.

In .NET environment Sect3DGenerator can be created using standard new
operator as (C# example):

Actual name of the wrapper class might be different in different versions of the
development environment. Refer to Object Browser in the project after adding a
reference to the KernelCADnet component (See Patch Tutorial).

In C++ the Sect3DGenerator can be instantiated by using its Class ID and call
to CoGetClassObject() COM function. See CObjArrayDlg::Create3DS() method
of Object Array sample for details of implementation.

In native Visual Basic an instance of the class can be created using the Program ID
and CreateObject() API as follows:

Dim gener3D
As Object

gener3D
= CreateObject("KERNELCAD.Section3D.1")

Sect3DGenerator implements a single interface I3DSectionGenerator,
which can be obtained via call to CreateInstance() COM API in C/C++ or
a cast in other languages.

Actual 3D Section objects can be created using Create() method of I3DSectionGenerator interface.
The method returns
ISection interface, which can be used in a call to Add()
method of IArray interface to insert the new object in the model or make it a
child section of another object.