| Library | Package | Frames | Expand | Java Toolkit |
| Method Summary | |
|---|---|
| void | ActivateSimpRep
(SimpRep SimpRep)
Activates the specified simplified representation. |
| Unit | CreateCustomUnit
(String Name, UnitConversionFactor ConversionFactor, Unit ReferenceUnit)
Creates a custom unit based on name, conversion factor and reference unit. |
| Feature | CreateFeature
(FeatureCreateInstructions Instructions)
Not implemented in the current release. Creates a feature, based on the instructions provided. |
| Feature | CreateImportFeat
(IntfDataSource IntfData,
/*optional*/
CoordSystem CoordSys,
/*optional*/
ImportFeatAttr FeatAttr)
Creates a new import feature in the solid (part). Assembly case is not supported. |
| FeatureGroup | CreateLocalGroup
(Features Members, String Name)
Creates a local group out of the specified set of features. |
| ModelItem | CreateNote
(stringseq Lines,
/*optional*/
ModelItem Owner)
|
| SimpRep | CreateSimpRep
(CreateNewSimpRepInstructions Instructions)
Creates a simplified representation based on the supplied instructions. |
| FeatureGroup | CreateUDFGroup
(UDFGroupCreateInstructions Instructions)
Creates a FeatureGroup, based on the instructions provided. |
| UnitSystem | CreateUnitSystem
(String Name, UnitSystemType Type, Units Units)
Creates a new unit system in the model. |
| void | DeleteSimpRep
(SimpRep SimpRep)
Deletes the specified simplified representation from its owner model. |
| Outline3D | EvalOutline
(
/*optional*/
Transform3D Trf,
/*optional*/
ModelItemTypes ExcludeTypes)
Computes the outline of a solid. |
| void | ExecuteFeatureOps
(FeatureOperations Ops,
/*optional*/
RegenInstructions Instrs)
Performs the specified feature operations. |
| void | ExportShrinkwrap
(ShrinkwrapExportInstructions Instructions)
Exports a solid model to shrinkwrap format. |
| /*optional*/ Double | GetAbsoluteAccuracy
()
Get method for attribute "AbsoluteAccuracy" The absolute accuracy of the solid or null, if relative accuracy is used |
| SimpRep | GetActiveSimpRep
()
Returns the current active simplified representation. |
| /*optional*/ XSection | GetCrossSection
(String Name)
Returns a cross-section object, given its name. |
| SolidBody | GetDefaultBody
()
Returns the default body of the solid. |
| SolidBody | GetEdgeSolidBody
(Edge thisEdge)
Returns the body to which the edge belongs. |
| /*optional*/ Feature | GetFeatureById
(int Id)
Retrieves the specified feature, given its identifier. |
| /*optional*/ Feature | GetFeatureByName
(String Name)
Locates the feature object, given its name. |
| Outline3D | GetGeomOutline
()
Get method for attribute "GeomOutline" The outline of the solid with respect to the base coordinate system orientation |
| SimpRep | GetGeomRep
()
Returns the object representing the solid model's Geometry Rep. |
| SimpRep | GetGraphicsRep
()
Returns the object representing the solid model's Grpahics Rep. |
| boolean | GetIsSkeleton
()
Get method for attribute "IsSkeleton" true if the model is a skeleton model, false otherwise. |
| MassProperty | GetMassProperty
(
/*optional*/
String CoordSysName)
Gets the mass properties for the solid. |
| MassProperty | GetMassPropertyWithDensity
(
/*optional*/
String CoordSysName, MPDensityUse DensityOpt,
/*optional*/
Double density)
|
| SimpRep | GetMasterRep
()
Returns the object representing the solid model's Master Rep. |
| UnitSystem | GetPrincipalUnits
()
Gets the system of units assigned to the solid model. |
| /*optional*/ Double | GetRelativeAccuracy
()
Get method for attribute "RelativeAccuracy" The relative accuracy of the solid or null, if absolute accuracy is used |
| SimpRep | GetSimpRep
(String SimpRepName)
Returns the handle to the specified simplified representation. |
| SolidBody | GetSurfaceSolidBody
(Surface thisSurf)
Returns the body to which the surface belongs. |
| /*optional*/ Unit | GetUnit
(String Name,
/*optional*/
Boolean ByExpression)
Get the handle to a particular unit based on name or expression. |
| boolean | HasRetrievalErrors
()
Identifies if a previous call to retrieve the model resulted in errors. |
| /*optional*/ XSections | ListCrossSections
()
Lists the cross-sections in the solid model. |
| /*optional*/ Features | ListFailedFeatures
()
Retrieves the list of failed features in the part or assembly. |
| /*optional*/ Features | ListFeaturesByType
(
/*optional*/
Boolean VisibleOnly,
/*optional*/
FeatureType Type)
Lists the features according to type. |
| FeatureGroups | ListGroups
()
Collect groups (including UDFs) in the solid. |
| Units | ListUnits
(
/*optional*/
UnitType Type)
Lists the units available in the model. |
| UnitSystems | ListUnitSystems
()
Lists the unit systems available in the model. |
| void | Regenerate
(
/*optional*/
RegenInstructions Instrs)
Regenerates the solid. |
| SimpRep | SelectSimpRep
()
Enables the user to select a simplified representation. |
| void | SetAbsoluteAccuracy
(
/*optional*/
Double value)
Set method for attribute "AbsoluteAccuracy" The absolute accuracy of the solid or null, if relative accuracy is used |
| void | SetPrincipalUnits
(UnitSystem Units, UnitConversionOptions Options)
Sets the system of units for the solid. |
| void | SetRelativeAccuracy
(
/*optional*/
Double value)
Set method for attribute "RelativeAccuracy" The relative accuracy of the solid or null, if absolute accuracy is used |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent |
|---|
| GetChild |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ModelItemOwner |
|---|
| GetItemByName, GetItemById, ListItems |
| Methods Inherited from Interface com.ptc.pfc.pfcView.ViewOwner |
|---|
| RetrieveView, GetView, SaveView, GetCurrentViewTransform, SetCurrentViewTransform, CurrentViewRotate, ListViews, GetCurrentView |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Child |
|---|
| GetDBParent, GetOId |
| Methods Inherited from Interface com.ptc.pfc.pfcBase.ActionSource |
|---|
| AddActionListener, RemoveActionListener, AddActionListenerWithType |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.RelationOwner |
|---|
| DeleteRelations, GetRelations, SetRelations, RegenerateRelations, EvaluateExpression |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ParameterOwner |
|---|
| GetParam, CreateParam, ListParams, SelectParam, CreateParamWithUnits, SelectParameters |
| Method Detail |
|---|
| GetDefaultBody |
|---|
| SolidBody | GetDefaultBody | () |
Returns the default body of the solid.
|
| GetSurfaceSolidBody |
|---|
| SolidBody | GetSurfaceSolidBody | (Surface thisSurf) |
Returns the body to which the surface belongs.
|
| GetEdgeSolidBody |
|---|
| SolidBody | GetEdgeSolidBody | (Edge thisEdge) |
Returns the body to which the edge belongs.
|
| GetGeomOutline |
|---|
| Outline3D | GetGeomOutline | () |
The outline of the solid with respect to the base coordinate system orientation
|
| GetRelativeAccuracy/SetRelativeAccuracy |
|---|
| /*optional*/ Double | GetRelativeAccuracy | () |
| void | SetRelativeAccuracy | ( /*optional*/ Double value) |
The relative accuracy of the solid or null, if absolute accuracy is used
|
| GetAbsoluteAccuracy/SetAbsoluteAccuracy |
|---|
| /*optional*/ Double | GetAbsoluteAccuracy | () |
| void | SetAbsoluteAccuracy | ( /*optional*/ Double value) |
The absolute accuracy of the solid or null, if relative accuracy is used
|
| Regenerate |
|---|
| void | Regenerate | ( /*optional*/ RegenInstructions Instrs) |
| Regenerates the solid.
Regeneration in No-Resolve mode (default mode in Creo Elements/Pro) is not supported. This method will throw XToolkitBadContext, if Creo Parametric is running in No-Resolve mode. To continue with the Pro/ENGINEER Wildfire 4.0 behavior in Resolve mode, set the configuration option 'regen_failure_handling' to 'resolve_mode'. Exceptions thrown (but not limited to): XToolkitUnattachedFeats - Unattached features were detected, but there was no regeneration failure XToolkitRegenerateAgain - The model is too complex to regenerate the first time XToolkitBadContext - Invalid regen flags and/or combination of regeneration flags if mixed with pfcRegenInstructions::SetForceRegen as true.
|
| ExecuteFeatureOps |
|---|
| void | ExecuteFeatureOps | (FeatureOperations Ops, /*optional*/ RegenInstructions Instrs) |
| Performs the specified feature operations.
This method is not supported in No-Resolve mode (default regeneration mode in Creo Elements/Pro). It will throw XToolkitBadContext, if Creo Parametric is running in No-Resolve mode. To continue with the Pro/ENGINEER Wildfire 4.0 behavior in Resolve mode, set the configuration option 'regen_failure_handling' to 'resolve_mode'. Exceptions thrown (but not limited to): XToolkitNotValid - One or more input features is not permitted to be suppressed. XToolkitSuppressedParents - Suppressed parents were found. <reference 6 to unknown entity pfcExceptions::pfcXToolkitInvalidPtr> - Feature operation is invalid
|
| EvalOutline |
|---|
| Outline3D | EvalOutline | ( /*optional*/ Transform3D Trf, /*optional*/ ModelItemTypes ExcludeTypes) |
Computes the outline of a solid.
|
| CreateLocalGroup |
|---|
| FeatureGroup | CreateLocalGroup | (Features Members, String Name) |
| Creates a local group out of the specified set of features.
The supplied features must represent a contiguous set of features in the part or assembly.
|
| CreateNote |
|---|
| ModelItem | CreateNote | (stringseq Lines, /*optional*/ ModelItem Owner) |
|
| ListFailedFeatures |
|---|
| /*optional*/ Features | ListFailedFeatures | () |
Retrieves the list of failed features in the
part or assembly.
|
| ListFeaturesByType |
|---|
| /*optional*/ Features | ListFeaturesByType | ( /*optional*/ Boolean VisibleOnly, /*optional*/ FeatureType Type) |
| Lists the features according to type.
Exceptions thrown (but not limited to): XToolkitNotFound - No failed feature was found.
|
| ListCrossSections |
|---|
| /*optional*/ XSections | ListCrossSections | () |
| Lists the cross-sections in the solid model.
Exceptions thrown (but not limited to): XToolkitNotFound - Model doesn't have cross-sections.
|
| GetCrossSection |
|---|
| /*optional*/ XSection | GetCrossSection | (String Name) |
| Returns a cross-section object, given its name.
Exceptions thrown (but not limited to): XToolkitNotFound - Model doesn't have cross-sections.
|
| GetIsSkeleton |
|---|
| boolean | GetIsSkeleton | () |
| true if the model is a skeleton model, false otherwise. Exceptions thrown (but not limited to): XToolkitNotValid - Required license not found.
|
| HasRetrievalErrors |
|---|
| boolean | HasRetrievalErrors | () |
| Identifies if a previous call to retrieve the model resulted in errors.
Models may be retrieved even if some component models are missing. The missing components will be suppressed, and geometry referencing these models will be frozen. The retrieval methods will not give an indication that this error occurred. Call this method after retrieval to see if any such errors occurred. Exceptions thrown (but not limited to): XToolkitNotFound - Errors were not found for this model.
|
| GetFeatureByName |
|---|
| /*optional*/ Feature | GetFeatureByName | (String Name) |
| Locates the feature object, given its name.
Exceptions thrown (but not limited to): XToolkitNotFound - The item was not found.
|
| GetFeatureById |
|---|
| /*optional*/ Feature | GetFeatureById | (int Id) |
| Retrieves the specified feature, given its identifier.
Exceptions thrown (but not limited to): XToolkitNotExist - Item with such id and type does not exist.
|
| CreateImportFeat |
|---|
| Feature | CreateImportFeat | (IntfDataSource IntfData, /*optional*/ CoordSystem CoordSys, /*optional*/ ImportFeatAttr FeatAttr) |
|
Creates a new import feature in the solid (part). Assembly case is not supported.
Exceptions thrown (but not limited to): XToolkitUnsupported - Creo Parametric does not support import of the indicated file. XToolkitNotExist - No profile found. XToolkitInvalidFile - profile is not readable.
|
| ActivateSimpRep |
|---|
| void | ActivateSimpRep | (SimpRep SimpRep) |
| Activates the specified simplified representation.
Exceptions thrown (but not limited to): XToolkitNotFound - The specified simplified representation was not found in the model.
|
| GetActiveSimpRep |
|---|
| SimpRep | GetActiveSimpRep | () |
Returns the current active simplified representation.
|
| CreateSimpRep |
|---|
| SimpRep | CreateSimpRep | (CreateNewSimpRepInstructions Instructions) |
Creates a simplified representation based on the supplied instructions.
|
| SelectSimpRep |
|---|
| SimpRep | SelectSimpRep | () |
| Enables the user to select a simplified representation.
Exceptions thrown (but not limited to): XToolkitUserAbort - The user aborted simplified representation selection.
|
| GetSimpRep |
|---|
| SimpRep | GetSimpRep | (String SimpRepName) |
| Returns the handle to the specified simplified representation.
Exceptions thrown (but not limited to): XToolkitNotFound - The function did not find the simplified representation in the solid.
|
| GetMasterRep |
|---|
| SimpRep | GetMasterRep | () |
| Returns the object representing the solid model's Master Rep.
Exceptions thrown (but not limited to): XToolkitNotFound - The function did not find the simplified representation in the solid.
|
| GetGraphicsRep |
|---|
| SimpRep | GetGraphicsRep | () |
| Returns the object representing the solid model's Grpahics Rep.
Exceptions thrown (but not limited to): XToolkitNotFound - The function did not find the simplified representation in the solid.
|
| GetGeomRep |
|---|
| SimpRep | GetGeomRep | () |
| Returns the object representing the solid model's Geometry Rep.
Exceptions thrown (but not limited to): XToolkitNotFound - The function did not find the simplified representation in the solid.
|
| DeleteSimpRep |
|---|
| void | DeleteSimpRep | (SimpRep SimpRep) |
Deletes the specified simplified representation from its owner model.
|
| GetMassProperty |
|---|
| MassProperty | GetMassProperty | ( /*optional*/ String CoordSysName) |
| Gets the mass properties for the solid.
Exceptions thrown (but not limited to): XToolkitNotFound - The specified coordinate system was not found.
|
| GetMassPropertyWithDensity |
|---|
| MassProperty | GetMassPropertyWithDensity | ( /*optional*/ String CoordSysName, MPDensityUse DensityOpt, /*optional*/ Double density) |
|
| ListGroups |
|---|
| FeatureGroups | ListGroups | () |
| Collect groups (including UDFs) in the solid.
Exceptions thrown (but not limited to): XToolkitNotFound - No groups exist in the solid
|
| CreateFeature |
|---|
| Feature | CreateFeature | (FeatureCreateInstructions Instructions) |
| Not implemented in the current release.
Creates a feature, based on the instructions provided.
Object Toolkit users can use WCreateFeature
|
| CreateUDFGroup |
|---|
| FeatureGroup | CreateUDFGroup | (UDFGroupCreateInstructions Instructions) |
| Creates a FeatureGroup, based on the instructions provided.
Exceptions thrown (but not limited to): XToolkitUnsupported - The input model is Multi-CAD model.
|
| ExportShrinkwrap |
|---|
| void | ExportShrinkwrap | (ShrinkwrapExportInstructions Instructions) |
| Exports a solid model to shrinkwrap format.
Exceptions thrown (but not limited to): XToolkitBadContext - Invalid combination of input arguments. XToolkitLineTooLong - Name length of the output file is more than 31 chars.
|
| GetPrincipalUnits |
|---|
| UnitSystem | GetPrincipalUnits | () |
Gets the system of units assigned to the solid model.
|
| SetPrincipalUnits |
|---|
| void | SetPrincipalUnits | (UnitSystem Units, UnitConversionOptions Options) |
| Sets the system of units for the solid. This will regenerate the model.
|
| ListUnits |
|---|
| Units | ListUnits | ( /*optional*/ UnitType Type) |
Lists the units available in the model.
|
| ListUnitSystems |
|---|
| UnitSystems | ListUnitSystems | () |
Lists the unit systems available in the model.
|
| GetUnit |
|---|
| /*optional*/ Unit | GetUnit | (String Name, /*optional*/ Boolean ByExpression) |
| Get the handle to a particular unit based on name or
expression. Exceptions thrown (but not limited to): XToolkitNotFound - The indicated unit name does not exist in the model.
|
| CreateCustomUnit |
|---|
| Unit | CreateCustomUnit | (String Name, UnitConversionFactor ConversionFactor, Unit ReferenceUnit) |
| Creates a custom unit based on name, conversion factor and
reference unit. Exceptions thrown (but not limited to): XToolkitNotFound - The reference unit was not found in the model.
|
| CreateUnitSystem |
|---|
| UnitSystem | CreateUnitSystem | (String Name, UnitSystemType Type, Units Units) |
| Creates a new unit system in the model. Units should include at most one occurrence of each basic unit type. If a unit of a basic type is missing then a corresponding one is taken from the standard system 'Creo Parametric Default'. Exceptions thrown (but not limited to): XToolkitAmbiguous - The units argument contains multiple units for a type.
|