Library | Module

Interface IpfcLayer



Description

This class describes a layer.

The possible values for the display status are as follows:
Direct Parent Classes:
IpfcModelItem



Property Summary

PropertyStatusas IpfcDisplayStatus
The display status



Method Summary

SubAddItem (Item as IpfcModelItem)
Adds the specified item to the layer.
FunctionCountUnsupportedItems () as Long
 
SubDelete ()
Deletes the layer.
FunctionHasUnsupportedItems () as Boolean
Returns true if the layer contains one or more item types not supported as IpfcModelItem objects in PFC. Returns false otherwise.
FunctionListItems () as IpfcModelItems
This method returns only items which are supported as IpfcModelItem objects in PFC. To identify if the layer has any items not supported in PFC, use IpfcLayer.HasUnsupportedItems().
SubRemoveItem (Item as IpfcModelItem)
Removes the specified item from the layer.



Property Detail


PropertyStatusas IpfcDisplayStatus

The display status

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - The specified layer was not found.

IpfcXToolkitInvalidName - You specified an invalid layer name.

IpfcXToolkitCantModify - display status of the layer cannot be changed







Method Detail


SubAddItem (Item as IpfcModelItem)

Adds the specified item to the layer.

The following items cannot be added 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 will throw IpfcXToolkitInvalidType exception.

Exceptions thrown(but not limited to):

IpfcXToolkitInvalidName - You specified an invalid layer name.

IpfcXToolkitInvalidType - You specified an invalid layer item type.


Parameters:
Item
The item to add



FunctionCountUnsupportedItems () as Long

 
Returns:
 



SubDelete ()

Deletes the layer.

Exceptions thrown (but not limited to):

IpfcXToolkitInvalidName - You specified an invalid layer name.

IpfcXToolkitNotFound - The system could not find a layer with the specified name.





FunctionHasUnsupportedItems () as Boolean

Returns true if the layer contains one or more item types not supported as IpfcModelItem objects in PFC. Returns false otherwise.
Returns:



FunctionListItems () as IpfcModelItems

This method returns only items which are supported as IpfcModelItem objects in PFC. To identify if the layer has any items not supported in PFC, use IpfcLayer.HasUnsupportedItems().

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - A layer with the specified name was not found.

IpfcXToolkitOutOfMemory - The layer has too many items to report.


Returns:
An array of the items on the layer



SubRemoveItem (Item as IpfcModelItem)

Removes the specified item from the layer.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - The specified layer was not found.

IpfcXToolkitInvalidName - You specified an invalid layer name.

IpfcXToolkitInvalidType - You specified an invalid layer item type.


Parameters:
Item
The layer item to remove