User's Guide > ModelItem > Layer Objects > Layer Operations
Layer Operations
Methods and Properties Introduced:
Use the property pfcLayer.Status to access the display status of a layer. The corresponding enumeration class is pfcDisplayStatus and the possible values are Normal, Displayed, Blank, or Hidden.
Use the methods pfcLayer.ListItems(), pfcLayer.AddItem(), and pfcLayer.RemoveItem() to control the contents of a layer.
* 
You cannot add the following items to a layer:
ITEM_SURFACE,
ITEM_EDGE,
ITEM_COORD_SYS,
ITEM_AXIS,
ITEM_SIMPREP,
ITEM_DTL_SYM_DEFINITION,
ITEM_DTL_OLE_OBJECT,
ITEM_EXPLODED_STATE.
For these items the method throws the exception pfcXToolkitInvalidType.
The method pfcLayer.Delete() removes the layer but not the items it contains from the model.
The method pfcLayer.CountUnsupportedItems() returns the number of item types not supported as a pfcModelItem object in the specified layer.
Was this helpful?