layer Attribute

Applies to a feature. Assigns a layer to a feature. Cannot be used to retrieve the layer number. 
Reminder: you must select the View->Toolbars->GraphicProperties command
to display the Graphic Properties toolbar whereby you can assign a layer to a feature. See the CATIA Infrastructure User's Guide for more information on layers.

Syntax

feature.layer: Integer

Example

In the Knowledge Advisor rule below, Integer.1 is an integer created by f(x)
PartBody\Pad.1 .Layer = Integer.1


Sample

KwrTopology.CATPart