Home 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,
|