Library | Module

Class pfcModelItem



Description

This class defines a model item.

A model item is an object associated with a model (such as feature, surface, dimension, etc.) that is identified by an integer.

The possible types of model item are as follows:


Direct Parent Classes:
pfcChild, pfcActionSource, pfcRelationOwner, pfcParameterOwner
Direct Known Subclasses:
pfcLayer, pfcSolidGeometryLayerItem, pfcBaseDimension, pfcFeature, pfcEdge, pfcSurface, pfcCoordSystem, pfcAxis, pfcQuilt, pfcCurve, pfcSimpRep, pfcSolidBody, pfcExplodedState, pfcTable, pfcNote, pfcDetailItem



Property Summary

/* readonly */ numberId
The identifier of the model item
/* readonly */ pfcModelItemTypeType
The type of model item



Method Summary

/* optional */ stringGetName ()
Gets the name of a model item.
voidSetName (string Name)
Sets the item name.



Property Detail


/* readonly */ numberId

The identifier of the model item




/* readonly */ pfcModelItemTypeType

The type of model item

Exceptions thrown (but not limited to):

pfcXInvalidModelItem - The model item is invalid.







Method Detail


/* optional */ stringGetName ()

Gets the name of a model item.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - The specified item does not have a name.


Returns:
 



voidSetName (string Name)

Sets the item name.

Exceptions thrown (but not limited to):

pfcXToolkitLineTooLong - The string passed has exceeded the maximum size, that is, PRO_NAME_SIZE.

pfcXToolkitInvalidName - The name specified is not a valid name for a model item in Creo Parametric.


Parameters:
Name
The new item name.