Library | Package Java Toolkit

Interface Annotation

package com.ptc.wfc.wfcAnnotation;

public interface Annotation
  extends com.ptc.wfc.wfcLayerState.LayerItem,
          com.ptc.wfc.wfcModelItem.WModelItem



Description

This interface represent various type of annotations such as Dimension,Note,Symbols,SetDatumTag,Surface Finish.
Direct Known Subclasses:
SetDatumTag, SurfaceFinish, GTol, WDimension, WDetailNoteItem, WDetailSymbolInstItem



Method Summary
voidConvertLegacy ()
     Converts annotation created before Creo 4.0 or created using deprecated APIs ProGtolCreate or ProSetdatumtagCreate.
voidDisplay ()
     Displays annotation which is temporarily undisplayed by Annotation.Undisplay(). This method must be called after making changes in an annotation.
voidDisplayInDrawing (Drawing DrawingModel, /*optional*/ View2D DrawingView, /*optional*/ ComponentPath CompPath)
     Displays annotation owned by solid and shown in drawing which is temporarily undisplayed by Annotation.Undisplay(). This method must be called after making changes in an annotation.
/*optional*/ AnnotationElementGetAnnotationElement ()
LICENSE: 222
     
AnnotationAttachmentAssociativityGetAttachmentAssociativity (Drawing Drawing)
LICENSE: 222
     
booleanGetSecurityMarking ()
    Gets Security Marking option for Notes and Symbols
/*optional*/ AnnotationTextStyleGetTextStyle ()
LICENSE: 222
    Get textstyle information of annotation.
/*optional*/ AnnotationTextStyleGetTextStyleInDrawing (Drawing Drawing, /*optional*/ ComponentPath CompPath, /*optional*/ View2D View)
LICENSE: 222
    Get textstyle information of annotation in specified drawing.
booleanIsAssociative (Drawing Drawing)
LICENSE: 222
     
booleanIsInactive ()
LICENSE: 222
     
booleanIsShown ( /*optional*/ Drawing DrawingModel)
    Checks if annotation is shown in owner or specified drawing.
booleanIsUsingXSecReference ()
    Identifies if the annotation is created on or attached to a cross-sectional edge.
booleanNeedsConversion ()
    Returns if the annotation is created before Creo 4.0 or is created using deprecated APIs ProGtolCreate or ProSetdatumtagCreate and needs conversion. Call Annotation.ConvertLegacy() only if this API returns true.
voidRotate (double Angle)
LICENSE: 222
     
voidSetSecurityMarking (boolean Marking)
    Gets Security Marking option for Notes and Symbols
voidSetTextStyle (AnnotationTextStyle TextStyle)
LICENSE: 222
    Get textstyle information of annotation.
voidSetTextStyleInDrawing (AnnotationTextStyle TextStyle, Drawing Drawing, /*optional*/ ComponentPath CompPath, /*optional*/ View2D View)
LICENSE: 222
    Set textstyle information of annotation in specified drawing.
