Library | File

Class wfcAnnotation

# include <wfcAnnotation.h>

class wfcAnnotation
 : public virtual wfcLayerItem,
 : public virtual wfcWModelItem
{
    xaideclare(wfcAnnotation)
    ...
};



Description

This interface represent various type of annotations such as Dimension,Note,Symbols,SetDatumTag,Surface Finish.
Direct Known Subclasses:
wfcSetDatumTag, wfcSurfaceFinish, wfcWDimension, wfcWDetailNoteItem, wfcWDetailSymbolInstItem



Method Summary

voidDisplay ()
Displays annotation which is temporarily undisplayed by wfcAnnotation::Undisplay(). This method must be called after making changes in an annotation.
voidDisplayInDrawing (pfcDrawing_ptr DrawingModel, optional pfcView2D_ptr DrawingView, optional pfcComponentPath_ptr CompPath)
Displays annotation owned by solid and shown in drawing which is temporarily undisplayed by wfcAnnotation::Undisplay(). This method must be called after making changes in an annotation.
optional wfcAnnotationElement_ptrGetAnnotationElement ()
LICENSE: 222
 
wfcAnnotationAttachmentAssociativityGetAttachmentAssociativity (pfcDrawing_ptr Drawing)
LICENSE: 222
 
optional pfcAnnotationTextStyle_ptrGetTextStyle ()
LICENSE: 222
Get textstyle information of annotation.
optional pfcAnnotationTextStyle_ptrGetTextStyleInDrawing (pfcDrawing_ptr Drawing, optional pfcComponentPath_ptr CompPath, optional pfcView2D_ptr View)
LICENSE: 222
Get textstyle information of annotation in specified drawing.
xboolIsAssociative (pfcDrawing_ptr Drawing)
LICENSE: 222
 
xboolIsInactive ()
LICENSE: 222
 
xboolIsShown (optional pfcDrawing_ptr DrawingModel)
Checks if annotation is shown in owner or specified drawing.
voidRotate (xreal Angle)
LICENSE: 222
 
voidSetTextStyle (pfcAnnotationTextStyle_ptr TextStyle)
LICENSE: 222
Get textstyle information of annotation.
voidSetTextStyleInDrawing (pfcAnnotationTextStyle_ptr TextStyle, pfcDrawing_ptr Drawing, optional pfcComponentPath_ptr CompPath, optional pfcView2D_ptr View)
LICENSE: 222
Set textstyle information of annotation in specified drawing.
voidShowInDrawing (pfcView2D_ptr DrawingView, optional pfcComponentPath_ptr CompPath)
Show annotation owned by solid in a drawing.
voidUndisplay ()
Undisplays annotation temporarily. This method must be called before making any changes in an annotation.
voidUndisplayInDrawing (pfcDrawing_ptr DrawingModel, optional pfcComponentPath_ptr CompPath)
Undisplays annotation owned by solid and shown in drawing temporarily. This method must be called before making any changes in an annotation.
voidUpdate (optional pfcDrawing_ptr DrawingModel)
Updates the display of the annotation, but does not actually display it anywhere. If the annotation is not currently displayed (because its hidden by layer status or inactive geometry) the text extracted from the annotation with mode pfcDIM_DISPLAY_NUMERIC may include callout symbols instead of the text shown to the user. This method will tell Creo Parametric to update the contents of the annotation to cross-reference these callout values.
voidUpdateAttachment (pfcDrawing_ptr Drawing)
LICENSE: 222
Updates the attachment of the drawing annotation and makes it associative to the attachment of the annotation in the 3D model.
voidUpdatePosition (pfcDrawing_ptr Drawing)
LICENSE: 222
Updates the position of the drawing annotation and makes it associative to the position of the annotation in the 3D model.


Methods Inherited from Class wfcLayerItem:

IsLayerItemVisible, RemoveNoUpdate, GetLayers, AddNoUpdate


Methods Inherited from Class pfcActionSource:

AddActionListener, RemoveActionListener


Methods Inherited from Class pfcParent:

GetChild


Methods Inherited from Class pfcParameterOwner:

GetParam, CreateParam, ListParams, SelectParam, CreateParamWithUnits, SelectParameters


