Technical Summary of Changes for Creo 4.0 F000
This section describes the critical and miscellaneous technical changes in Creo 4.0 F000 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 4.0 F000 and Creo Object TOOLKIT C++ that might require alteration of existing Creo Object TOOLKIT C++ applications.
Accessing Member Information in a Pattern of Pattern
From Creo Parametric 2.0 M170, the method pfcFeaturePattern::ListMembers returns all the pattern header features created at the first level for a pattern of pattern. It does not return the pattern members under each pattern header.
Non-Applet Based Version of the APIWizard
To open the non-applet based version of the Creo Object TOOLKIT C++ APIWizard, point your browser to:
<creo_otk_loadpoint_doc>\objecttoolkit_Creo\index.html
A page containing links to the Creo Object TOOLKIT C++ APIWizard and User’s Guide will open in the web browser.
The non-applet based version of the Creo Object TOOLKIT C++ APIWizard has enhanced search capabilities. The new search options enable you to search for only global methods, enumerations, exceptions, licensed methods, and methods that are supported in Creo Direct, in addition to searching for all classes and methods.
Applet Based Version of the APIWizard
From Creo 4.0 F000, the applet based APIWizard is no longer supported. Use the non-applet based APIWizard instead.
New Libraries
From Creo 4.0 F000 onward, the following libraries listed in the following table are no longer supported and will not be available with the software. The New Library Name column provides a list of the equivalent libraries that are now available. When you migrate an application to Creo 4.0, relink it to the new libraries, and rebuild the application. The new libraries avoid linking of the application to Unicode libraries.
Old Library Name
New Library Name
protk_dll.lib
protk_dll_NU.lib
protoolkit.lib
protoolkit_NU.lib
protk_dllmd.lib
protk_dllmd_NU.lib
protkmd.lib
protkmd_NU.lib
The following new import libraries and dlls have been added:
•  ucore.lib
•  udata.lib
•  ucore46.dll
•  udata46.dll
Alternate Libraries
Creo Object TOOLKIT C++ provides alternate libraries, otk_cpp_md.lib and otk_cpp_async_md.lib that may be used for applications compiled with /MD flag and built with msvcrt.lib. These libraries must be used together with alternate libraries from Creo Parametric TOOLKIT: otk_cpp_md.lib with protkmd.lib for IPC mode or protk_dllmd.lib for DLL mode, and otk_cpp_async_md.lib with ptasyncmd.lib and protkmd.lib.
Change in Behavior of pfcServer::IsObjectCheckedOut
From Creo Parametric 2.0 M040 onward, the behavior of the method pfcServer::IsObjectCheckedOut has been fixed. The method now returns the value false to indicate one of the following statuses for the specified object:
•  the object was only saved, but never uploaded
•  the object was only uploaded, but never checked in
Change in Behavior of pfcTable::CheckIfIsFromFormat
The method pfcTable::CheckIfIsFromFormat did not correctly check if the drawing table was created using the drawing format. The method would return false, if the first segment of the table was not on the current sheet in the Creo user interface, even though the table was created using the drawing format. This behavior has been fixed in Creo Parametric 2.0 M120. The method now checks and returns the correct boolean value.
As in the previous releases, the method pfcTable::CheckIfIsFromFormat ignores the value provided in the input argument SheetNumber.
Change in Directory Structure for Creo Installation
From Creo 3.0 onward, the directory structure for Creo installation has changed from:
•  <creo_loadpoint>\Parametric to <creo_loadpoint>\<datecode>\Parametric.
•  <creo_loadpoint>\Common Files\<datecode> to <creo_loadpoint>\<datecode>\Common Files
Change in Integer Values for Enumerated Data Type pfcComponentType
The integer values for enumerated data type pfcComponentType were shifted by 1 and did not reflect the actual values. From Creo 3.0 onward, this behavior has been fixed. If your application code uses these values, you must rebuild your application.
Digital Rights Management Retired
From Creo 3.0 onward, Digital Rights Management (DRM) is no longer supported. Creo Object TOOLKIT C++ applications that check the DRM permissions will have to be updated.
Disable Notification Messages in Trail Files
When notifications are set in Creo Object TOOLKIT C++ applications, every time an event is triggered, notification messages are added to the trail files.
From Creo Parametric 2.0 M210 onward, a new environment variable PROTK_LOG_DISABLE allows you to disable this behavior. When set to true, the notifications messages are not added to the trail files.
Documentation Updated for pfcServer::IsObjectModified
The documentation for the method pfcServer::IsObjectModified has been updated in Creo 3.0 M010. This method returns true if the object was modified locally.
Layout Model Type
From Creo 3.0 M010 onward, the enumerated type pfcModelType contains an additional value pfcMDL_CE_SOLID that represents models of type Layout. Creo Object TOOLKIT C++ methods will only be able to read models of type Layout, but will not be able to pass Layout models as input to other methods. To work with Layout models, you must rebuild your existing Creo Object TOOLKIT C++ applications.
List of Classes and Methods
From Creo 3.0 M020 onward, a list of all the Creo Object TOOLKIT C++ classes and methods is available in the file otk_methods.txt located at creo_otk_loadpoint_doc.
Migrating Creo Parametric TOOLKIT Applications to Object TOOLKIT C++
From Creo 3.0 M010 onward, a new perl script mark_otkmethod.pl facilitates migration Creo Parametric TOOLKIT applications to Creo Object TOOLKIT C++.
New Framework User Interface Foundation Classes (UIFC)
From Creo 3.0 onward, a new framework User Interface Foundation Classes (UIFC) has been added to Creo Object TOOLKIT C++. The framework contains classes that provide enhanced attributes and actions for the user interface components. A new tool Creo UI Editor allows you to create and modify dialog boxes for Creo Object TOOLKIT C++ customizations.
New Field to Specify Ribbon File in Registry File
From Creo 3.0 onward, a new field rbn_path has been added in the registry file creotk.dat. It allows you to specify the name and path of the ribbon file, which must be loaded when you open the Creo application.
No Special Support for Multithreading in Creo Object TOOLKIT C++ Applications
From Creo 3.0 onward, the method wfcWSession::EnableMultiThreadMode has been obsoleted. Multithreading is now always supported in Creo Object TOOLKIT C++ applications, without the need to call the multithreading method, when the application creates additional threads for processing.
No Support for Boundary Box Type of Simplified Representation
From Creo 3.0 onward, the boundary box type of representation specified by the following values are no longer supported:
•  pfcSIMPREP_BOUNDBOX_REP in the enumerated data type pfcSimpRepType
•  pfcSIMPREP_BOUNDBOX in the enumerated data type pfcSimpRepActionType
No Support for wfcLWG_SIMPREP_LEVEL_SELECTED
The value wfcLWG_SIMPREP_LEVEL_SELECTED in enumerated data type LightweightGraphicsSimprepLevel is not supported, and is reserved for future use.
Retrieving Solids in a Creo Session Linked to Windchill
You must retrieve solid models in a Creo session, which is linked to Windchill, only after you create a new workspace. If you retrieve the models before creating the workspace, the models would be erased from the Creo session.
Standard Libraries
From Creo 3.0 onward, new libraries protk_dll_NU.lib, ucore.lib, and udata.lib have been added. The library protk_dll.lib has been deprecated and may not be supported in future releases. PTC recommends rebuilding your existing Creo Object TOOLKIT C++ applications with the new libraries.
From Creo Object TOOLKIT C++ 4.0 F000 onward, new libraries otk_222.lib and otk_no222.lib have been added. If you have the advanced license option 222, that is, the TOOLKIT-for-3D_Drawings license, you must include the library otk_222.lib in your application. If you do not have the license option 222, include the library otk_no222.lib. You must include one of the libraries in your new and existing applications. You must rebuild your existing Creo Object TOOLKIT C++ applications with the new library.
Support for Advanced Licensing
From Creo Object TOOLKIT C++ 4.0 F000, advanced licensing is supported. Certain methods will be available under license option 222, that is, the TOOLKIT-for-3D_Drawings license.
Support for Constraint Creation Methods
You cannot create constraints using the Object TOOLKIT C++ applications. The following methods are not supported. These methods will be supported in a future release:
•  pfcDatumCsysOriginConstraint::Create
•  pfcDatumCsysDimensionConstraint::Create
•  pfcDatumCsysOrientMoveConstraint::Create
•  pfcDatumAxisConstraint::Create
•  pfcDatumAxisDimensionConstraint::Create
•  pfcDatumPlaneThroughConstraint::Create
•  pfcDatumPlaneNormalConstraint::Create
•  pfcDatumPlaneParallelConstraint::Create
•  pfcDatumPlaneOffsetConstraint::Create
•  pfcDatumPlaneOffsetCoordSysConstraint::Create
•  pfcDatumPlaneAngleConstraint::Create
•  pfcDatumPlaneTangentConstraint::Create
•  pfcDatumPlaneSectionConstraint::Create
•  pfcDatumPlaneDefaultXConstraint::Create
•  pfcDatumPlaneDefaultYConstraint::Create
•  pfcDatumPlaneDefaultZConstraint::Create
•  pfcDatumPointPlacementConstraint::Create
•  pfcDatumPointDimensionConstraint::Create
Support for Deleting Items While Visiting Them
While using the visit functionality, PTC recommends that you must not delete the items that the function will visit. If you delete these items, the results may be unpredictable.
Support for Feature Subclasses
From Creo 3.0 onward, only the following subclasses of the class pfcFeature are supported:
•  pfcComponentFeat
•  pfcCoordSysFeat
•  pfcCurveFeat
•  pfcDatumAxisFeat
•  pfcDatumPlaneFeat
•  pfcDatumPointFeat
•  pfcRoundFeat
If your applications check the type of feature using the type of class, then you must update your existing code to use the method pfcFeature::GetFeatType. The method pfcFeature::GetFeatType returns the type of feature.
Support for Creo Unite
Creo Unite enables you to open non-Creo parts and assemblies in Creo Parametric and other Creo applications without creating separate Creo models.
Most of the Creo Object TOOLKIT C++ methods support multi-CAD assemblies. The methods which do not support assemblies of mixed content will throw the exception pfcXToolkitUnsupported, when a non-native part or assembly is passed as the input model.
When using the method wfcWSolid::WCreateFeature while working with a multi-CAD model, the following scenarios are possible depending on the value of the configuration option confirm_on_edit_foreign_models. The default value of the configuration option confirm_on_edit_foreign_models is yes.
•  If the configuration option confirm_on_edit_foreign_models is set to no, the non-Creo model is modified without any notification.
•  If the configuration option confirm_on_edit_foreign_models is set to yes, or the option is not defined in the configuration file, then in batch mode the application will throw the exception pfcXToolkitGeneralError.
•  In some situations you may need to provide input in the interactive mode with Creo. Refer to the Creo Parametric Data Exchange online help, for more information.
wmain() Function
Creo Object TOOLKIT C++ application must contain its own wmain() function if the application needs to receive command-line arguments as wchar_t, for example if the input contains non-usascii characters.
New Functions
This section describes new functions for Creo Object TOOLKIT C++ for Creo 4.0 F000.
Action listeners
New Function
Description
wfcWSession::AddBeforeModel
RetrieveListener
Creates a listener, which blocks the standard Creo File Open dialog box.
wfcBeforeModelRetrieveActionListener::
OnBeforeModelRetrieve
Notifies when the standard Creo File Open dialog box is opened. The method also retrieves the model specified in the object wfcBeforeModelRetrieveInstructions.
wfcModelParamActionListener::OnBeforeParameterCreate
wfcModelParamActionListener::OnBeforeParameterModify
wfcModelParamActionListener::OnAfterParameterModify
wfcModelParamActionListener::OnAfterParameterDelete
Action listener methods that are called when a parameter is created, modified, and deleted in a model.
wfcFeatureParamActionListener::OnBeforeParameterCreate
wfcFeatureParamActionListener::OnBeforeParameterModify
wfcFeatureParamActionListener::OnAfterParameterModify wfcFeatureParamActionListener::OnAfterParameterDelete
Action listener methods that are called when a parameter is created, modified, and deleted in a feature.
Annotations
New Function
Description
Creating Annotation Features
wfcWSelection::CreateAnnotationFeature
Creates a new annotation feature in the model.
Redefining Annotation Features
wfcWSelection::AddAnnotationElement
Adds a new non-graphical annotation element to the feature.
wfcWSelection::AddElementsInAnnotationFeature
Adds a series of new annotation elements to the annotation feature.
wfcWSelection::CopyAnnotationElement
Copies and adds an existing annotation element to the specified annotation feature.
wfcWSelection::DeleteAnnotationElement
Deletes an annotation element from the feature.
wfcWSelection::DeleteElementsInAnnotationFeature
Deletes a series of annotation elements from the feature.
Accessing Annotations
wfcAnnotation::ShowInDrawing
Shows the annotation in the current combined state.
wfcAnnotation::Display
wfcAnnotation::Undisplay
Temporarily displays and removes an annotation from the display for the specified combined state .
wfcAnnotation::DisplayInDrawing
wfcAnnotation::UndisplayInDrawing
Temporarily displays and removes an annotation from the display for the specified drawing.
wfcAnnotation::Update
Updates the display of an annotation, but does not actually display it.
wfcAnnotation::IsInactive
Indicates whether the annotation can be shown or not.
wfcWDrawing::EraseAnnotation
Removes an annotation from the display for the specified drawing.
wfcWSelection::ShowAnnotations
Displays the annotation of the specified type for the selected feature or component.
wfcWSelection::ShowAxes
Displays the axes for the selected feature and component.
wfcWSelection::ShowDatumTargets
Displays the datum targets for the selected feature and component.
wfcWView2D::ShowAnnotations
Displays the annotation of the specified type in the drawing view.
wfcWView2D::ShowAxes
Displays the axes in the drawing view.
wfcWView2D::ShowDatumTargets
Displays the datum targets in the drawing view.
Accessing and modifying Annotation Elements
wfcAnnotation::GetAnnotationElement
Retrieves the annotation element that contains the annotation.
wfcAnnotationElement::GetAnnotationType
Gets the type of the annotation contained in the annotation element.
wfcAnnotationElement::IsReadOnly
Checks if the annotation element has read only or full access.
wfcAnnotationElement::HasMissingReferences
Checks if an annotation element has missing references.
wfcAnnotationElement::IsIncomplete
Checks if the annotation element is incomplete because of missing strong references.
wfcAnnotationElement::GetCopyFlag
Gets the copy flag of the annotation elements.
wfcAnnotationElement::IsDependent
Gets the value of the dependency flag for the annotation element.
wfcAnnotationElement::GetAnnotation
Gets the annotation contained in an annotation element.
wfcAnnotationElement::GetAnnotationFeature
Gets the feature that owns the annotation element.
wfcAnnotationElement::IsReferenceStrong
Checks if a reference is weak or strong in a given annotation element.
wfcAnnotationElement::CollectAnnotationReferences
Retrieves an array of references contained in the specified annotation element.
wfcAnnotationElement::CollectQuiltReferenceSurfaces
Get the surfaces which make up a quilt surface collection reference for the annotation element.
wfcAnnotationElement::GetAnnotationReferenceDescription
Gets the description property for a given annotation element reference.
wfcAnnotationElement::SetAnnotationReferenceDescription
Sets the description property for a given annotation element reference.
wfcWSelection::SetAnnotationInAnnotationElement
Modifies the annotation contained in an annotation element.
wfcWSelection::SetCopyFlagInAnnotationElement
Sets the copy flag for the annotation element.
wfcWSelection::SetDependencyFlag
Sets the dependency flag of the annotation element.
wfcWSelection::GetAutoPropagateFlagInAnnotationElement
wfcWSelection::SetAutoPropagateFlagInAnnotationElement
Gets and sets the autopropagate flag for the specified annotation element reference.
wfcWSelection::AddAnnotationReferenceInAnnotationElement
Adds a strong user-defined reference to the annotation element.
wfcWSelection::SetAnnotationReferencesInAnnotationElement
Replaces all the user-defined references in the annotation element with the specified references.
wfcWSelection::RemoveAnnotationReferenceInAnnotationElement
Removes the user-defined reference from the annotation element.
wfcWSelection::StrengthenAnnotationElementReference
Converts a weak reference to a strong reference.
wfcWSelection::WeakenAnnotationElementReference
Converts a strong reference to a weak reference.
Automatic Propagation of Annotation Elements
wfcWSession::AutoPropagate
Causes the local and automatic propagation of annotation elements to the currently selected feature within the same model, after a supported feature has either been created or modified.
Annotation Text Styles
wfcAnnotation::GetTextStyle
wfcAnnotation::SetTextStyle
Gets and sets the text style for the specified annotation.
wfcAnnotation::GetTextStyleInDrawing
wfcAnnotation::SetTextStyleInDrawing
Gets and sets the text style for the annotation in the specified drawing.
pfcAnnotationTextStyle::Create
Creates a data object that contains information about text style for an annotation.
pfcAnnotationTextStyle::GetAngle
pfcAnnotationTextStyle::SetAngle
Gets and sets the angle of the text style.
pfcAnnotationTextStyle::GetColor
pfcAnnotationTextStyle::SetColor
Gets and sets the color of the text style.
pfcAnnotationTextStyle::GetFont
pfcAnnotationTextStyle::SetFont
Gets and sets the font of the text.
pfcAnnotationTextStyle::GetHeight
pfcAnnotationTextStyle::SetHeight
Gets and sets the height of the text style.
pfcAnnotationTextStyle::GetWidth
pfcAnnotationTextStyle::SetWidth
Gets and sets the width of the text style.
pfcAnnotationTextStyle::GetThickness
pfcAnnotationTextStyle::SetThickness
Gets and sets the thickness of the text style.
pfcAnnotationTextStyle::GetHorizontalJustification
pfcAnnotationTextStyle::SetHorizontalJustification
Gets and sets the horizontal justification of the text style.
pfcAnnotationTextStyle::GetVerticalJustification
pfcAnnotationTextStyle::SetVerticalJustification
Gets and sets the vertical justification of the text style.
pfcAnnotationTextStyle::GetSlantAngle
pfcAnnotationTextStyle::SetSlantAngle
Gets and sets the slant angle of the text style.
pfcAnnotationTextStyle::IsHeightInModelUnits
Checks if the text height is in relation to the model units or as a fraction of the screen size.
pfcAnnotationTextStyle::SetHeightInModelUnits
Sets the height of the text in relation to the model units or as a fraction of the screen size.
pfcAnnotationTextStyle::IsTextMirrored
Checks if the text style is mirrored.
pfcAnnotationTextStyle::MirrorText
Specifies the option to mirror the text style.
pfcAnnotationTextStyle::IsTextUnderlined
Checks if the text style is underlined.
pfcAnnotationTextStyle::UnderlineText
Specifies the option to underline the text style.
wfcWSolid::GetDefaultTextHeight
Retrieves the default height of the annotations and dimensions in the specified solid.
Annotation Orientation
wfcAnnotation::Rotate
Rotates a given annotation by the specified angle.
wfcWSelection::CreateAnnotationPlane
Creates a new annotation plane from either a datum plane, a flat surface, or an existing annotation that already contains an annotation plane.
wfcWSolid::CreateAnnotationPlaneFromView
Creates a new annotation plane from a saved model view.
wfcWSolid::CreateFlatToScreenPlane
Retrieves an annotation plane that represents a flat-to-screen annotation in the model.
wfcAnnotationPlane::GetReference
Retrieves the planar surface used as the annotation plane.
wfcAnnotationPlane::GetPlaneData
Retrieves the geometry of the annotation plane in terms of the origin and orientation of the annotation plane.
wfcAnnotationPlane::GetNormalVector
Retrieves the normal vector that determines the viewing direction of the annotation plane.
wfcAnnotationPlane::GetViewName
Obtains the name of the view that was originally used to determine the orientation of the annotation plane.
wfcAnnotationPlane::GetPlaneType
Retrieves the annotation plane type.
wfcAnnotationPlane::IsFrozen
Checks if the annotation orientation is frozen or driven by reference to the plane geometry.
wfcAnnotationPlane::SetFrozen
Sets the annotation orientation to be frozen.
wfcAnnotationPlane::IsForceToPlane
wfcAnnotationPlane::SetForceToPlane
Checks and assigns if the annotations that reference the annotation plane are placed on that plane.
wfcAnnotationPlane::GetPlaneAngle
Gets the current rotation angle in degrees for a given annotation plane.
wfcAnnotationPlane::GetPlaneOrientation
Gets the text orientation of all annotations on that plane.
Annotation Associativity
wfcAnnotation::IsAssociative
Checks if a given annotation in a drawing view is associative to the annotation in the 3D model.
wfcAnnotation::GetAttachmentAssociativity
Gets the associativity of the attachment.
wfcAnnotation::UpdatePosition
Updates the position of the drawing annotation, and makes it associative to the position of the annotation in the 3D model.
wfcAnnotation::UpdateAttachment
Updates the attachment of the drawing annotation, and makes it associative to the attachment of the annotation in the 3D model.
Accessing Set Datum Tags
wfcSetDatumTag::GetAttachment
wfcSetDatumTag::SetAttachment
Gets and sets the item on which the datum tag is placed.
wfcSetDatumTag::GetAnnotationPlane
wfcSetDatumTag::SetAnnotationPlane
Gets and sets the annotation plane for the set datum tag.
wfcSetDatumTag::Show
Displays the set datum tag annotation.
Designating Dimensions and Symbols
wfcWModel::DesignateSymbol
Designates a dimension, dimension tolerance, geometric tolerance or surface finish symbol to the specified model.
wfcWModel::IsDesignatedSymbol
Determines if a dimension, dimension tolerance, geometric tolerance or surface finish symbol has been designated to a model.
wfcWModel::UndesignateSymbol
Undesignates the dimension, dimension tolerance, geometric tolerance or surface finish symbol from the specified model.
Surface Finish Annotations
wfcSurfaceFinish::GetValue
wfcSurfaceFinish::SetValue
Gets and sets the value of a surface finish annotation.
wfcSurfaceFinish::GetReferences
Gets the surface or surfaces referenced by the surface finish.
wfcSurfaceFinish::GetSurfaceCollection
wfcSurfaceFinish::SetSurfaceCollection
Gets and sets a surface collection which contains the references of the surface finish.
wfcSurfaceFinish::Modify
Modifies the symbol instance data for the specified surface finish.
wfcSurfaceFinish::GetSymbolInstructions
Gets the symbol instance data for the surface finish.
wfcSurfaceFinish::Delete
Deletes the specified surface finish.
wfcSurfaceFinish::Show
Displays the surface finish annotation.
wfcWModel::CreateSurfaceFinish
Creates a new symbol-based surface finish annotation.
Symbol Annotations
wfcWDetailSymbolInstItem::GetAnnotationPlane
wfcWDetailSymbolInstItem::SetAnnotationPlane
Retrieves and sets the annotation plane for the 3D symbol data.
wfcWDetailSymbolDefItem::VisitNotes
Visits the notes contained in a symbol definition stored in a solid model or a drawing.
wfcWDetailSymbolDefItem::VisitEntities
Visits the entities contained in a symbol definition stored in a solid model.
wfcWSolid::RetrieveSymbolDefItem
Enables retrieval of a symbol definition into a given solid model.
wfcWSolid::ListDetailItems
Collects and returns a sequence of all the symbol instances used in the specified solid.
Detail Tree
wfcWSolid::CollapseDetailTree
Collapse all nodes of the detail tree in the Creo Parametric window and make its child nodes invisible.
wfcWSolid::ExpandDetailTree
Expands the detail tree in the Creo Parametricwindow.
wfcWSolid::RefreshDetailTree
Builds the detail tree in the Creo Parametric window that contains the model.
Application Information: Compatibility
New Function
Description
pfcSession::GetAppInfo
pfcSession::SetAppInfo
Gets and sets information related to compatibility in an application.
pfcAppInfo::Create
pfcAppInfo::GetCompatibility
pfcAppInfo::SetCompatibility
Gets and sets the compatibility value for the specified application.
Assemblies
New Function
Description
wfcWAssembly::ListDisplayedComponents
Retrieves a list of currently displayed components in a solid.
wfcAssemblyRule::GetRuleType
wfcAssemblyNameRule::Create
wfcAssemblyNameRule::SetNameMask
wfcAssemblyNameRule::GetNameMask
wfcAssemblySizeRule::Create
wfcAssemblySizeRule::SetAbsolute
wfcAssemblySizeRule::GetAbsolute
wfcAssemblySizeRule::SetGreaterThan
wfcAssemblySizeRule::GetGreaterThan
wfcAssemblySizeRule::SetIncludeDatums
wfcAssemblySizeRule::GetIncludeDatums
wfcAssemblySizeRule::SetValue
wfcAssemblySizeRule::GetValue
wfcAssemblySimpRepRule::Create
wfcAssemblySimpRepRule::GetRuleSimpRep
wfcAssemblySimpRepRule::SetRuleSimpRep
wfcAssemblyExpressionRule::Create
wfcAssemblyExpressionRule::GetExpressions
wfcAssemblyExpressionRule::SetExpressions
wfcAssemblyZoneRule::Create
wfcAssemblyZoneRule::GetZoneFeature
wfcAssemblyZoneRule::SetZoneFeature
wfcAssemblyDistanceRule::Create
wfcAssemblyDistanceRule::GetCenter
wfcAssemblyDistanceRule::SetCenter
wfcAssemblyDistanceRule::GetDistance
wfcAssemblyDistanceRule::SetDistance
wfcAssemblyDistanceRule::GetIncludeDatums
wfcAssemblyDistanceRule::SetIncludeDatums
Creates different types of rules and uses them to generate a list of components in the specified assembly.
Combined States
New Function
Description
wfcWSolid::ListCombStates
wfcCombState::GetCombStateData
wfcCombStateData::Create
wfcCombStateData::GetCombStateName
wfcCombStateData::GetReferences
wfcCombStateData::SetReferences
wfcCombStateData::GetClipOption
wfcCombStateData::SetClipOption
wfcCombStateData::GetIsExploded
wfcCombStateData::SetIsExploded
wfcWSolid::CreateCombState
wfcCombState::RedefineCombState
wfcWSolid::GetActiveCombState
wfcWSolid::ActivateCombState
wfcWSolid::DeleteCombState
wfcStyleState::IsStyleStateDefault
Provides read and write access to combined states in a solid.
wfcCombState::GetAnnotations
Retrieves annotations and their status flags from a specified combined state item.
wfcCombStateAnnotation::Create
Creates a data object that contains information about annotations from a combined state.
wfcCombStateAnnotation::GetAnnotation
wfcCombStateAnnotation::SetAnnotation
Retrieve and set the annotations for the combined state.
wfcCombStateAnnotation::GetOption
wfcCombStateAnnotation::SetOption
Retrieve and specify if the displayed annotation is in the combined state.
wfcCombState::AddAnnotations
Adds annotations to a specified combined state item.
wfcCombState::RemoveAnnotations
Remove the annotations from a specified combined state item.
wfcCombState::EraseAnnotation
Removes an annotation from the display for the specified combined state.
wfcWSolid::UpdateActiveLayerState
Updates the layer state, which is active in the specified model.
wfcCombState::GetStateOfAnnotations
Checks if the display of annotations is controlled by the specified combined state or layers.
wfcCombState::IsDefault
Checks if the specified combined state is set as the default combined state for the model.
wfcCombState::IsPublished
Checks if the specified combined state has been published to Creo View.
Cross Sections
New Function
Description
wfcWXSection::CollectGeometry
wfcXSectionGeometry::GetGeometry
wfcXSectionGeometry::GetMemberIdTable
wfcXSectionGeometry::GetQuiltId
wfcWXSection::GetPlane
wfcWXSection::GetOffsetXSectionData
wfcOffsetXSectionData::GetXSectionLines
wfcOffsetXSectionData::GetPlaneData
wfcOffsetXSectionData::GetOneSided
wfcOffsetXSectionData::GetFlip
wfcWSolid::CreateParallelXSection
wfcWSolid::CreatePlanarXSection
wfcWModel::IsFeatureFromXSectionValid
wfcWModel::ConvertOldXSectionsToNew
wfcWXSection::IsFeature
wfcWXSection::GetFeature
wfcWXSection::GetMassProperty
wfcWXSection::GetCompXSectionHatches
wfcWXSection::SetCompXSectionHatches
wfcXSectionHatch::Create
wfcXSectionHatch::GetAngle
wfcXSectionHatch::SetAngle
wfcXSectionHatch::GetSpacing
wfcXSectionHatch::SetSpacing
wfcXSectionHatch::GetOffset
wfcXSectionHatch::SetOffset
Provides read and write access to cross sections.
Curve and Surface Collection
New Function
Description
wfcCollection::GetGeneratedSelections
Returns a sequence of selections depending on the rules and collection instructions.
wfcWSolid::CollectSurfaces
Interactively creates a collection of surfaces.
wfcSurfaceCollectionInstruction::GetRules
wfcSurfaceCollectionInstruction::SetRules
Gets and sets the rules for surface collection instructions.
wfcCollectSurfacesFilter::FilterSelections
Checks if the current surface selection satisfies the filter criteria.
Detail Items
New Function
Description
Creating, Modifying and Reading Detail Items
wfcWDetailSymbolDefItem::CopyToAnotherModel
Copies a specified symbol definition from one model to another.
Detail Note Data
wfcWDetailNoteItem::CollectSymbolInstances
Gets a list of all the symbol instances that are declared in a detail note via the “sym()” callout format.
pfcDetailNoteItem::SetNoteTextStyle
Retrieves and sets the text style for the specified note as a pfcAnnotationTextStyle object.
Cross-referencing 3D Notes and Drawing Annotations
wfcWDetailNoteItem::GetAssociativeNoteInDrawing
Gets a detail note that represents a shown model tree.
wfcWDetailNoteItem::GetAssociativeNoteInSolid
Gets the solid model note that is displayed as a detail note, if applicable.
Symbol Definition Attachments
wfcWDetailSymbolDefItem::AddAttachment
Adds parametric leader attachments to the symbol definition.
Symbol Instance Data
wfcWDetailSymbolInstItem::GetAttachedDimension
Retrieves the dimension to which the specified symbol instance is attached.
wfcWDetailSymbolInstItem::AddLeader
Adds a leader to a symbol instance description.
wfcWDetailSymbolInstItem::AddVarText
Adds variable text to the symbol instance description.
wfcWDetailSymbolInstItem::GetEntityInstructions
Retrieves the data of an entity in the symbol instance.
wfcWDetailSymbolInstItem::GetNoteInstructions
Retrieves the data of a note in the symbol instance.
Cross-referencing Weld Symbols and Drawing Annotations
wfcWDetailSymbolInstItem::GetFeature
Gets the weld feature that owns the shown weld symbol.
Detail Group Data
wfcWDetailGroupItem::AddElement
Adds an item to the group contents.
Drawing Symbol Groups
wfcWDetailSymbolGroup::AddItem
Adds a single item to the symbol group, provided such an item belongs to the symbol definition.
Dimensions
New Function
Description
Dimension Information
wfcWDimension::GetNominalValue
Retrieves the nominal value of a dimension.
wfcWDimension::GetBound
Retrieves the bound values of a dimension.
wfcWDimension::GetSymbolModeText
Retrieves the text of the dimension in symbol mode.
wfcWDimension::IsFractional
Checks if the dimension is expressed in terms of a fraction.
wfcWDimension::IsBasic
Checks if the dimension is of the basic notation type.
wfcWDimension::IsInspection
Checks if the dimension is of the inspection notation type.
wfcWDimension::GetOwnerFeature
Retrieves the feature that owns the specified dimension.
wfcWDimension::IsDisplayedValueRounded
Checks if the specified dimension is set to display its rounded off value.
wfcWDimension::DisplayValueAsRounded
Sets the attribute of the given dimension to display the rounded off value.
wfcWDimension::GetDisplayedValue
Retrieves the displayed rounded value of the specified dimension.
wfcWDimension::GetOverrideValue
Retrieves the override value for a dimension.
wfcWDimension::GetDisplayedValueType
Retrieves the type of value displayed for a dimension.
wfcWDimension::IsSignDriven
Checks if the dimension has a negative or positive value.
wfcWDimension::IsAccessibleInModel
Checks if the specified dimension is owned by the model.
wfcWDimension::GetSignificantDigits
Depending on the value of the input argument Tolerance, retrieves the number of decimal places shown for the upper and lower values of the dimension tolerance or the number of decimals digits that are significant for the dimension.
wfcWDimension::GetDenominator
Depending on the value of the input argument Tolerance, retrieves the value for the largest possible denominator for the upper and lower tolerance values or the largest possible denominator used to define the fractional value.
pfcDrawing::IsDimensionAssociative
Checks if the dimension or reference dimension is associative.
pfcDrawing::IsDimensionDisplayed
Checks if the dimension is displayed in the drawing or solid.
pfcDrawing::GetDimensionAttachPoints
Retrieves the attachment points for the dimension.
pfcDrawing::GetDimensionSenses
Retrieves information about how the dimension is attached to each attachment point of the model.
pfcDrawing::GetDimensionOrientHint
Retrieves the orientation of the dimensions.
pfcDrawing::GetBaselineDimension
Retrieves baseline dimension for an ordinate dimension.
pfcDrawing::GetDimensionLocation
Retrieves the placement location of the dimension.
pfcDrawing::GetDimensionView
Retrieves the drawing view in which the dimension is displayed.
pfcDrawing::IsDimensionToleranceDisplayed
Checks if the tolerance of a dimension is displayed in the drawing or solid.
Dimension Operations
pfcDrawing::ConvertOrdinateDimensionToLinear
Converts an ordinate dimension to a linear dimension.
pfcDrawing::ConvertLinearDimensionToOrdinate
Converts a linear dimension to an ordinate baseline dimension.
pfcDrawing::SwitchDimensionView
Changes the view where a dimension created in the drawing or solid is displayed.
pfcDrawing::EraseDimension
Permanently erases the dimension from the drawing or solid.
Modifying Dimensions
wfcWDimension::SetBound
Sets the bound status of the dimension.
wfcWDimension::SetAsBasic
Sets the basic notation of the dimension.
wfcWDimension::SetAsInspection
Sets the inspection notation of the dimension.
wfcWDimension::SetOverrideValue
Sets the override value for a dimension.
wfcWDimension::SetDisplayedValueType
Sets the type of value to be displayed for a dimension.
wfcWDimension::SetElbowLength
Sets the length of the elbow for the specified dimension in a solid.
wfcWDimension::CreateSimpleBreak
Creates a simple break on an existing dimension witness line.
wfcWDimension::CreateJog
Creates a jog on an existing dimension witness line.
wfcWDimension::EraseWitnessLine
Erases a specified witness line from the dimension.
wfcWDimension::ShowWitnessLine
Shows the erased witness line for the specified dimension.
wfcWDimension::SetSignificantDigits
Depending on the value of the input argument Tolerance, sets the number of decimal places for a decimal dimension or for the upper and lower values of the dimension tolerance.
wfcWDimension::SetDenominator
Depending on the value of the input argument Tolerance, sets the value for the largest possible denominator for the upper and lower tolerance values or for fractional dimensions.
wfcWDimension::SetDimensionArrowType
Sets the style for the arrow head of a leader for a specified dimension.
Cleaning Up Dimensions
wfcWDrawing::CleanupDimensions
Cleans up the dimensions in a drawing.
Dimension Tolerances
wfcWDimension::IsToleranceDisplayed
Checks whether the tolerances of the specified dimension are currently being displayed.
wfcWDimension::GetDisplayedUpperLimitTolerance
Retrieves the displayed rounded values of the upper limit of the specified dimension.
wfcWDimension::GetDisplayedLowerLimitTolerance
Retrieves the displayed rounded values of the lower limit of the specified dimension.
Dimension Location
wfcDimLocation::GetNormal
Returns the vector normal to the dimensioning plane for a radial or diameter dimension. This normal vector should correspond to the axis normal to the arc being measured by the radial or diameter dimension.
Dimension Entity Location
wfcDimLocation::GetCenterLeaderInformation
Obtains the type of center leader used for the dimension, if the dimension uses a center leader.
wfcCenterLeaderInformation::GetCenterLeaderType
Obtains the information about the center leader as a wfcCenterLeaderInformation object.
wfcCenterLeaderInformation::GetElbowLength
wfcCenterLeaderInformation::GetElbowDirection
Returns the length and direction of the elbow used by the center leader and the leader end symbol.
wfcCenterLeaderInformation::GetLeaderArrowType
Returns the type of arrow for the leader.
wfcDimLocation::GetFirstZExtensionLineLocation
wfcDimLocation::GetSecondZExtensionLineLocation
Obtains the endpoints of the first and second Z-extension lines created for a specified dimension.
wfcDimLocation::GetFirstArrowheadLocation
wfcDimLocation::GetSecondArrowheadLocation
Returns the location of the first and second arrow heads for a dimension.
wfcDimLocation::GetElbowLength
Returns the length of the elbow for a dimension.
wfcDimLocation::GetFirstWitnessLineLocation
wfcDimLocation::GetSecondWitnessLineLocation
Gets the location of the first and second witness line end points for a dimension.
wfcDimLocation::GetLocation
Returns the location of the elements that make up a solid dimension or reference dimension.
wfcDimLocation::HasElbow
Specifies if a dimension has an elbow.
Dimension Orientation
wfcWDimension::SetAnnotationPlane
Assigns an annotation plane as the orientation of a specified dimension stored in an annotation element.
wfcWDimension::GetAnnotationPlane
Obtains the orientation of a specified dimension stored in an annotation element.
Driving Dimension Annotation Elements
wfcWDimension::CreateAnnotationElement
Creates an annotation element for a specified driving dimension based on the specified annotation orientation.
wfcWDimension::DeleteAnnotationElement
Removes the annotation element containing the driving dimension.
Accessing Reference and Driven Dimensions
wfcWDimension::CanRegenerate
Checks if a driven dimension can be regenerated.
wfcWDimension::Delete
Deletes the driven or reference dimension.
wfcWDimension::IsDriving
Checks if a dimension is driving geometry or is driven by it.
wfcWDimension::GetDimensionAttachPoints
Gets the entities to which a dimension is attached.
wfcWDimension::GetDimensionSenses
Gets information on how dimensions attach to the entity, that is, to what part of the entity and in what direction the dimension runs.
wfcWDimension::GetOrientationHint
Gets the orientation of the driven or reference dimensions.
wfcWDimension::SetDimensionAttachPoints
Sets the geometric references and parameters of the driven or reference dimension.
wfcWSolid::CreateDimension
Creates a new driven dimension.
Dimension Prefix and Suffix
wfcWDimension::GetPrefix
wfcWDimension::SetPrefix
Retrieves the prefix assigned to a specified dimension.
Sets the prefix for a dimension.
wfcWDimension::GetSuffix
wfcWDimension::SetSuffix
Retrieves the suffix assigned to a specified dimension.
Sets the suffix for a dimension.
Dimension Location
wfcWDimension::Move
Moves the specified 3D ordinate dimension to the specified location within its owner model.
wfcWDimension::GetDimLocation
Retrieves the location of the elements that make up a solid dimension or a reference dimension.
45 Degree Chamfer Dimensions
wfcWDimension::GetChamferLeaderStyle
wfcWDimension::SetChamferLeaderStyle
Retrieves and sets the style of the leader for the specified 45-degree chamfer dimension.
wfcWDimension::GetConfiguration
wfcWDimension::SetConfiguration
Retrieves and sets the dimension configuration for chamfer dimensions.
wfcWDimension::GetChamferStyle
wfcWDimension::SetChamferStyle
Retrieves and sets the dimension scheme for the specified 45-degree chamfer dimension.
Baseline Dimensions
wfcWDimension::IsBaseline
Checks whether a dimension is a baseline dimension.
wfcWDimension::GetBaselineDimension
Retrieves the baseline dimension in a drawing.
wfcWSelection::CreateAnnotationFeatBaseline
Creates an ordinate baseline annotation element and corresponding dimension as a wfcAnnotationElement object.
Ordinate Dimensions
wfcWDimension::IsOrdinate
Checks if a dimension is ordinate.
wfcWDimension::GetOrdinateStandard
wfcWDimension::SetOrdinateStandard
Retrieves and sets the display style for the ordinate dimensions in the drawing.
wfcWDrawing::CreateAutoOrdinateDimensions
Creates ordinate dimensions automatically for the selected surfaces.
wfcWDimension::SetOrdinateReferences
Sets the dimension attachments and dimension senses.
wfcWDimension::OrdinateDimensionToLinear
Converts an existing ordinate dimension to a linear dimension in a solid.
wfcWDimension::LinearDimensionToOrdinate
Converts a linear dimension to an ordinate dimension.
wfcWSolid::CreateOrdinateDimension
Creates a new model ordinate driven dimension or a model ordinate reference dimension in a solid model.
Display Style States in a Solid
New Function
Description
wfcStyleState::IsStyleStateDefault
wfcWSolid::GetStyleStateFromName
wfcWSolid::GetStyleStateFromId
wfcWSolid::GetActiveStyleState
wfcWSolid::ActivateStyleState
wfcWSolid::ListStyleStateItems
Provides read and write access to display style states in a solid.
Drawings
New Function
Description
pfcTableOwner::RetrieveTableByOrigin
Retrieves and places a drawing table in the drawing at the specified point. The origin of the table is positioned at the specified point.
Drawing Sheet Information
wfcWDrawing::GetSheetName
Gets the name of the specified drawing sheet.
wfcWDrawing::GetFormatSheet
Gets the sheet number of the drawing format which was used to create the specified drawing.
Merge Drawings
wfcWDrawing::Merge
Merges two drawings.
Drawing Sheets
wfcWModel2D::CopyDrawingSheet
Creates a copy of a specified drawing sheet.
wfcWModel2D::ShowSheetFormat
Displays or hides the drawing format for a specified drawing sheet.
wfcWModel2D::IsSheetFormatBlanked
Identifies if the drawing format of a specified drawing sheet is blank.
wfcWModel2D::IsSheetFormatShown
Identifies if the drawing format of a specified drawing sheet is shown.
wfcWModel2D::GetToleranceStandard
Returns the tolerance standard that is assigned to the specified drawing.
wfcWModel2D::SetToleranceStandard
Sets the tolerance standard for a drawing.
Listing Drawing Views
wfcWView2D::GetParentView
Gets the parent view of a specified drawing view.
wfcWView2D::GetChildren
Gets the child views of a drawing view.
wfcWView2D::GetProjectionArrow
Checks if the projection arrow flag has been set for a projected or detailed drawing view.
wfcWView2D::GetPerspectiveScaleEyePointDistance
Gets the eye-point distance from model space for the perspective scale applied to a drawing view.
wfcWView2D::GetPerspectiveScaleViewDiameter
Gets the view diameter in paper units such as mm for the perspective scale applied to a drawing view.
wfcWView2D::GetColorSource
Gets information about color designation of the drawing view .
wfcWView2D::GetZClippingReference
Gets the reference of the Z-clipping on the drawing view.
wfcWView2D::GetViewType
Gets the type of a specified drawing view.
wfcWView2D::GetViewId
Retrieves the ID of the drawing view.
wfcWView2D::IsErased
Checks if the drawing view is erased or not.
wfcWView2D::GetAlignmentInstructions
wfcWView2D::SetAlignmentInstructions
Gets and sets the alignment of a drawing view with respect to a reference view.
wfcViewAlignmentInstructions::Create
Creates a data object that contains information about view alignment.
wfcViewAlignmentInstructions::GetReferenceView
wfcViewAlignmentInstructions::SetReferenceView
Get and set the reference view to which the drawing view is aligned.
wfcViewAlignmentInstructions::GetAlignmentStyle
wfcViewAlignmentInstructions::SetAlignmentStyle
Get and set the alignment style.
wfcViewAlignmentInstructions::GetViewReference
wfcViewAlignmentInstructions::SetViewReference
Get and set the geometry, such as an edge, on the reference view.
wfcViewAlignmentInstructions::GetAlignedViewReference
wfcViewAlignmentInstructions::SetAlignedViewReference
Get and set the geometry, such as an edge, on the drawing view.
wfcWView2D::GetOriginSelectionRef
Gets the selection reference for a specified drawing view.
wfcWView2D::GetOrigin
Gets the location of the origin for a specified drawing view.
wfcWView2D::GetDatumDisplayStatus
Checks if a solid model datum has been explicitly shown in a particular drawing view.
wfcWView2D::GetPipingDisplay
Gets the piping display option for a drawing view.
wfcWView2D::GetErasedViewSheet
Gets the sheet number which contained the view that was erased.
wfcWDrawing::NeedsRegen
Checks if the drawing or the specified drawing view needs to be regenerated.
wfcWDrawing::GetDrawingView
Retrieves the drawing view handle based for the specified view ID.
wfcWSession::OpenDrawingAsReadOnly
Opens a drawing in the view only mode.
wfcWModel::VisitItems
Finds the views, and conforms to the usual form of visit functions.
Modifying Views
wfcWView2D::SetViewAsProjection
Sets the specified drawing view as a projection.
wfcWView2D::SetProjectionArrow
Sets the projection arrow flag to true for a projected or detailed drawing view.
wfcWView2D::SetZClippingReference
Sets the Z-clipping on the drawing view to reference a given edge, datum, or point on the surface that is parallel to the view.
wfcWView2D::Erase
Removes the specified drawing view from display.
wfcWView2D::Resume
Displays a drawing view that was erased from display.
wfcWView2D::SetOrigin
Sets the location of the origin and the selection reference for a specified drawing view.
wfcWView2D::SetPipingDisplay
Sets the piping display option for a drawing view.
Drawing Dimensions Information
wfcWDrawing::GetDimensionPath
Extracts the component path for a dimension displayed in a drawing.
wfcWDrawing::GetDualDimensionOptions
Gets information about the various options of dual dimensioning in a drawing.
wfcDualDimensionGlobalOptions::GetDualDimensionType
Gets the display style of dual dimensions.
wfcDualDimensionGlobalOptions::GetSecondaryUnit
Gets the type of units used for the secondary dimension.
wfcDualDimensionGlobalOptions::GetDigitsDifference
Gets the number of digits shown in the secondary value, with respect to the primary.
wfcDualDimensionGlobalOptions::AreBracketsAllowed
Checks if brackets can be used in dual dimensioning.
Detailed Views
wfcWDrawing::CreateDetailView
Creates a detailed view given the reference point on the parent view, the spline curve data, and location of the new view.
wfcWView2D::GetDetailViewInstructions
wfcWView2D::SetDetailViewInstructions
Gets and sets the information related to detailed views.
wfcDetailViewInstructions::Create
Creates a data object that contains information about the detailed view.
wfcDetailViewInstructions::GetReference
wfcDetailViewInstructions::SetReference
Gets and sets the reference point on the parent view for a specified detailed view.
wfcDetailViewInstructions::GetCurveData
wfcDetailViewInstructions::SetCurveData
Gets and sets the spline curve data for a specified detailed view.
wfcDetailViewInstructions::GetBoundaryType
wfcDetailViewInstructions::SetBoundaryType
Gets and sets the boundary type for a detailed view.
wfcDetailViewInstructions::ShowBoundary
Displays the boundary of the detailed view in the parent view.
wfcDetailViewInstructions::IsBoundaryShown
Checks if the boundary of the detailed view is displayed in the parent view.
Drawing Tree
wfcWModel2D::CollapseTree
Collapses all nodes of the drawing tree in the Creo Parametric window and makes its child nodes invisible.
wfcWModel2D::ExpandTree
Expands the drawing tree in the Creo Parametric window and makes all drawing sheets and drawing items in the active drawing sheet visible.
wfcWModel2D::RefreshTree
Rebuilds the drawing tree in the Creo Parametric window that contains the drawing.
Reading Drawing Tables
pfcTableOwner::GetTable
Returns a table specified by the table identifier in the model.
Drawing Tables Operations
wfcWTable::WrapCelltext
Wraps the text in a cell.
wfcWTable::SetColumnWidth
Assigns the width of a specified column depending upon the size of the drawing table.
wfcWTable::GetGrowthDirection
Gets the growth direction of the table using the enumerated type wfcTableGrowthDirType.
wfcWTable::SetGrowthDirection
Sets the growth direction of the table.
wfcWTable::SetRowHeight
Assigns the height of a specified row depending on the size of the drawing table.
wfcWTable::Save
Saves a drawing table in different formats.
wfcWTable::SetSegmentOrigin
Assigns the origin for a specified drawing table segment.
wfcWTable::GetRowHeightAutoAdjustType
wfcWTable::SetRowHeightAutoAdjustType
Gets and sets the automatic row height adjustment property for a row of a drawing table.
Auxiliary Views
wfcWDrawing::CreateAuxiliaryView
Creates an auxiliary view given the selection reference and the point location.
wfcWView2D::GetAuxiliaryViewInstructions
Gets information about the auxiliary view.
wfcAuxiliaryViewInstructions::Create
Creates a data object that contains information about the auxiliary view.
wfcAuxiliaryViewInstructions::GetReference
wfcAuxiliaryViewInstructions::SetReference
Get and set the selection reference for the auxiliary view.
wfcAuxiliaryViewInstructions::GetLocation
wfcAuxiliaryViewInstructions::SetLocation
Get and set the centerpoint of the auxiliary view.
wfcWView2D::SetViewAsAuxiliary
Sets a specified drawing view as the auxiliary view.
Revolved Views
wfcWDrawing::CreateRevolveView
Creates a revolved view given a cross section, the selection reference, and the point location.
wfcWView2D::GetRevolveViewInstructions
Gets information about the revolved view.
wfcRevolveViewInstructions::Create
Creates a data object that contains information about the revolved view.
wfcRevolveViewInstructions::GetReference
wfcRevolveViewInstructions::SetReference
Get and set the selection reference for the revolved view.
wfcRevolveViewInstructions::GetXSec
wfcRevolveViewInstructions::SetXSec
Get and set the cross section of the revolved view.
wfcRevolveViewInstructions::GetLocation
wfcRevolveViewInstructions::SetLocation
Get and set the centerpoint of the revolved view.
View Orientation
wfcWView2D::SetOrientation
Orients the specified drawing view using saved views from the model.
wfcWView2D::SetOrientationFromReference
Orients the view using geometric references.
wfcWView2D::SetOrientationFromAngle
Orients the specified drawing view using angles of selected references or custom angles.
Sections of a View
wfcWView2D::GetDrawingViewSectionType
Gets the section type for a specified drawing view.
wfcWView2D::GetSection2DInstructions
wfcWView2D::SetSection2DInstructions
Gets and sets the 2D cross section for a specified drawing view.
wfcSection2DInstructions::Create
Creates a data object that contains information about the 2D cross section.
wfcSection2DInstructions::GetSectionAreaType
wfcSection2DInstructions::SetSectionAreaType
Get and set the type of section area.
wfcSection2DInstructions::GetSectionName
wfcSection2DInstructions::SetSectionName
Get and set the name of the 2D cross section.
wfcSection2DInstructions::GetReference
wfcSection2DInstructions::SetReference
Get and set the selection reference
wfcSection2DInstructions::GetCurveData
wfcSection2DInstructions::SetCurveData
Get and set the spline curve data
wfcSection2DInstructions::GetArrowDisplayView
wfcSection2DInstructions::SetArrowDisplayView
Get and set the drawing view, that is, either the parent or child view, where the section arrow is to be displayed.
wfcWView2D::SetSinglePartSection
Sets the reference selection for the solid surface or datum quilt that is used to create the section in the view.
wfcWView2D::GetSinglePartSection
Gets the section created out of a solid surface or a datum quilt in the model for a specified drawing view.
wfcWView2D::Get3DSectionName
Gets the 3D cross section for a specified drawing view.
wfcWView2D::Is3DSectionXHatchingShown
Checks if Xhatching is displayed in the 3D cross-sectional view.
wfcWView2D::Set3DSection
Sets a 3D cross section for a view
Visible Areas of Views
wfcWView2D::GetVisibleAreaInstructions
wfcWView2D::SetVisibleArea
Gets and sets the type of visible area for a specified drawing view.
View States
wfcWView2D::SetExplodedState
Displays the specified drawing view in the exploded state.
wfcWView2D::IsExplodedState
Checks if the specified view is set to be displayed in the exploded state.
wfcWView2D::SetSimpRep
Gets the simplified representation for a specified drawing view.
Drawing Models
wfcWDrawing::VisitDrawingModels
Visits the solids in the specified drawing.
Drawing Edges
wfcWDrawing::GetEdgeDisplay
wfcWDrawing::SetEdgeDisplay
Gets and sets the display properties of a specified model edge in a drawing view.
wfcEdgeDisplay::Create
Creates a data object that contains information about the display properties of an edge in a drawing view.
wfcEdgeDisplay::GetColor
wfcEdgeDisplay::SetColor
Get and set the color to be used for the display of a specified model edge.
wfcEdgeDisplay::GetFont
wfcEdgeDisplay::SetFont
Get and set the line font to be used for the display of a specified model edge.
wfcEdgeDisplay::GetWidth
wfcEdgeDisplay::SetWidth
Get and set the width to be used for the display of a specified model edge.
wfcWDrawing::IsEdgeDisplayGlobal
Checks if the model edge display properties such as color, line font, and width have been applied globally to all the drawing views in the drawing sheet.
wfcWDrawing::SetEdgeDisplayGlobal
Sets the flag that assigns the model edge display properties such as color, line font, and width globally to all the drawing views in the drawing sheet.
wfcWModel2D::GetFormatSize
wfcWModel2D::SetFormatSize
Retrieve and set the size of the drawing format in the specified drawing.
Access Drawing Location in Grid
wfcWModel2D::GetLocationGridColumnFromPosition
Specifies the position of a point, expressed in screen coordinates.
Retrieving Symbol Definitions
pfcDetailItemOwner::RetrieveSymbolDefItem
Retrieves a symbol definition from the system directory and also from the user-defined location designated by the configuration option pro_symbol_dir.
Exploded States
New Function
Description
wfcWAssembly::GetExplodeStateFromName
wfcWAssembly::GetExplodeStateFromId
wfcWAssembly::SelectExplodedState
wfcWExplodedState::GetExplodedStateName
wfcWExplodedState::SetExplodedStateName
wfcWExplodedState::GetExplodedcomponents
wfcWExplodedState::GetExplodedStateMoves
wfcWExplodedState::SetExplodedStateMoves
wfcExplodedAnimationMoveInstruction::Create
wfcExplodedAnimationMoveInstruction::GetCompSet
wfcExplodedAnimationMoveInstruction::SetCompSet
wfcExplodedAnimationMoveInstruction::GetMove
wfcExplodedAnimationMoveInstruction::SetMove
wfcExplodedAnimationMove::Create
wfcExplodedAnimationMove::GetMoveType
wfcExplodedAnimationMove::SetMoveType
wfcExplodedAnimationMove::GetStartPoint
wfcExplodedAnimationMove::SetStartPoint
wfcExplodedAnimationMove::GetDirVector
wfcExplodedAnimationMove::SetDirVector
wfcExplodedAnimationMove::GetValue
wfcExplodedAnimationMove::SetValue
wfcWAssembly::CreateExplodedState
wfcWAssembly::DeleteExplodedState
Provides read and write access to the exploded status of an assembly object
Export Options
New Function
Description
pfcDXFExportInstructions::GetOptionValue
pfcDXFExportInstructions::SetOptionValue
Gets and sets the options that are used to export multiple sheets of a drawing to DXF format.
External Objects
New Function
Description
wfcWSession::RegisterExternalSelectionHighlight
wfcExternalSelectionHighlight::StartNotify
wfcExternalSelectionHighlight::Action
wfcExternalSelectionHighlight::EndNotify
wfcWSelection::RecordExternalSelection
wfcWSession::ReleaseExternalSelectionHighlight
Registers callbacks and records selections when you select or deselect a node in the user tree or an object in the graphics window.
Family Tables
New Function
Description
wfcWFamilyTableRow::GetModelFromDisk
wfcWFamilyTableRow::GetModelFromSession
Retrieves the handle to the model of the family table instance from disk and session.
wfcWFamilyTableRow::IsFlatState
Checks if the specified instance
wfcWFamilyTableRow::IsModifiable
Checks if the specified instance of the family table can be modified.
wfcWFamilyMember::SelectRows
Selects one or more instances in the specified family table.
wfcWFamilyMember::ShowFamilyTable
wfcWFamilyMember::EditFamilyTable
wfcWFamilyMember::EraseFamilyTable
wfcWFamilyMember::ShowFamilyTable
Displays, edits, and erases the specified family table.
wfcWFamilyMember::GetFamilyTableStatus
Checks if the family table is valid or empty.
wfcWFamilyMember::IsModifiable
Checks if the specified family table can be modified.
Features
New Function
Description
wfcWFeature::IsInFooter
Checks if the specified feature is currently located in the model tree footer.
wfcWFeature::MoveToFooter
Moves the specified feature into the model tree footer.
wfcWFeature::MoveFromFooter
Moves the specified feature out of the model tree footer.
wfcWSession::GetUDFDataDefaultVariableParameters
Adds the variable dimensions and parameters to the instructions.
wfcUDFVariableParameter::GetValue
wfcUDFVariableParameter::SetValue
Obtain or set the default value for the variant parameter or annotation value.
wfcUDFVariableParameter::GetItemIdType
wfcUDFVariableParameter::SetItemIdType
Obtain or set the item type of the variant parameter or annotation value.
wfcUDFVariableParameter::GetItemId
wfcUDFVariableParameter::SetItemId
Obtain or set the item id of the variant parameter or annotation value.
wfcUDFVariableParameter::GetName
wfcUDFVariableParameter::SetName
Obtain or set the name or the symbol of the variant parameter or annotation value.
wfcFeature::VisitItems
Visits the annotation elements in the specified feature.
File Handling
New Function
Description
wfcWSession::UIEditFile
Opens an edit window for the specified text file.
wfcWSession::ParseFileName
wfcParsedFileNameData::GetDirectoryPath
wfcParsedFileNameData::GetName
wfcParsedFileNameData::GetExtension
wfcParsedFileNameData::GetVersion
Retrieves the directory path, file name, extension, and version from the specified single wide character string.
wfcWSession::DisplayInformationWindow
Creates a window and displays the content of the specified file.
wfcWSession::UIOpenFileType
wfcFiletypeOpenOptions::Create
wfcFiletypeOpenOptions::GetModelFiletypes
wfcFiletypeOpenOptions::SetModelFiletypes
wfcFiletypeOpenOptions::GetPreselectedItem
wfcFiletypeOpenOptions::SetPreselectedItem
Opens the relevant dialog box for browsing directories and opening files, and returns the file path of the selected file.
wfcWSession::UISaveFileType
wfcFiletypeSaveOptions::Create
wfcFiletypeSaveOptions::GetModelFiletypes
wfcFiletypeSaveOptions::SetModelFiletypes
wfcFiletypeSaveOptions::SetPreselectedItem
Opens the save dialog box and returns the file path of the selected file.
Graphics
New Function
Description
Color
wfcWDisplay::GetColorByObjectType
Retrieves the standard color used to display the specified entity in the Creo application.
wfcWDisplay::GetColorRGBVersion
wfcWDisplay::SetColorRGBVersion
Provides read and write access to the version of the Creo color map.
wfcWDisplay::GetColorRGBAlternateScheme
wfcWDisplay::SetColorRGBAlternateScheme
Provides read and write access to the color scheme of the Creo application.
Display
wfcWDisplay::DrawPolylines
Draws multiple polylines on the screen.
Geometry
wfcWSelection::EvaluateAngle
wfcWSolid::GetCurve
wfcWSolid::GetAxis
wfcWSolid::GetCsys
wfcWPart::FindGeometry
Provides read and write access to the geometry data in a model.
Line Style
wfcWSession::GetLineStyleData
wfcLineStyleData::GetName
wfcLineStyleData::GetDefinition
wfcLineStyleData::GetCapStyle
wfcLineStyleData::GetJoinStyle
wfcLineStyleData::GetDashOffset
wfcLineStyleData::GetDashList
wfcLineStyleData::GetFillStyle
wfcLineStyleData::GetFillRule
Retrieves information about the specified line style.
Geometry Objects
New Function
Description
Axis
wfcAxis::GetAxisData
Provides read and write access to the axis geometry data in a model.
Contour
wfcWContour::Eval3DOutline
wfcContourDescriptor::Create
wfcContourDescriptor::SetContourTraversal
wfcContourDescriptor::GetContourTraversal
wfcContourDescriptor::SetEdgeIds
wfcContourDescriptor::GetEdgeIds
Provides read and write access to the contour geometry data in a model.
Curve
wfcWCurve::GetCurveData
wfcWCurve::GetColorType
wfcWCurve::SetColorType
wfcWCurve::GetLineStyle
wfcWCurve::SetLineStyle
Provides read and write access to the curve geometry data in a model.
Edges
wfcWEdge::GetEdgeType
wfcWEdge::GetEdgeVertexData
wfcWCurve::GetCurveTessellation
wfcWEdge::GetEdgeTessellation
wfcEdgeDescriptor::Create
wfcEdgeDescriptor::GetId
wfcEdgeDescriptor::SetId
wfcEdgeDescriptor::GetEdgeSurface1
wfcEdgeDescriptor::SetEdgeSurface1
wfcEdgeDescriptor::GetEdgeSurface2
wfcEdgeDescriptor::SetEdgeSurface2
wfcEdgeSurfaceData::Create
wfcEdgeSurfaceData::GetEdgeSurfaceId
wfcEdgeSurfaceData::SetEdgeSurfaceId
wfcEdgeSurfaceData::GetDirection
wfcEdgeSurfaceData::SetDirection
wfcEdgeSurfaceData::GetUVParamsSequence
wfcEdgeSurfaceData::SetUVParamsSequence
wfcEdgeSurfaceData::GetUVCurveData
wfcEdgeSurfaceData::SetUVCurveData
wfcEdgeDescriptor::GetXYZCurveData
wfcEdgeDescriptor::SetXYZCurveData
Provides read and write access to the edge geometry data in a model.
Point
wfcWPoint::GetCoordinates
wfcWPoint::FindIntolerance
Provides read and write access to the point geometry data in a model.
Quilt
wfcWQuilt::GetVolume
wfcWQuilt::IsBackupGeometry
wfcQuiltData::Create
wfcQuiltData::SetQuiltId
wfcQuiltData::GetQuiltId
wfcQuiltData::SetSurfaceDescriptors
wfcQuiltData::GetSurfaceDescriptors
Provides read and write access to the quilt geometry data in a model.
Import Feature
New Function
Description
Attributes
wfcImportFeatAttributes::Create
wfcImportFeatAttributes::MakeSolid
wfcImportFeatAttributes::SetSolid
wfcImportFeatAttributes::IsAdded
wfcImportFeatAttributes::SetAdded
wfcImportFeatAttributes::AreSurfacesJoined
wfcImportFeatAttributes::SetSurfacesJoined
Provides read and write access to the attributes of the import feature.
Properties
wfcWFeature::GetIdMap
wfcWFeature::GetUserIds
wfcWFeature::GetItemIds
wfcWFeature::GetImportFeatureData
wfcImportFeatureData::GetIntfType
wfcImportFeatureData::GetFileName
wfcImportFeatureData::GetCsys
wfcImportFeatureData::GetAttributes
Retrieves information about the properties of an import feature.
Redefine
wfcWFeature::RedefineImportFeature
wfcImportFeatureRedefSource::GetRedefOperationType
wfcWSession::GetImportFeatRedefSourceType
Redefines the import feature.
Interface Data
New Function
Description
wfcWPart::GetInterfaceData
Extracts information about the geometry of a part.
wfcConversionOptions::Create
wfcConversionOptions::GetEdgeRepresentation
wfcConversionOptions::SetEdgeRepresentation
wfcEdgeRepresentation::Create
wfcEdgeRepresentation::GetUVPoints
wfcEdgeRepresentation::SetUVPoints
wfcEdgeRepresentation::GetUVCurves
wfcEdgeRepresentation::SetUVCurves
wfcEdgeRepresentation::GetXYZCurves
wfcEdgeRepresentation::SetXYZCurves
wfcConversionOptions::GetCurveConversionOption
wfcConversionOptions::SetCurveConversionOption
wfcConversionOptions::GetSurfaceConversionOption
wfcConversionOptions::SetSurfaceConversionOption
Retrieves and sets the information about the curves, edges, and surfaces of a part.
wfcInterfaceData::Create
wfcInterfaceData::GetSurfaceData
wfcInterfaceData::SetSurfaceData
wfcInterfaceData::GetEdgeDescriptor
wfcInterfaceData::SetEdgeDescriptor
wfcInterfaceData::GetQuiltData
wfcInterfaceData::SetQuiltData
wfcInterfaceData::GetDatumData
wfcInterfaceData::SetDatumData
wfcInterfaceData::GetAccuracytype
wfcInterfaceData::SetAccuracytype
wfcInterfaceData::GetAccuracy;
wfcInterfaceData::SetAccuracy
wfcInterfaceData::GetOutline
wfcInterfaceData::SetOutline
Retrieves and sets the information for the interface data.
wfcWSession::GetDataSourceType
Returns the type of the interface source data in session
Layers
New Function
Description
wfcLayerItem::GetLayers
wfcLayerItem::IsLayerItemVisible
wfcLayerItem::RemoveNoUpdate
wfcLayerItem::AddNoUpdate
wfcLayerState::ActivateLayerState
wfcLayerState::AddLayer
wfcLayerState::DeleteLayerState
wfcLayerState::GetDefaultLayer
wfcLayerState::SetDefaultLayer
wfcLayerState::GetLayerData
wfcLayerState::GetLayerStateName
wfcLayerState::HideLayerItem
wfcLayerState::IsLayerItemHidden
wfcLayerState::RemoveLayer
wfcLayerState::UnhideLayerItem
wfcLayerStateData::Create
wfcLayerStateData::GetDisplayStatuses
wfcLayerStateData::GetLayerItems
wfcLayerStateData::SetLayerItems
wfcLayerStateData::GetLayerStateName
wfcLayerStateData::SetDisplayStatuses
wfcLayerStateData::SetLayerStateName
wfcLayerStateData::GetLayers
wfcLayerStateData::SetLayers
wfcWModel::ListLayers
wfcWModel::SaveLayerDisplayStatus
wfcWSolid::ListLayerStates
wfcWSolid::CreateLayerState
wfcWSolid::GetActiveLayerState
wfcWModel::GetLayerItem
Provides read and write access to layer items and layer states.
License Data
New Function
Description
wfcWSession::IsOptionOrdered
Returns a boolean value indicating if the specified Creo license option is available in the current session.
Light Sources
New Function
Description
wfcWWindow::GetLightInstructions
wfcWWindow::SetLightInstructions
wfcLightSourceInstruction::Create
wfcLightSourceInstruction::GetName
wfcLightSourceInstruction::SetName
wfcLightSourceInstruction::GetType
wfcLightSourceInstruction::SetType
wfcLightSourceInstruction::GetColor
wfcLightSourceInstruction::SetColor
wfcLightSourceInstruction::GetPosition
wfcLightSourceInstruction::SetPosition
wfcLightSourceInstruction::GetDirection
wfcLightSourceInstruction::SetDirection
wfcLightSourceInstruction::GetSpreadAngle
wfcLightSourceInstruction::SetSpreadAngle
wfcLightSourceInstruction::GetCastShadows
wfcLightSourceInstruction::SetCastShadows
wfcLightSourceInstruction::GetIsActive
wfcLightSourceInstruction::SetIsActive
Provides read and write access to light source.
Line Styles for Graphics
New Function
Description
wfcWSession::IsOptionOrdered
Returns a boolean value indicating if the specified Creo license option is available in the current session.
Macros
New Function
Description
pfcBaseSession::RunMacro
Runs a macro string.
Models
New Function
Description
wfcWModel::GetDefaultName
Gets the default name assigned to the model by the Creo application at the time of creation.
wfcWModel::GetSubType
Gets the subtype of the specified model.
wfcWModel::IsVariantFeatModel
Identifies if a model pointer is from an inheritance feature or a flexible component.
pfcModel::IsNativeModel
Checks if the specified model is a native Creo model.
wfcWModel::IsStandardLocation
Checks if the specified model was opened from a standard file location such as, local disk or a mapped drive on a remote computer.
wfcWLayout::Declare
Declares a notebook name to the specified Creo Parametric model or notebook.
wfcWLayout::Undeclare
Undeclares the notebook name to the specified Creo Parametric model or notebook.
ModelItems
New Function
Description
wfcWModelItem::GetDefaultName
Gets the default name, that is, the name generated by the Creo application for the specified model item.
wfcWModelItem::IsNameReadOnly
Checks if the name of the specified model item can be modified.
wfcWModelItem::DeleteUserDefinedName
Deletes the user-defined name of the model item.
wfcWModelItem::Hide
wfcWModelItem::Unhide
wfcWModelItem::IsHidden
Retrieves and modifies the hidden status of the model items in the model tree.
wfcMaterialItem::GetDescription
wfcMaterialItem::SetDescription
Provides read and write access to the material description for the specified model item.
wfcWModelItem::IsZoneFeature
Checks if the specified model item is a zone feature.
wfcWView::GetModelItemFromView
Gets the model item handle for the specified view.
wfcViewModelitem::GetViewFromModelItem
Gets the view handle for the specified model item.
Notes
New Function
Description
Note Properties
wfcWDetailNoteItem::GetElbowDirection
Retrieves the elbow direction of elbow in a note in the model coordinate system
wfcWDetailNoteItem::GetLeaderStyle
wfcWDetailNoteItem::SetLeaderStyle
Retrieve and set the leader style used for the note.
wfcWDetailNoteItem::Get3DLineEnvelope
Retrieves the envelope of a line for a specified note.
wfcWDetailNoteItem::GetLegacyLeaderNoteLength
Retrieves the length of a leader line in a note.
wfcWDetailNoteItem::GetLegacyLeaderNoteDirection
Retrieves the direction of the leader line in a note.
Accessing Note Placement
wfcWDetailNoteItem::GetLeaderArrowTypes
Retrieves the type of arrowhead used for leaders attached to the note.
wfcWDetailNoteItem::GetAnnotationPlane
Retrieves the annotation plane assigned to the note attachment data.
Modifying 3D Note Attachments
wfcWDetailNoteItem::SetLeadersWithArrowType
Sets a new leader to the end of the array of current leaders on a note and specifies the type of arrowhead that is to be used for the attached leader.
wfcWDetailNoteItem::AddLeader
Adds a new leader to the end of the array of current leaders on a note.
wfcWDetailNoteItem::AddLeaderWithArrowType
Adds a new leader to the end of the array of current leaders on a note and specifies the type of arrowhead that is to be used for the attached leader.
pfcDetailLeaderAttachment::GetLeaderAttachment
pfcDetailLeaderAttachment::SetLeaderAttachment
Get and set the leader attachment.
pfcDetailLeaderAttachment::GetType
pfcDetailLeaderAttachment::SetType
Retrieves and sets the type of attachment.
wfcWDetailNoteItem::RemoveLeader
Removes a leader from the note attachment data.
wfcWDetailNoteItem::SetAnnotationPlane
Sets the annotation plane for the note.
wfcWSolid::CreateOnItemNote
Sets the location of an "On Item" note placement.
wfcWSolid::CreateFreeNote
Sets the location of the note text.
Text Style Properties
pfcTextStyle::GetAngle
pfcTextStyle::SetAngle
Retrieves and sets the angle of rotation for the text style object.
pfcTextStyle::GetFontName
pfcTextStyle::SetFontName
Retrieves and sets the font used to display the text style object.
pfcTextStyle::GetHeight
pfcTextStyle::SetHeight
Retrieves and sets the height of the text style object.
pfcTextStyle::GetIsMirrored
pfcTextStyle::SetIsMirrored
Retrieves and sets the mirroring option for the text style object.
pfcTextStyle::GetSlantAngle
pfcTextStyle::SetSlantAngle
Retrieves and sets the slant angle of the text style object.
pfcTextStyle::GetThickness
pfcTextStyle::SetThickness
Retrieves and sets the line thickness of the text style object.
pfcTextStyle::GetWidthFactor
pfcTextStyle::SetWidthFactor
Retrieves and sets the width factor of the text style object.
pfcTextStyle::GetIsUnderlined
pfcTextStyle::SetIsUnderlined
Retrieves and sets the underline option for the text style object.
Parameters
New Function
Description
wfcWParameterOwner::ApplyParameterTableset
Assigns the parameter set to the parameter owner Modelitem.
wfcWParameterOwner::ExportParameterTable
Exports the file that contains information about the parameter table in .CSV or .TXT format.
wfcWParameter::GetLockStatus
wfcWParameter::SetLockStatus
Retrieves and sets the access state of the specified parameter.
wfcWParameter::GetValueWithUnits
wfcWParameter::SetValueWithUnits
wfcParamValueWithUnits::Create
wfcParamValueWithUnits::GetValue
wfcParamValueWithUnits::SetValue
wfcParamValueWithUnits::GetUnits
wfcParamValueWithUnits::SetUnits
Retrieves and sets the value of a parameter along with units.
Driving Parameter
wfcWParameter::GetDrivingParam
wfcWParameter::SetDrivingParam
Provides read and write access to the name of the driving parameter for the specified material parameter.
Parameter Table
wfcParamTableEntry::GetName
wfcParamTableEntry::GetRange
wfcParamTableEntry::GetValue
wfcWParameter::GetTableset
wfcParamTableset::GetEntries
wfcParamTableset::GetLabel
wfcParamTableset::GetTablePath
Retrieves information about parameters in a parameter table set.
Part Properties
New Function
Description
wfcWPart::GetDensity
wfcWPart::SetDensity
Retrieves and sets the density for the specified part.
wfcWPart::GetVolumeInfo
Analyzes and returns the number of connected volumes of a part.
Point
New Function
Description
wfcWSolid::ProjectPoint
wfcProjectionInfo::GetSurface
wfcProjectionInfo::GetUVParam
Retrieves the surface and its UV point for a point projected on a solid.
Ray
New Function
Description
wfcWModel::ComputeRayIntersections
wfcRay::Create
wfcRay::SetPoint
wfcRay::GetPoint
wfcRay::SetVector
wfcRay::GetVector
Retrieves a list of intersections between a ray and a model.
Relations
New Function
Description
wfcWRelationOwner::EvaluateExpressionWithUnits
Evaluates a line of a relation set and returns the resulting value with its unit.
wfcWRelationOwner::UseUnits
Sets the condition that units must be considered while solving the specified relation.
wfcWRelationOwner::UnitsUsed
Checks if units must be considered while solving the relation.
Selection
New Function
Description
wfcWSelectionOptions::Create
wfcWSelectionOptions::GetSelEnvOptions
wfcWSelectionOptions::SetSelEnvOptions
wfcSelectionEnvironmentOption::Create
wfcSelectionEnvironmentOption::GetAttribute
wfcSelectionEnvironmentOption::SetAttribute
wfcSelectionEnvironmentOption::GetAttributeValue
wfcSelectionEnvironmentOption::SetAttributeValue
wfcWSelection::Verify
wfcWSelection::GetWindowId
wfcWSelection::GetDrawingTable
wfcWSelection::GetPipelineFeature
wfcWSession::AddCollectionToSelectionBuffer
wfcWSelection::GetCollection
wfcWSelection::EvaluateAngle
Controls the interactive selection environment.
Server Objects
New Function
Description
wfcWServer::IsServerObjectModified
wfcServerObjectStatus::GetIsCheckedOut
wfcServerObjectStatus::GetIsModifiedInWorkspace
wfcServerObjectStatus::GetIsModifiedLocally
Checks if the specified object has been modified in workspace or locally.
Simplified Representation
New Function
Description
wfcWSimpRep::GetSimprepSubstitutionName
wfcWSimpRep::IsSimpRepInstructionDefault
wfcWSimpRep::SetSimpRepInstructionDefaultAction
wfcWSimpRep::SetSimprepdataTempvalue
wfcWSimpRep::SetSimprepdataName
wfcWSimpRep::DeleteSimpRepInstructionItem
wfcWSession::RetrieveDefaultEnvelopeSimprep
wfcWSession::LoadModelRepresentation
Provides read and write access to simplified representation.
wfcWAssembly::ExpandLightweightGraphicsSimprep
Expands the lightweight graphics representation to the specified level.
Solids
New Function
Description
wfcWSolid::DisplaySolid
Displays the specified solid.
wfcWSolid::GetDisplayOutline
Retrieves the display outline of the solid.
wfcSolid::CheckFamilyTable
Checks if the specified solid has a family table associated with it.
wfcWSolid::FindShellsAndVoids
wfcShellData::GetShellOrders
wfcShellOrder::GetOrientation
wfcShellOrder::GetFirstFace
wfcShellOrder::GetNumberOfFaces
wfcShellOrder::GetAmbientShell
wfcShellData::GetShellFaces
wfcShellFace::GetSurfaceId
wfcShellFace::GetContour
Retrieves a list of surface-contour pairs for each shell and void in the solid.
wfcWSolid::GetQuilt
Returns information about the quilt for the specified solid.
Surface
New Function
Description
wfcWSurface::NextSurface
Retrieves the next surface in the surface list.
Geometry
wfcWPart::GetVolumeInfo
wfcVolumeSurfaceInfo::GetNumberOfVolumes
wfcVolumeSurfaceInfo::GetSurfaceInfos
wfcBoundingSurfaceInfo::GetNumberOfSurfaces
wfcBoundingSurfaceInfo::GetSurfaceIds
Retrieves information about the connected volumes in a part.
Properties
wfcWSelection::GetVisibleAppearance
wfcWSelection::SetVisibleAppearance
wfcAppearance::Create
wfcAppearance::GetAmbient
wfcAppearance::SetAmbient
wfcAppearance::GetDescription
wfcAppearance::SetDescription
wfcAppearance::GetDiffuse
wfcAppearance::SetDiffuse
wfcAppearance::GetHighlight
wfcAppearance::SetHighlight
wfcAppearance::GetHighlightColor
wfcAppearance::SetHighlightColor
wfcAppearance::GetKeywords
wfcAppearance::SetKeywords
wfcAppearance::GetLabel
wfcAppearance::SetLabel
wfcAppearance::GetName
wfcAppearance::SetName
wfcAppearance::GetRGBColor
wfcAppearance::SetRGBColor
wfcAppearance::GetReflection
wfcAppearance::SetReflection
wfcAppearance::GetShininess
wfcAppearance::SetShininess
wfcAppearance::GetTransparency
wfcAppearance::SetTransparency
wfcWSurface::GetNextSurface
wfcWSelection::SetVisibleTextures
wfcWSelection::GetVisibleTextures
wfcTexture::Create
wfcTexture::GetDecal
wfcTexture::SetDecal
wfcTexture::GetBumpMap
wfcTexture::SetBumpMap
wfcTexture::GetPlacements
wfcTexture::SetPlacements
wfcTexturePlacement::Create
wfcTexturePlacement::GetTextureProjectionType
wfcTexturePlacement::SetTextureProjectionType
wfcTexturePlacement::GetTextureType
wfcTexturePlacement::SetTextureType
wfcTexturePlacement::GetLineEnvelope
wfcTexturePlacement::SetLineEnvelope
wfcTexturePlacement::GetHorizontalOffset
wfcTexturePlacement::SetHorizontalOffset
wfcTexturePlacement::GetVerticalOffset
wfcTexturePlacement::SetVerticalOffset
wfcTexturePlacement::GetRotate
wfcTexturePlacement::SetRotate
wfcTexturePlacement::GetHorizontalScale
wfcTexturePlacement::SetHorizontalScale
wfcTexturePlacement::GetVerticalScale
wfcTexturePlacement::SetVerticalScale
wfcTexturePlacement::GetBumpHeight
wfcTexturePlacement::SetBumpHeight
wfcTexturePlacement::GetDecalIntensity
wfcTexturePlacement::SetDecalIntensity
wfcTexturePlacement::GetHorizontalFlip
wfcTexturePlacement::SetHorizontalFlip
wfcTexturePlacement::GetVerticalFlip
wfcTexturePlacement::SetVerticalFlip
wfcWSession::IsTextureFileEmbedded
wfcWSession::GetTextureFilePath
Provides read and write access to surface properties, that is, appearance properties, texture properties, and texture placement properties.
wfcWSurfaceDescriptor::SetContourData
wfcWSurfaceDescriptor::GetContourData
Provides read and write access to the contour data in the specified surface.
wfcWSurfaceDescriptor::SetSurfaceId
wfcWSurfaceDescriptor::GetSurfaceId
Provides read and write access to the Id of the specified surface.
Tessellation
New Function
Description
Part and Assembly Tessellation
wfcWSolid::Tessellate
Tessellates all the surfaces of a part or the surfaces that belong to the assembly.
wfcSurfaceTessellationData::GetFacetVertexIndices
wfcSurfaceTessellationData::GetNormals
wfcSurfaceTessellationData::GetNumberOfFacets
wfcSurfaceTessellationData::GetNumberOfVertices
wfcSurfaceTessellationData::GetSurface
wfcSurfaceTessellationData::GetVertexVectors
Retrieves tessellated information for a Creo part surface.
Tessellation Information for Geometry
wfcSurfaceTessellationInput::Create
wfcSurfaceTessellationInput::GetAngleControl
wfcSurfaceTessellationInput::SetAngleControl
wfcSurfaceTessellationInput::GetStepSize
wfcSurfaceTessellationInput::SetStepSize
wfcSurfaceTessellationInput::GetProjection
wfcSurfaceTessellationInput::SetProjection
wfcSurfaceTessellationInput::GetCsysData
wfcSurfaceTessellationInput::SetCsysData
wfcSurfaceTessellationInput::GetChordHeight
wfcSurfaceTessellationInput::SetChordHeight
wfcWSurface::GetTessellation
wfcTessellation::GetFacetVertexIndices
wfcTessellation:GetUVParams
wfcTessellation::GetVectors
wfcTessellation::GetVertices
Provides read and write access to tessellated information for different types of Creo geometry.
Tolerances
New Function
Description
wfcWSolid::GetTolerance
wfcWSolid::SetTolerance
wfcWSession::GetDefaultTolerance
wfcWSolid::GetModelClass
wfcWSolid::SetModelClass
wfcWSolid::LoadToleranceClass
Provides read and write access to geometric tolerances and tolerance tables.
Units
New Function
Description
wfcWUnit::CalculateUnitConversion
Calculates the conversion factor between two units.
wfcWModel::CreateUnitByExpression
wfcWUnit::ModifyByExpression
Creates and modifies a derived unit.
Visit Methods
New Function
Description
wfcWAssembly::VisitComponents
Visit the components in an assembly.
wfcVisitingClient::ApplyAction
wfcVisitingClient::ApplyFilter
Action and filter methods used while visiting items and components.
wfcWFeatureGroup::VisitDimensions
Traverses the members of the feature group.
wfcWModel::VisitDetailItems
Visits the  pfcDetailType objects in the model for the specified drawing and sheet of a detail item.
Windows
New Function
Description
wfcWSession::CreateAccessorywindowWithTree
Opens an accessory window containing the specified object with some menus.
wfcWSession::CreateBarewindow
Opens a window containing the specified object without any menu or toolbar.
wfcWWindow::Refit
Refits the model in the specified window.
Zone Feature
New Function
Description
wfcWSolid::CreateZoneSectionFeature
wfcZoneFeatureReference::Create
wfcZoneFeatureReference::GetPlaneId
wfcZoneFeatureReference::SetPlaneId
wfcZoneFeatureReference::GetOperation
wfcZoneFeatureReference::SetOperation
wfcZoneFeatureReference::GetMemberIdTable
wfcZoneFeatureReference::SetMemberIdTable
wfcZoneFeatureReference::GetFlip
wfcZoneFeatureReference::SetFlip
wfcWFeature::GetZoneXSectionGeometry
Provides read and write access to zone feature and to references used to create the zone feature.
Superseded Functions
This section describes the superseded functions for Creo Object TOOLKIT C++ for Creo 4.0 F000.
Action listeners
Superseded Function
New Function
wfcWSession::AddModelRetrievePreListener
wfcWSession::AddBeforeModelRetrieveListener
wfcBeforeModelRetrieveListener::OnBeforeModelRetrieve
wfcBeforeModelRetrieveActionListener::OnBeforeModelRetrieve
Dimensions
Superseded Function
New Function
pfcDimension2D::GetIsAssociative
pfcDrawing::IsDimensionAssociative
pfcDimension2D::GetIsDisplayed
pfcDrawing::IsDimensionDisplayed
pfcDimension2D::GetAttachmentPoints
pfcDrawing::GetDimensionAttachPoints
pfcDimension2D::GetDimensionSenses
pfcDrawing::GetDimensionSenses
pfcDimension2D::GetOrientationHint
pfcDrawing::GetDimensionOrientHint
pfcDimension2D::GetBaselineDimension
pfcDrawing::GetBaselineDimension
pfcDimension2D::SetLocation
pfcDrawing::GetDimensionLocation
pfcDimension2D::GetView
pfcDrawing::GetDimensionView
pfcDimension2D::GetIsToleranceDisplayed
pfcDrawing::IsDimensionToleranceDisplayed
pfcDimension2D::ConvertToLinear
pfcDrawing::ConvertOrdinateDimensionToLinear
pfcDimension2D::ConvertToOrdinate
pfcDrawing::ConvertLinearDimensionToOrdinate
pfcDimension2D::ConvertToBaseline
pfcDrawing::ConvertLinearToBaseline
pfcDimension2D::SwitchView
pfcDrawing::SwitchDimensionView
pfcDimension2D::SetTolerance
pfcDrawing::SetTolerance
pfcDimension2D::EraseFromModel2D
pfcDrawing::EraseDimension
Drawings
Superseded Function
New Function
pfcDetailItemOwner::RetrieveSymbolDefinition
pfcDetailItemOwner::RetrieveSymbolDefItem
Relations
Superseded Function
New Function
wfcWRelationOwner::EvaluateExpression
wfcWRelationOwner::EvaluateExpressionWithUnits
Tessellation
Superseded Function
New Function
wfcWPart::Tessellate
wfcWSolid::Tessellate
Multithreading
From Creo 3.0 onward, the method wfcWSession::EnableMultiThreadMode has been obsoleted.
Support for Windchill ProductPoint
From Creo Parametric 3.0 F000 onward, the header file pfcWPP.h along with its methods has been obsoleted as Windchill ProductPoint is no longer supported.
Miscellaneous Technical Changes
The following changes in Creo 4.0 F000 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.
Configuration Flag to Include Annotations During Export of Creo Models
From Creo 3.0 onward, a new configuration flag pfcEXPORT_INCLUDE_ANNOTATIONS has been added. The flag includes annotations during the export of Creo model to the specified format.
Display Style for Views
From Creo 3.0 M010 onward, a new display type pfcDISPSTYLE_SHADED_WITH_EDGES has been added to the enumerated data type pfcDisplayStyle. This option allows you to display the model as a shaded solid along with its edges.
The enumerated data type wfcDisplayStyle was a duplicate of pfcDisplayStyle. In Creo 3.0 M010, wfcDisplayStyle has been obsoleted. Use the enumerated data type pfcDisplayStyle instead.
Importing Solid Edge Part and Sheet Metal Part as Features
From Creo 3.0 M040 onward, you can import Soild Edge part and sheet metal part as features. To import, use the following values added to enumerated data type pfcIntfType:
•  pfcINTF_SE_PART
•  pfcINTF_SE_SHEETMETAL_PART
Importing Solid Edge Sheet Metal Part to Creo Parametric
From Creo 3.0 M040 onward, you can import a Solid Edge sheet metal part to Creo Parametric. To import, use the value pfcIMPORT_NEW_SEDGE_SHEETMETAL_PART added to the enumerated data type pfcNewModelImportType.
Support for Neutral File Interface Data in wfcWSolid::ImportAsFeat
From Creo 3.0 onward, you can specify interface data of neutral type as input for the method wfcWSolid::ImportAsFeat.
Updates to pfcModelItemType Retrieving Material in Models
From Creo 3.0 onward, the following values have been added to the enumerated data type pfcModelItemType:
•  ITEM_RP_MATERIAL—It allows you to get the material handle for the material assigned to a model.
•  ITEM_VIEW—It allows you to specify the type of item as pfcView.