voidShowInDrawing (View2D DrawingView, /*optional*/ ComponentPath 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 (Drawing DrawingModel, /*optional*/ ComponentPath 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*/ Drawing 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 (Drawing 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 (Drawing 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 Interface com.ptc.wfc.wfcLayerState.LayerItem
IsLayerItemVisible, RemoveNoUpdate, GetLayers, AddNoUpdate

Methods Inherited from Interface com.ptc.pfc.pfcBase.ActionSource
AddActionListener, RemoveActionListener, AddActionListenerWithType

Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent
GetChild

Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ParameterOwner
GetParam, CreateParam, ListParams, SelectParam, CreateParamWithUnits, SelectParameters

Methods Inherited from Interface com.ptc.wfc.wfcModelItem.WParameterOwner
ExportParameterTable, ApplyParameterTableset, MathcadParametersSet, MathcadInputParametersGet

Methods Inherited from Interface com.ptc.pfc.pfcModelItem.RelationOwner
DeleteRelations, GetRelations, SetRelations, RegenerateRelations, EvaluateExpression

Methods Inherited from Interface com.ptc.wfc.wfcModelItem.WRelationOwner
GetRelationConstraints, UnitsUsed, UseUnits, EvaluateExpressionWithUnits

Methods Inherited from Interface com.ptc.pfc.pfcObject.Child
GetDBParent, GetOId

Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ModelItem
GetName, SetName, GetId, GetType

Methods Inherited from Interface com.ptc.wfc.wfcModelItem.WModelItem
DeleteUserDefinedName, Unhide, Hide, IsHidden, IsNameReadOnly, IsZoneFeature, GetDefaultName

Method Detail

ShowInDrawing

voidShowInDrawing (View2D DrawingView, /*optional*/ ComponentPath CompPath)


    Show annotation owned by solid in a drawing.

Exceptions thrown (but not limited to):

XToolkitNoChange - The annotation is already shown in the target model.

XToolkitInvalidMatrix - The annotation cannot be shown due to orientation conflicts in the view.

XToolkitNoLicense - License check failure.

XToolkitNotDisplayed - Annotation is present on hidden or blank layer and so can't be shown.


Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Reference and Driven Dimensions, Annotations: Annotation Features and Annotations: Surface Finish Annotations, Drawings: Ordinate Dimensions
Parameters:
DrawingView
A drawing view where annotation will be shown.
CompPath
Component path for solid owner.
Returns:


Display

voidDisplay ()


     Displays annotation which is temporarily undisplayed by Annotation.Undisplay(). This method must be called after making changes in an annotation.

Exceptions thrown (but not limited to):

XToolkitInvalidMatrix - The annotation cannot be shown due to orientation conflicts in theview.

XToolkitNoLicense - License check failure.

XToolkitNotDisplayed - Annotation is present on hidden or blank layer and so can't be shown.


Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations
Returns:


DisplayInDrawing

voidDisplayInDrawing (Drawing DrawingModel, /*optional*/ View2D DrawingView, /*optional*/ ComponentPath CompPath)


     Displays annotation owned by solid and shown in drawing which is temporarily undisplayed by Annotation.Undisplay(). This method must be called after making changes in an annotation.

Exceptions thrown (but not limited to):

XToolkitInvalidMatrix - The annotation cannot be shown due to orientation conflicts in theview.

XToolkitNoLicense - License check failure.

XToolkitNotDisplayed - Annotation is present on hidden or blank layer and so can't be shown.


Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing 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:


Undisplay

voidUndisplay ()


     Undisplays annotation temporarily. This method must be called before making any changes in an annotation.

Exceptions thrown (but not limited to):

XToolkitNoLicense - License check failure.


Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations
Returns:


UndisplayInDrawing

voidUndisplayInDrawing (Drawing DrawingModel, /*optional*/ ComponentPath CompPath)


     Undisplays annotation owned by solid and shown in drawing temporarily. This method must be called before making any changes in an annotation.

Exceptions thrown (but not limited to):

XToolkitNoLicense - License check failure.


Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations
Parameters:
DrawingModel
Drawing view where annotation is shown.
CompPath
Component path of solid owner.
Returns:


IsShown

booleanIsShown ( /*optional*/ Drawing DrawingModel)


    Checks if annotation is shown in owner or specified drawing.

Exceptions thrown (but not limited to):

XToolkitNoLicense - License check failure.


Parameters:
DrawingModel
Drawing.
Returns:
 


Update

voidUpdate ( /*optional*/ Drawing 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:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations
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:


GetTextStyle

/*optional*/ AnnotationTextStyleGetTextStyle ()

LICENSE: 222

    Get textstyle information of annotation.

Exceptions thrown (but not limited to):

XToolkitNotFound - No shown version of annotation was found in the drawing

XToolkitAmbiguous - Multiple shown versions of the annotation were found with different text styles.


Manual References:
Annotations: Annotation Features and Annotations: Annotation Text Styles, Annotations: Annotation Features and Annotations: Annotation Text Styles
Returns:
TextStyle.


SetTextStyle

voidSetTextStyle (AnnotationTextStyle TextStyle)

LICENSE: 222

    Get textstyle information of annotation.

Exceptions thrown (but not limited to):

XToolkitNotFound - No shown version of annotation was found in the drawing


Manual References:
Annotations: Annotation Features and Annotations: Annotation Text Styles, Annotations: Annotation Features and Annotations: Annotation Text Styles
Parameters:
TextStyle
TextStyle
Returns:


GetTextStyleInDrawing

/*optional*/ AnnotationTextStyleGetTextStyleInDrawing (Drawing Drawing, /*optional*/ ComponentPath CompPath, /*optional*/ View2D View)

LICENSE: 222

    Get textstyle information of annotation in specified drawing.

Exceptions thrown (but not limited to):

XToolkitNotFound - No shown version of annotation was found in the drawing

XToolkitAmbiguous - Multiple shown versions of the annotation were found with different text styles.


Manual References:
Annotations: Annotation Features and Annotations: Annotation Text Styles, Annotations: Annotation Features and Annotations: Annotation Text Styles
Parameters:
Drawing
Drawing.
CompPath
Component path of owner solid.
View
Reserved for future expansion. Pass null.
Returns:
TextStyle


SetTextStyleInDrawing

voidSetTextStyleInDrawing (AnnotationTextStyle TextStyle, Drawing Drawing, /*optional*/ ComponentPath CompPath, /*optional*/ View2D View)

LICENSE: 222

    Set textstyle information of annotation in specified drawing.

Exceptions thrown (but not limited to):

XToolkitNotFound - No shown version of annotation was found in the drawing


Manual References:
Annotations: Annotation Features and Annotations: Annotation Text Styles, Annotations: Annotation Features and Annotations: Annotation Text Styles
Parameters:
TextStyle
TextStyle.
Drawing
Drawing.
CompPath
Component path of owner solid.
View
Reserved for future expansion. Pass null.
Returns:


UpdateAttachment

voidUpdateAttachment (Drawing Drawing)

LICENSE: 222

    Updates the attachment of the drawing annotation and makes it associative to the attachment of the annotation in the 3D model.

Exceptions thrown (but not limited to):

XToolkitNotFound - The annotation is not shown in the drawing.


Manual References:
Annotations: Annotation Features and Annotations: Annotation Associativity
Parameters:
Drawing
The drawing
Returns:


UpdatePosition

voidUpdatePosition (Drawing Drawing)

LICENSE: 222

    Updates the position of the drawing annotation and makes it associative to the position of the annotation in the 3D model.

Exceptions thrown (but not limited to):

XToolkitNotFound - The annotation is not shown in the drawing.


Manual References:
Annotations: Annotation Features and Annotations: Annotation Associativity, Annotations: Annotation Features and Annotations: Annotation Associativity
Parameters:
Drawing
The drawing
Returns:


IsAssociative

booleanIsAssociative (Drawing Drawing)

LICENSE: 222

     

Exceptions thrown (but not limited to):

XToolkitNotFound - The annotation is not shown in the drawing.


Manual References:
Annotations: Annotation Features and Annotations: Annotation Associativity, Annotations: Annotation Features and Annotations: Annotation Associativity
Parameters:
Drawing
 
Returns:
 


GetAttachmentAssociativity

AnnotationAttachmentAssociativityGetAttachmentAssociativity (Drawing Drawing)

LICENSE: 222

     

Exceptions thrown (but not limited to):

XToolkitNotFound - The annotation is not shown in the drawing.


Manual References:
Annotations: Annotation Features and Annotations: Annotation Associativity, Annotations: Annotation Features and Annotations: Annotation Associativity
Parameters:
Drawing
 
Returns:
 


GetAnnotationElement

/*optional*/ AnnotationElementGetAnnotationElement ()

LICENSE: 222

     

Exceptions thrown (but not limited to):

XToolkitNotFound - The annotation is not contained in any annotation element.

XToolkitNotExist - The annotation element owner of the annotation does not exist.


Manual References:
Annotations: Annotation Features and Annotations: Accessing and Modifying Annotation Elements, Annotations: Annotation Features and Annotations: Accessing and Modifying Annotation Elements
Returns:
 


IsInactive

booleanIsInactive ()

LICENSE: 222

     

Exceptions thrown (but not limited to):

XToolkitNoLicense - License check failure.


Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations
Returns:
 


Rotate

voidRotate (double Angle)

LICENSE: 222

     

Exceptions thrown (but not limited to):

XToolkitBadContext - The annotation does not support assigned rotation angles.

XToolkitCantWrite - Could not modify the given item because it has read-only access.


Manual References:
Annotations: Annotation Features and Annotations: Annotation Orientation, Annotations: Annotation Features and Annotations: Annotation Orientation
Parameters:
Angle
 
Returns:


ConvertLegacy

voidConvertLegacy ()


     Converts annotation created before Creo 4.0 or created using deprecated APIs ProGtolCreate or ProSetdatumtagCreate.

Exceptions thrown (but not limited to):

XToolkitNoChange - The annotation is not legacy.


Manual References:
Annotations: Annotation Features and Annotations: Converting Annotations to Latest Version
Returns:


NeedsConversion

booleanNeedsConversion ()


    Returns if the annotation is created before Creo 4.0 or is created using deprecated APIs ProGtolCreate or ProSetdatumtagCreate and needs conversion. Call Annotation.ConvertLegacy() only if this API returns true.
Manual References:
Annotations: Annotation Features and Annotations: Converting Annotations to Latest Version, Annotations: Annotation Features and Annotations: Converting Annotations to Latest Version
Returns:
TRUE if the annotation needs conversion FALSE if the annotation is already converted


GetSecurityMarking

booleanGetSecurityMarking ()


    Gets Security Marking option for Notes and Symbols
Manual References:
Annotations: Annotation Features and Annotations: Annotation Security
Returns:
If true then specified annotation is marked for security check


SetSecurityMarking

voidSetSecurityMarking (boolean Marking)


    Gets Security Marking option for Notes and Symbols
Manual References:
Annotations: Annotation Features and Annotations: Annotation Security, Annotations: Annotation Features and Annotations: Annotation Security
Parameters:
Marking
True if the annotation refers a cross-section geometry.
Returns:


IsUsingXSecReference

booleanIsUsingXSecReference ()


    Identifies if the annotation is created on or attached to a cross-sectional edge.
Manual References:
Annotations: Annotation Features and Annotations: Accessing Annotations, Annotations: Annotation Features and Annotations: Accessing Annotations
Returns:
True if the annotation refers a cross-section geometry.