KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse KernelCAD ModelsKernelCAD Models
Collapse KernelCAD ComponentsKernelCAD Components
KernelCAD Control
KernelCAD .NET Control
Methods and Properties
Menu
Model Explorer
Birds Eye View
Programming
Direct User Access
Direct Operations
Interface Queries
Printing Support
Data Types
Modes of KernelCAD Control
DIObjectGenerator class
Properties
FlatObjectArray Poperty
Context
64 bit development
Dual Mode
Initialisation Context
Overlay Editor
Memory Management
Input validation
Collapse Advanced functionalityAdvanced functionality
Collapse InterfacesInterfaces
Alphabetical list
I3DGrid
I3DBugger
I3Dpt
IAxiBase
IAxis
IBoolSection
IBoolSectionEx
IBoundary
IColor
IConstraint
IData
IDiffSurface_KC
IDIFont
IDraw
IDrawUtil
IDraw2
IElem
IElement
IKCLine
ILightSource
ILocation
ILocationEx
IMaterial
IMetrics
IMetrics2
IModel
IModel2
IModelEx
IPatch
IKCPathCollisionDetector
IProfiles
IPropertyArray
IPropertyArray2
IStdShape
IStrip
ISurface
IText
ITexture
ITransform
IUnknown
Collapse Open Cascade TechnologyOpen Cascade Technology
Collapse DataData
Collapse MovementMovement
Collapse FramesFrames
Collapse Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse GeneralGeneral
Collapse Topological InterfacesTopological Interfaces
Collapse Viewing InterfacesViewing Interfaces
Collapse Lines And CurvesLines And Curves
Collapse Symmetry InterfacesSymmetry Interfaces
Collapse Clipping plane interfacesClipping plane interfaces
Collapse AlgorithmsAlgorithms
Collapse 2D Geometry2D Geometry
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Collapse DeploymentDeployment
Collapse .NET Samples.NET Samples
Collapse C++ SamplesC++ Samples
Collapse Visual Basic SamplesVisual Basic Samples
Collapse Delphi SamplesDelphi Samples
Collapse 3D Debugger3D Debugger
Collapse DeploymentDeployment
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > Deployment > Registration
Registration

Registration of KernelCAD Controls

KernelCAD components are COM servers, in many cases information about the controls has to be entered into the Windows Registry. This process is called registration.

In certain scenarious KernelCAD components can be deployed without registration. See Registration-free deployment below.

Specific to KernelCAD Developer installations: A computer can have more than one version of full KernelCAD installation, but only one set of components can be registered at a time. Select the "Update Component Registration" Start menu option to activate a vertion of KernelCAD.

All versions are intended to be backward compatible, so an application will run with a newer versions of KernelCAD without recompilation.

Self Registration

Versions of KernelCAD prior to v4.3 are using self registration process. Most commonly this is done automatically by the installer package. From the installer package developer's point of view it means that Register property of the installed .ocx file must be set to vsdrfCOMSelfReg or similar option.

Another way to self register is to execute a command line similar to:

C:\Windows\SysWOW64\regsvr32.exe KerCADne.ocx         (32 bit applications)   or

C:\Windows\System32\regsvr32.exe KerCADne.ocx         (64 bit applicaptions)

Either way during the self registration the .ocx component is loaded into memory and a function called DllRegisterServer() is executed.

The above process involves loading a large set of dlls, on which KernelCAD depends. So starting form v4.3 the reommended way to register components on the target machine is via .xreg files:

RealAll2.exe and parametric reg files

To register, say KerCADne.ocx control, it is recommended to execute command line

RegAll2.exe KerCADne.xreg

RegAll2.exe and KerCADne.xreg are provided in the Bin folder of KernelCAD installation directory. All three RegAll2.exe, KerCADne.xreg, and KerCADne.ocx are assumed to be installed in the same folder. The Register property on the file in the installer, if used, has to be vsdrfCOMDoNotRegister or similar

This way the component is not actually loaded. Instead, a small set of required information, contained in the *.xreg file is entered into the Registry directly, which is a faster and safer way of doing it.

If both .Net and native controls need to be installed it can be done with a single command:

RegAll2.exe KerCADne.xreg KerCADe.xreg

Use /u switch to unregister the control(s) during uninstallation:

RegAll2.exe /u KerCADne.xreg KerCADe.xreg

Registration-free deployment

Sometimes KernelCAD components can be used without registration using Reg-Free COM technology of Microsort. With this method the application uses a manifest file, generated by Visual Studio or other method, located next to the application's executable file, which contains the onformation describing the KernelCAD component instead of writing it into registry. See more details in MSDN: http://msdn.microsoft.com/en-us/magazine/cc188708.aspx

This approach assumes that KernelCAD component and all supporting files are installed into the same folder as the applications executable, or in a folder pointed to by the manifest. As KernelCAD redistributable is large, this method is not suitable for cases when the component is used by many executables located in diferent folders.

Because of the above consideration and some other reasons full KernelCAD installation (KernelCAD Developer) uses traditional registration