| Library | Package | Frames | Expand | Java Toolkit |
| Method Summary | |
|---|---|
| WFeature | CreatePattern
(ElementTree Tree, PatternType Type)
Creates a pattern of the feature with the element tree provided. |
| int | GetDimensionId
(ElementPath Path)
Retrieves the Dimension identifier for the specified element. |
| ElementTree | GetElementTree
(
/*optional*/
ComponentPath Path, FeatureElemTreeExtractOptions Option)
Creates a copy of the feature element tree. |
| /*optional*/ ExternalReferenceInfos | GetExternalParents
(ExternalReferenceType type)
Retrieves data on external (and local) parents according to the specified reference type. |
| ImportFeatureIdMaps | GetIdMap
()
Gets an array of maps between the item_id and user_id. |
| ImportFeatureData | GetImportFeatureData
()
Retrieves the current parameters of the specified import feature. |
| intseq | GetItemIds
(int UserId, ModelItemType ItemType)
Converts a user_id to item_id. |
| Sections | GetSections
()
Returns sections present in the feature |
| Solid | GetSolid
()
Retrieves the solid in which the feature is placed. |
| FeatureStatusFlag | GetStatusFlag
()
Retrieves the status flag object of the feature. |
| intseq | GetUserIds
(int ItemId, ModelItemType ItemType)
Converts a item_id to user_id. |
| Transform3Ds | GetZoneFeaturePlaneData
()
Returns information about zone reference planes used to create a zone feature |
| ZoneFeatureReferences | GetZoneFeatureReferences
()
Returns references used to create a zone feature |
| ZoneXSectionGeometries | GetZoneXSectionGeometry
()
Returns cross section geometry used to create a zone feature |
| boolean | IsCableCosmetic
()
check if the feature is a cabling cosmetic feature. |
| boolean | IsElementIncomplete
(ElementPath Path)
Determines whether the specified element is incomplete. |
| boolean | IsElementVisible
(ElementPath Path)
Determines whether the specified element is visible. |
| boolean | IsInFooter
()
|
| /*optional*/ ModelItems | ListVariedItems
()
Lists the variant items (dimensions, features, annotations) owned by an inheritance feature or flexible component. |
| /*optional*/ Parameters | ListVariedParameters
()
Lists only the variant parameters owned by an inheritance feature or flexible component. |
| /*optional*/ Integer | MoveFromFooter
()
|
| /*optional*/ Integer | MoveToFooter
()
|
| WFeature | RedefineFeature
(
/*optional*/
ComponentPath Path, ElementTree Tree, FeatCreateOptions Options,
/*optional*/
WRegenInstructions Instrs)
Redefines the feature from the element tree |
| WFeature | RedefineImportFeature
(ImportFeatureRedefSource Source)
Redefines an existing import feature from the data source. |
| Status | VisitItems
(VisitingClient visitingClient,
/*optional*/
ModelItemType itemType)
Visits all items of a given type. |
| Methods Inherited from Interface com.ptc.pfc.pfcBase.ActionSource |
|---|
| AddActionListener, RemoveActionListener, AddActionListenerWithType |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent |
|---|
| GetChild |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ParameterOwner |
|---|
| GetParam, CreateParam, ListParams, SelectParam, CreateParamWithUnits, SelectParameters |
| Methods Inherited from Interface com.ptc.wfc.wfcModelItem.WParameterOwner |
|---|
| ExportParameterTable, ApplyParameterTableset, MathcadParametersSet, MathcadInputParametersGet |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.RelationOwner |
|---|
| DeleteRelations, GetRelations, SetRelations, RegenerateRelations, EvaluateExpression |
| Methods Inherited from Interface com.ptc.wfc.wfcModelItem.WRelationOwner |
|---|
| GetRelationConstraints, UnitsUsed, UseUnits, EvaluateExpressionWithUnits |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Child |
|---|
| GetDBParent, GetOId |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ModelItem |
|---|
| GetName, SetName, GetId, GetType |
| Methods Inherited from Interface com.ptc.wfc.wfcModelItem.WModelItem |
|---|
| DeleteUserDefinedName, Unhide, Hide, IsHidden, IsNameReadOnly, IsZoneFeature, GetDefaultName |
| Methods Inherited from Interface com.ptc.wfc.wfcLayerState.LayerItem |
|---|
| IsLayerItemVisible, RemoveNoUpdate, GetLayers, AddNoUpdate |
| Method Detail |
|---|
| GetElementTree |
|---|
| ElementTree | GetElementTree | ( /*optional*/ ComponentPath Path, FeatureElemTreeExtractOptions Option) |
| Creates a copy of the feature element tree. The feature can be a regular feature or a pattern. Exceptions thrown (but not limited to): XToolkitInvalidType - Extraction of the element tree is not supported for this feature type.
|
| IsElementVisible |
|---|
| boolean | IsElementVisible | (ElementPath Path) |
| Determines whether the specified element is visible. Invisible elements are those which are added to the tree by Creo Parametric for internal reasons only, and are neither defined as needed for creation of that type of feature, nor otherwise documented.
|
| IsElementIncomplete |
|---|
| boolean | IsElementIncomplete | (ElementPath Path) |
| Determines whether the specified element is incomplete. If a feature is incomplete, this method can be used to find out which element in its tree is at fault. An incomplete feature can arise by using the option PRO_FEAT_CR_INCOMPLETE_FEAT from FeatCreateOption when calling WSolid.WCreateFeature(ElementTree, FeatCreateOptions, /*optional*/ WRegenInstructions), and does not give rise to geometry until completed.
|
| GetStatusFlag |
|---|
| FeatureStatusFlag | GetStatusFlag | () |
Retrieves the status flag object of the feature.
|
| RedefineFeature |
|---|
| WFeature | RedefineFeature | ( /*optional*/ ComponentPath Path, ElementTree Tree, FeatCreateOptions Options, /*optional*/ WRegenInstructions Instrs) |
Redefines the feature from the element tree
|
| CreatePattern |
|---|
| WFeature | CreatePattern | (ElementTree Tree, PatternType Type) |
| Creates a pattern of the feature with the element tree provided. The pattern can be of type PatternType Exceptions thrown (but not limited to): XToolkitUnsupported - Unsupported model. For instance, models which come from Multi-CAD assemblies are not supported in this release.
|
| GetDimensionId |
|---|
| int | GetDimensionId | (ElementPath Path) |
| Retrieves the Dimension identifier for the specified element. The element cannot be a compound element.
|
| GetSections |
|---|
| Sections | GetSections | () |
| Returns sections present in the feature Method do not return sections which are unavailable for use. For example, Selected trajectory for Sweep feature will not be returned Exceptions thrown (but not limited to): XToolkitUnavailableSection - The section is not available for use.
|
| GetImportFeatureData |
|---|
| ImportFeatureData | GetImportFeatureData | () |
Retrieves the current parameters of the specified import feature.
|
| GetIdMap |
|---|
| ImportFeatureIdMaps | GetIdMap | () |
| Gets an array of maps between the item_id and user_id. Exceptions thrown (but not limited to): XToolkitOutOfMemory - Insufficient memory.
|
| GetItemIds |
|---|
| intseq | GetItemIds | (int UserId, ModelItemType ItemType) |
| Converts a user_id to item_id. Exceptions thrown (but not limited to): XToolkitNotFound - The identifiers of the geometry items were not found. XToolkitInvalidType - You specified an invalid type of geometry item.
|
| GetUserIds |
|---|
| intseq | GetUserIds | (int ItemId, ModelItemType ItemType) |
| Converts a item_id to user_id. Exceptions thrown (but not limited to): XToolkitNotFound - The user identifiers was not found. XToolkitInvalidType - You specified an invalid type of geometry item.
|
| RedefineImportFeature |
|---|
| WFeature | RedefineImportFeature | (ImportFeatureRedefSource Source) |
| Redefines an existing import feature from the data source. Exceptions thrown (but not limited to): XToolkitNotImplemented - Not implemented. XToolkitBadContext - no redefine could be done for ATB feature.
|
| GetZoneFeatureReferences |
|---|
| ZoneFeatureReferences | GetZoneFeatureReferences | () |
Returns references used to create a zone feature
|
| GetZoneXSectionGeometry |
|---|
| ZoneXSectionGeometries | GetZoneXSectionGeometry | () |
Returns cross section geometry used to create a zone feature
|
| GetZoneFeaturePlaneData |
|---|
| Transform3Ds | GetZoneFeaturePlaneData | () |
Returns information about zone reference planes used to create a zone feature
|
| GetSolid |
|---|
| Solid | GetSolid | () |
Retrieves the solid in which the feature is placed.
|
| IsCableCosmetic |
|---|
| boolean | IsCableCosmetic | () |
check if the feature is a cabling cosmetic feature.
|
| GetExternalParents |
|---|
| /*optional*/ ExternalReferenceInfos | GetExternalParents | (ExternalReferenceType type) |
| Retrieves data on external (and local) parents according to the specified reference type. Exceptions thrown (but not limited to): XToolkitNotValid - Required license not found. XToolkitNotFound - No parents of parent_type are found. XToolkitOutOfMemory - There are too many references in model. Some references will be excluded. XToolkitInUse - The external parents is not NULL.
|
| VisitItems |
|---|
| Status | VisitItems | (VisitingClient visitingClient, /*optional*/ ModelItemType itemType) |
| Visits all items of a given type. The following types are supported for all users: SURFACE, QUILT, EDGE, AXIS, CURVE, POINT, CSYS, DIMENSION. The following type is supported of licenced users: ANNOTATION_ELEM. If ApplyAction of the visiting client returns a value other than TK_NO_ERROR, this method returns. If ApplyFilter returns TK_CONTINUE, the item is skipped (not passed to ApplyAction). In C++ Object Toolkit, use wfcStatusToPro and wfcStatusFromPro to convert the returned status to ProError and back. To facilitate the implementation of the visiting client, a default visiting client class is provided. The application can subclass it and override only those methods which it needs. In ApplyAction & ApplyFilter of the visiting client, pfcObject pointer must be cast to the correct visiting type as follows: SURFACE - pfcSurface QUILT - pfcQuilt EDGE - pfcEdge AXIS - pfcAxis CURVE - pfcCurve POINT - pfcPoint CSYS - pfcCsys DIMENSION - pfcDimension ANNOTATION_ELEM - wfcAnnotationElement Casting as other types may lead to unexpected behaviour. Warning: After this method returns, the visiting client stays alive (that is, will not be subject to memory release), to make its data and its methods available for the application. After the applicatoin finishes using the client, it should call WSession.ReleaseVisitor(VisitingClient) on it. Exceptions thrown (but not limited to): XToolkitNotFound - No annotation elements were found in the feature.
|
| IsInFooter |
|---|
| boolean | IsInFooter | () |
|
| MoveToFooter |
|---|
| /*optional*/ Integer | MoveToFooter | () |
| Exceptions thrown (but not limited to): XToolkitInvalidType - The specified feature is not permitted to be moved to footer. XToolkitFound - The specified feature is already in the footer.
|
| MoveFromFooter |
|---|
| /*optional*/ Integer | MoveFromFooter | () |
| Exceptions thrown (but not limited to): XToolkitFound - The specified feature is already outside the footer. XToolkitInvalidType - The specified feature is not permitted to be moved from footer.
|
| ListVariedItems |
|---|
| /*optional*/ ModelItems | ListVariedItems | () |
Lists the variant items (dimensions, features, annotations) owned by an inheritance feature or flexible component.
|
| ListVariedParameters |
|---|
| /*optional*/ Parameters | ListVariedParameters | () |
Lists only the variant parameters owned by an inheritance feature or flexible component.
|