Methods Inherited from Class wfcWParameterOwner:

ExportParameterTable, ApplyParameterTableset


Methods Inherited from Class pfcRelationOwner:

DeleteRelations, GetRelations, SetRelations, RegenerateRelations, EvaluateExpression


Methods Inherited from Class wfcWRelationOwner:

GetRelationConstraints, UnitsUsed, UseUnits, EvaluateExpressionWithUnits


Methods Inherited from Class pfcChild:

GetDBParent, GetOId


Methods Inherited from Class pfcModelItem:

GetName, SetName, GetId, GetType


Methods Inherited from Class wfcWModelItem:

DeleteUserDefinedName, Unhide, Hide, IsHidden, IsNameReadOnly, IsZoneFeature, GetDefaultName



Method Detail

voidShowInDrawing (pfcView2D_ptr DrawingView, optional pfcComponentPath_ptr CompPath)

Show annotation owned by solid in a drawing.
Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Surface Finish Annotations, Drawings: Ordinate Dimensions, Technical Summary of Changes for Creo 4.0 F000: Annotations
Parameters:
DrawingView
A drawing view where annotation will be shown.
CompPath
Component path for solid owner.
Returns:



voidDisplay ()

Displays annotation which is temporarily undisplayed by wfcAnnotation::Undisplay(). This method must be called after making changes in an annotation.
Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations, Technical Summary of Changes for Creo 4.0 F000: Annotations
Returns:



voidDisplayInDrawing (pfcDrawing_ptr DrawingModel, optional pfcView2D_ptr DrawingView, optional pfcComponentPath_ptr CompPath)

Displays annotation owned by solid and shown in drawing which is temporarily undisplayed by wfcAnnotation::Undisplay(). This method must be called after making changes in an annotation.
Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations, Technical Summary of Changes for Creo 4.0 F000: Annotations
Parameters:
DrawingModel
Drawing where annotation is shown.
DrawingView
Drawing view where annotation is temporarily displayed. Pass null to toggle in existing view.
CompPath
Component path of solid owner.
Returns:



voidUndisplay ()

Undisplays annotation temporarily. This method must be called before making any changes in an annotation.
Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations, Technical Summary of Changes for Creo 4.0 F000: Annotations
Returns:



voidUndisplayInDrawing (pfcDrawing_ptr DrawingModel, optional pfcComponentPath_ptr CompPath)

Undisplays annotation owned by solid and shown in drawing temporarily. This method must be called before making any changes in an annotation.
Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations, Technical Summary of Changes for Creo 4.0 F000: Annotations
Parameters:
DrawingModel
Drawing view where annotation is shown.
CompPath
Component path of solid owner.
Returns:



xboolIsShown (optional pfcDrawing_ptr DrawingModel)

Checks if annotation is shown in owner or specified drawing.
Parameters:
DrawingModel
Drawing.
Returns:
 



voidUpdate (optional pfcDrawing_ptr DrawingModel)

Updates the display of the annotation, but does not actually display it anywhere. If the annotation is not currently displayed (because its hidden by layer status or inactive geometry) the text extracted from the annotation with mode pfcDIM_DISPLAY_NUMERIC may include callout symbols instead of the text shown to the user. This method will tell Creo Parametric to update the contents of the annotation to cross-reference these callout values.

This method currently supports '3D model notes' and 'detail notes' only.
Manual References:
Models: Custom Checks, Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Locating and Collecting 3D Symbols and Symbol Definitions, Drawings: Repeat Regions, Technical Summary of Changes for Creo 4.0 F000: Annotations, Interface: Associative Topology Bus Enabled Models and Features
Parameters:
DrawingModel
The drawing where it is to be displayed. Pass null if the owner of the annotation is the same as the model where it would be displayed.
Returns:



optional pfcAnnotationTextStyle_ptrGetTextStyle ()
LICENSE: 222

Get textstyle information of annotation.
Manual References:
Annotations: Annotation Features and Annotations: Annotation Text Styles, Annotations: Annotation Features and Annotations: Annotation Text Styles, Technical Summary of Changes for Creo 4.0 F000: Annotations
Returns:
TextStyle.



