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 > KernelCAD Models > User Data > Layers
Layers

Layers

Every item in KernelCAD models has string property called "Layer Name". Layer Name should be considered as family name of the object. There is no separate "layer" objects created in KernelCAD software. In every operation, where layers are involved, only individual layer names are used to  to dynamically classify objects.

Layers are useful user-defined classification of objects independent of the child/parent relationship. The KernelCAD software itself does not modify or use layer names, unless requested by the user or programmatically

By default the Layer Name is an empty string (Default Layer).

The layer name can be used to store an application-defined string in the object. See details at User Data

In 3D Debugger Layer Name can be accessed and modified from the Model Explorer (Model > Explore in menu). To modify Layer Name select an object in the Model Explorer and type new name on the Layer combo box on the right hand side or select an existing name from the drop down list.

Layers Tab in the Model Explorer displays all objects in the model sorted by the Layer Name. Default layer contains all objects with empty Layer Name string. With the Layers Tab opened Layers menu appears, which allows to hide or show the layer's objects and renaming the layer (changing the Layer Name property for all object with the same Layer Name).

Programmatically individual Layer Name can be accessed via the IUserData interface, which can be queried from the correspondent ISection or IItem interface. Collection of all different layer names in the model can be accessed via the ILayers interface, obtained via IModel.

See also:  User Data Sample,