Technical Summary of Changes for Creo 7.0.0.0
This section describes the critical and miscellaneous technical changes in Creo 7.0.0.0 and Creo Object TOOLKIT C++. It also lists the new and superseded functions for this release.
Critical Technical Changes
This section describes the changes in Creo 7.0.0.0 and Creo Object TOOLKIT C++ that might require alteration of existing Creo Object TOOLKIT C++ applications.
Digitally Signing the Application
In Creo 7.0.0.0 and later, Creo checks signatures of Creo Object TOOLKIT C++ applications at load time.
The configuration options open_protk_unsigned_apps and open_protk_signed_apps control whether to always allow the users or administrator to determine whether signed or unsigned Creo Object TOOLKIT C++ applications should be allowed to always run, to never run, or to prompt the user before running.
See the Creo Parametric TOOLKIT User’s Guide for more information.
New Functions
This section describes new functions for Creo Object TOOLKIT C++ for Creo 7.0.0.0.
Cross Sections
New Function
Description
wfcWSolid::CreatePlanarXSectionWithOptions
Creates a cross section feature through a datum plane and also makes the cross section visible.
wfcWXSection::CollectCutComponents
Returns the object wfcXSection.XSectionCutComponent that contains the geometry of all cut components in a specified cross section.
wfcWXSection::GetExcludedItems
Returns paths to the exclude or include components and bodies of the specified cross section using the object wfcXSectionExcludeItems.
wfcXSectionCutComponentItem::GetType
Returns the type of item - body or quilt.
wfcXSectionCutComponentItem::GetId
Returns the Id of the body or the quilt being cut.
wfcXSectionCutComponentItem::GetGeometry
Returns the surface geometry created by the cross section by cutting specific body or quilt.
wfcXSectionCutComponentItem::SetXHatchStyle
wfcXSectionCutComponentItem::GetXHatchStyle
Sets the cross section xhatch style of the body. If the xhatch style exists in the session, it will be set.
Returns the cross section xhatch style of the body.
wfcXSectionCutComponent::GetCutItems
Returns the items (body or quilt) that are cut on the component.
wfcXSectionCutComponent::GetPath
Returns the path to the component being cut by the cross section.
wfcXSectionCutComponent::SetXHatchStyle
wfcXSectionCutComponent::GetXHatchStyle
Sets the cross section xhatch style on the component. If the xhatch style exists in the session, it will be set.
Returns the cross section xhatch style of the component.
wfcXSectionExcludeItems::Create
Creates the interface for excluded items using the wfcXSectionExcludeItems object.
wfcXSectionExcludeItems::GetItems
wfcXSectionExcludeItems::SetItems
Gets and sets the items to be excluded in the cross section.
wfcXSectionExcludeItems::GetExclude
wfcXSectionExcludeItems::SetExclude
Gets and sets the flag to exclude or include items in the cross section.
wfcXSectionHatchStyle::GetType
wfcXSectionHatchStyle::SetType
Gets and sets the type of the hatch style.
wfcXSectionHatchStyle::GetOldHatches
wfcXSectionHatchStyle::SetOldHatches
Gets and sets the old line hatch object sequence using the object wfcXSectionOldHatches.
wfcXSectionHatchStyle::GetNewHatches
wfcXSectionHatchStyle::SetNewHatches
Gets and sets the new line hatch object sequence using the object wfcXSectionNewHatches.
wfcXSectionNewHatch::Create
Creates the interface for new line pattern hatching using the wfcXSectionNewHatch object.
wfcXSectionNewHatch::GetAngle
wfcXSectionNewHatch::SetAngle
Gets and sets the angle for new line pattern.
wfcXSectionNewHatch::GetXOrigin
wfcXSectionNewHatch::SetXOrigin
Gets and sets the X origin for the new line pattern.
wfcXSectionNewHatch::GetYOrigin
wfcXSectionNewHatch::SetYOrigin
Gets and sets the Y origin for the new line pattern.
wfcXSectionNewHatch::GetXDelta
wfcXSectionNewHatch::SetXDelta
Gets and sets the X delta for the new line pattern.
wfcXSectionNewHatch::GetYDelta
wfcXSectionNewHatch::SetYDelta
Gets and sets the Y delta for the new line pattern.
wfcXSectionNewHatch::GetDash
wfcXSectionNewHatch::SetDash
Gets and sets the dash for the new line pattern.
wfcXSectionNewHatch::GetColor
wfcXSectionNewHatch::SetColor
Gets and sets the color for the new line pattern.
wfcXSectionOldHatch::Create
Creates the interface for old line pattern hatching using the wfcXSectionOldHatch object.
wfcXSectionOldHatch::GetAngle
wfcXSectionOldHatch::SetAngle
Gets and sets the angle for old line pattern.
wfcXSectionOldHatch::GetSpacing
wfcXSectionOldHatch::SetSpacing
Gets and sets the spacing for the old line pattern.
wfcXSectionOldHatch::GetOffset
wfcXSectionOldHatch::SetOffset
Gets and sets the offset for the old line pattern.
wfcXSectionOldHatch::GetFont
wfcXSectionOldHatch::SetFont
Gets and sets the font for the old line pattern.
wfcXSectionOldHatch::GetColor
wfcXSectionOldHatch::SetColor
Gets and sets the color for the old line pattern.
Drawings
New Function
Description
pfcGeneralViewCreateInstructions::GetViewScale
pfcGeneralViewCreateInstructions::SetViewScale
Gets and sets a scale to the created general drawing view. This value is optional, if not assigned, the default drawing scale is used.
Materials
New Function
Description
pfcMaterial::GetFluidMaterialType
pfcMaterial::SetFluidMaterialType
Gets and sets the material type for the fluid properties of the material.
Solid Bodies
New Function
Description
pfcSolidBody::GetBodyState
Specifies the state of the body using the enumerated data type pfcSolidBodyState.
pfcSolidBody::IsConstruction
Checks if the body is a construction body.
pfcSolidBody::ListSurfaces
Lists all the surfaces in the specified body.
pfcSolid::GetDefaultBody
Returns the default body in the specified solid.
pfcSolid::GetSurfaceSolidBody
Returns the body to which the surface belongs.
pfcSolid::GetEdgeSolidBody
Returns the body to which the edge belongs.
wfcWSolid::CreateBody
Creates a new body in the specified solid.
wfcWSolid::DeleteBody
Deletes the specified body in the solid.
wfcWSolidBody::SetDefault
Sets the solid body as a default body.
wfcWSolidBody::SetConstruction
Sets the solid body as a construction body.
wfcWSolidBody::GetMaterial
Retrieves the information of the material assigned to the body.
wfcWSolidBody::SetMaterial
Assigns the material to the specified body.
pfcSolidBody::GetFeatures
Lists the features that are associated with the specified body.
pfcSolidBody::GetOutline
Retrieves the regeneration outline of a solid body, with respect to the base coordinate system orientation.
pfcSolidBody::IsSheetmetal
Checks if the specified body is an active sheetmetal body.
pfcSolidBody::GetDensity
Determines the density of the body.
pfcSolidBody::GetMassProperty
Returns the mass properties of a body in the specified coordinate system.
Superseded Functions
This section describes the superseded functions for Creo Object TOOLKIT C++ for Creo 7.0.0.0.
Cross Section
Superseded Function
New Function
wfcWSolid::CreatePlanarXSection
wfcWSolid::CreatePlanarXSectionWithOptions
wfcWXSection::CollectGeometry
wfcWXSection::CollectCutComponents
Miscellaneous Technical Changes
The following changes in Creo 7.0.0.0 can affect the functional behavior of Creo Object TOOLKIT C++. PTC does not anticipate that these changes cause critical issues with existing Creo Object TOOLKIT C++ applications.
Support for Automatic Representation
The value pfcSIMPREP_AUTO is added to the enumerated data type pfcSimpRepActionType which indicates the use of automatic representation of the component.
Support for Fluid as Material Type
The value pfcMTL_FLUID is added to the enumerated data type pfcMaterialType which indicates geometric bodies can now have material type as fluid.
Change in behavior of the property pfcFeature::GetFeatType
Earlier the property pfcFeature::GetFeatType returned the error pfcXInvalidEnumValue for Belt feature. In Creo Parametric 7.0.0.0 and later, this behavior is fixed. To support the Belt feature in the Creo Object TOOLKIT C++ application, the following enumerated types are updated with the new values:
•  pfcComponentConstraintType
  pfcASM_CONSTRAINT_EXPLICIT
•  pfcFeatureType
  pfcFEAT_HULL_BLOCK
  pfcFEAT_HULL_BLOCK_DEF
  pfcFEAT_PM_BELT