voidSetTextStyle (pfcAnnotationTextStyle_ptr TextStyle)
LICENSE: 222

Get textstyle information of annotation.
Manual References:
Annotations: Annotation Features and Annotations: Annotation Text Styles, Annotations: Annotation Features and Annotations: Annotation Text Styles, Technical Summary of Changes for Creo 4.0 F000: Annotations
Parameters:
TextStyle
TextStyle
Returns:



optional pfcAnnotationTextStyle_ptrGetTextStyleInDrawing (pfcDrawing_ptr Drawing, optional pfcComponentPath_ptr CompPath, optional pfcView2D_ptr View)
LICENSE: 222

Get textstyle information of annotation in specified drawing.
Manual References:
Annotations: Annotation Features and Annotations: Annotation Text Styles, Annotations: Annotation Features and Annotations: Annotation Text Styles, Technical Summary of Changes for Creo 4.0 F000: Annotations
Parameters:
Drawing
Drawing.
CompPath
Component path of owner solid.
View
Reserved for future expansion. Pass null.
Returns:
TextStyle



voidSetTextStyleInDrawing (pfcAnnotationTextStyle_ptr TextStyle, pfcDrawing_ptr Drawing, optional pfcComponentPath_ptr CompPath, optional pfcView2D_ptr View)
LICENSE: 222

Set textstyle information of annotation in specified drawing.
Manual References:
Annotations: Annotation Features and Annotations: Annotation Text Styles, Annotations: Annotation Features and Annotations: Annotation Text Styles, Technical Summary of Changes for Creo 4.0 F000: Annotations
Parameters:
TextStyle
TextStyle.
Drawing
Drawing.
CompPath
Component path of owner solid.
View
Reserved for future expansion. Pass null.
Returns:



voidUpdateAttachment (pfcDrawing_ptr Drawing)
LICENSE: 222

Updates the attachment of the drawing annotation and makes it associative to the attachment of the annotation in the 3D model.
Manual References:
Annotations: Annotation Features and Annotations: Annotation Associativity, Technical Summary of Changes for Creo 4.0 F000: Annotations
Parameters:
Drawing
The drawing
Returns:



voidUpdatePosition (pfcDrawing_ptr Drawing)
LICENSE: 222

Updates the position of the drawing annotation and makes it associative to the position of the annotation in the 3D model.
Manual References:
Annotations: Annotation Features and Annotations: Annotation Associativity, Annotations: Annotation Features and Annotations: Annotation Associativity, Technical Summary of Changes for Creo 4.0 F000: Annotations
Parameters:
Drawing
The drawing
Returns:



xboolIsAssociative (pfcDrawing_ptr Drawing)
LICENSE: 222

 
Manual References:
Annotations: Annotation Features and Annotations: Annotation Associativity, Annotations: Annotation Features and Annotations: Annotation Associativity, Technical Summary of Changes for Creo 4.0 F000: Annotations
Parameters:
Drawing
 
Returns:
 



wfcAnnotationAttachmentAssociativityGetAttachmentAssociativity (pfcDrawing_ptr Drawing)
LICENSE: 222

 
Manual References:
Annotations: Annotation Features and Annotations: Annotation Associativity, Annotations: Annotation Features and Annotations: Annotation Associativity, Technical Summary of Changes for Creo 4.0 F000: Annotations
Parameters:
Drawing
 
Returns:
 



optional wfcAnnotationElement_ptrGetAnnotationElement ()
LICENSE: 222

 
Manual References:
Annotations: Annotation Features and Annotations: Accessing and Modifying Annotation Elements, Annotations: Annotation Features and Annotations: Accessing and Modifying Annotation Elements, Technical Summary of Changes for Creo 4.0 F000: Annotations
Returns:
 



xboolIsInactive ()
LICENSE: 222

 
Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations, Technical Summary of Changes for Creo 4.0 F000: Annotations
Returns:
 



voidRotate (xreal Angle)
LICENSE: 222

 
Manual References:
Annotations: Annotation Features and Annotations: Annotation Orientation, Annotations: Annotation Features and Annotations: Annotation Orientation, Technical Summary of Changes for Creo 4.0 F000: Annotations
Parameters:
Angle
 
Returns: