Library | Package Java Toolkit

Interface DetailNoteItem

package com.ptc.pfc.pfcDetail;

public interface DetailNoteItem
  extends com.ptc.pfc.pfcDetail.DetailItem



Description

This interface represents a detail note item in a Creo Parametric model.
See Also:
DetailItemOwner.GetDetailItem(DetailType, int), DetailItemOwner.ListDetailItems(/*optional*/ DetailType, /*optional*/ Integer), DetailItemOwner.CreateDetailItem(DetailCreateInstructions), DetailSymbolDefItem.GetDetailItem(DetailType, int), DetailSymbolDefItem.ListDetailItems(/*optional*/ DetailType), DetailSymbolDefItem.CreateDetailItem(DetailCreateInstructions)
Direct Known Subclasses:
WDetailNoteItem



Method Summary
voidDraw ()
    Draws a detail note item. Drawn notes will be removed upon the next regeneration.
voidErase ()
    Erases a detail note item. Erased notes will be shown again after the next regeneration.
DetailAttachmentGetAttachment ()
    Gets attachment information of note.
/*optional*/ DoubleGetElbowLength ()
    Gets length of note leader elbow.
DetailNoteInstructionsGetInstructions (boolean GiveParametersAsNames)
    Returns a data object describing how a detail note item is constructed.
Envelope2DGetLineEnvelope (int LineNumber)
    Returns the envelope of a line in the note, in screen coordinates.
ModelGetModelReference (int LineNumber, int Index)
    Returns the model referenced by parameterized text in a note.
/*optional*/ AnnotationTextStyleGetNoteTextStyle ()
    Gets textstyle of note.
/*optional*/ ModelItemGetOwner ()
     
/*optional*/ DetailSymbolDefItemGetSymbolDef ()
    Get method for attribute "SymbolDef"
    The symbol definition that the note belongs to, or null if the note does not belong to a symbol definition.
DetailTextLinesGetTextLines (DetailTextDisplayOption TxtDisplayOption)
     
/*optional*/ StringGetURL ()
    Get URL as part of note text. Availble only for 3D notes
booleanIsDisplayed ()
    Checks if note data is displayed. This is useful for notes whose owner is not displayed in session
booleanIsReadOnly ()
    Checks if note is read-only.
voidKeepArrowTypeAsIs (boolean ArrowType)
     
voidModify (DetailNoteInstructions Instructions)
    Modifies the definition of an existing detail note item.
voidRemove ()
    Removes a detail note item. Removed notes will continue to be removed after the next regeneration.
voidSetDisplayed (boolean Display)
    Sets note data displayed. This is useful for notes whose owner is not displayed in session.
voidSetElbow ( /*optional*/ Double Length, /*optional*/ Vector3D Direction)
    Set elbow to leader note.
voidSetFreeAttachment (FreeAttachment Attachment)
    Sets free attachment information of note.
voidSetLeaders (LeaderAttachments LeaderAttachs)
    Sets leader attachment information of note.
voidSetNoteTextStyle (AnnotationTextStyle TextStyle)
    Sets textstyle of note.
voidSetOffsetAttachment (OffsetAttachment Attachment)
    Sets offset attachment information of note.
voidSetOnItemAttachment (ParametricAttachment Attachment)
    Sets on item attachment information of note.
voidSetReadOnly (boolean ReadOnly)
    Sets note read-only.
voidSetTextLines (DetailTextLines TextLines)
     
voidSetURL (String URLText)
    Set URL as part of note text. Availble only for 3D notes
voidShow ()
    Shows a note. Shown notes will continue to be shown after the next regeneration.

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

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

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

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

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

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

Methods Inherited from Interface com.ptc.pfc.pfcDetail.DetailItem
GetDetailType, Delete

Method Detail

GetSymbolDef

/*optional*/ DetailSymbolDefItemGetSymbolDef ()


    The symbol definition that the note belongs to, or null if the note does not belong to a symbol definition.
Manual References:
Drawings: Detail Notes Information, Drawings: Detail Notes Information



Draw

voidDraw ()


    Draws a detail note item. Drawn notes will be removed upon the next regeneration.

The drawing must be current to use this method.
Manual References:
Drawings: Details Notes Operations, Drawings: Details Notes Operations
Returns:


Show

voidShow ()


    Shows a note. Shown notes will continue to be shown after the next regeneration.

The drawing must be current to use this method. To show a note that is in a non-current model, use the DetailNoteInstructions attribute IsDisplayed, and regenerate the drawing.
Manual References:
Drawings: Details Notes Operations, Drawings: Details Notes Operations
Returns:


Erase

voidErase ()


    Erases a detail note item. Erased notes will be shown again after the next regeneration.

The drawing must be current to use this method.
Manual References:
Drawings: Details Notes Operations, Drawings: Details Notes Operations
Returns:


Remove

voidRemove ()


    Removes a detail note item. Removed notes will continue to be removed after the next regeneration.

The drawing must be current to use this method. To remove a note that is in a non-current model, use the DetailNoteInstructions attribute IsDisplayed, and regenerate the drawing.
Manual References:
Drawings: Details Notes Operations, Drawings: Details Notes Operations
Returns:


GetInstructions

DetailNoteInstructionsGetInstructions (boolean GiveParametersAsNames)


    Returns a data object describing how a detail note item is constructed.
Manual References:
Drawings: Detail Notes Information, Drawings: Detail Notes Information
Parameters:
GiveParametersAsNames
true to get symbolic representations of parameter entries in the text, false to get the actual text shown to the user. Creo Parametric does not resolve and replace symbolic callouts for notes, which are not displayed. Therefore, if the note is not displayed or is hidden in a layer, the text retrieved may contain symbolic callouts, even when GiveParametersAsNames is false.
Returns:
The instuctions data object.


Modify

voidModify (DetailNoteInstructions Instructions)


    Modifies the definition of an existing detail note item.
Manual References:
Drawings: Instructions, Drawings: Details Notes Operations
Parameters:
Instructions
The instructions object describing the new detail note item.
Returns:


GetTextLines

DetailTextLinesGetTextLines (DetailTextDisplayOption TxtDisplayOption)


     

Exceptions thrown (but not limited to):

XToolkitOutOfMemory - Not enough memory.

XToolkitNotFound - No text lines were found.


Parameters:
TxtDisplayOption
 
Returns:
 


SetTextLines

voidSetTextLines (DetailTextLines TextLines)


     

Exceptions thrown (but not limited to):

XToolkitBadContext - The note text cannot be varied.

XToolkitOutOfMemory - Not enough memory.


Parameters:
TextLines
 
Returns:


SetDisplayed

voidSetDisplayed (boolean Display)


    Sets note data displayed. This is useful for notes whose owner is not displayed in session.
Parameters:
Display
 
Returns:


IsDisplayed

booleanIsDisplayed ()


    Checks if note data is displayed. This is useful for notes whose owner is not displayed in session
Returns:
xtrue for notes marked as displayed.


IsReadOnly

booleanIsReadOnly ()


    Checks if note is read-only.
Returns:
xtrue if read only.


SetReadOnly

voidSetReadOnly (boolean ReadOnly)


    Sets note read-only.
Parameters:
ReadOnly
 
Returns:


GetAttachment

DetailAttachmentGetAttachment ()


    Gets attachment information of note.

Exceptions thrown (but not limited to):

XToolkitOutOfMemory - Not enough memory.

XToolkitNotFound - No leaders were found.


Returns:
 


SetFreeAttachment

voidSetFreeAttachment (FreeAttachment Attachment)


    Sets free attachment information of note.
Parameters:
Attachment
free attachment
Returns:


SetOffsetAttachment

voidSetOffsetAttachment (OffsetAttachment Attachment)


    Sets offset attachment information of note.
Parameters:
Attachment
offset attachment
Returns:


SetOnItemAttachment

voidSetOnItemAttachment (ParametricAttachment Attachment)


    Sets on item attachment information of note.
Parameters:
Attachment
on item attachment
Returns:


SetLeaders

voidSetLeaders (LeaderAttachments LeaderAttachs)


    Sets leader attachment information of note.

Exceptions thrown (but not limited to):

XToolkitOutOfMemory - Not enough memory.


Parameters:
LeaderAttachs
leaders
Returns:


SetElbow

voidSetElbow ( /*optional*/ Double Length, /*optional*/ Vector3D Direction)


    Set elbow to leader note.
Parameters:
Length
length of leader elbow.
Direction
direction of leader elbow.
Returns:


GetElbowLength

/*optional*/ DoubleGetElbowLength ()


    Gets length of note leader elbow.
Returns:
length.


GetNoteTextStyle

/*optional*/ AnnotationTextStyleGetNoteTextStyle ()


    Gets textstyle of note.
Manual References:
Drawings: Detail Note Data, Drawings: Detail Note Data
Returns:
Textstyle.


SetNoteTextStyle

voidSetNoteTextStyle (AnnotationTextStyle TextStyle)


    Sets textstyle of note.
Manual References:
Drawings: Detail Note Data
Parameters:
TextStyle
Textstyle.
Returns:


GetLineEnvelope

Envelope2DGetLineEnvelope (int LineNumber)


    Returns the envelope of a line in the note, in screen coordinates.

Exceptions thrown (but not limited to):

XToolkitEmpty - The note is a blank string.


Manual References:
Drawings: Detail Notes Information, Drawings: Detail Notes Information
Parameters:
LineNumber
The line number to evaluate.
Returns:
The envelope, in screen coordinates. The order of coordinates are returned as:
0 -------- 1
| |
2 -------- 3
This ordering of points is preserved even if the note is mirrored and/or at an angle.


GetModelReference

ModelGetModelReference (int LineNumber, int Index)


    Returns the model referenced by parameterized text in a note.
Manual References:
Drawings: Detail Notes Information
Parameters:
LineNumber
The line number where the parameterized text occurs.
Index
The index in the line for the parameterized text.
Returns:
The model referenced by the parameterized text.


SetURL

voidSetURL (String URLText)


    Set URL as part of note text. Availble only for 3D notes

Exceptions thrown (but not limited to):

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


Parameters:
URLText
URL.
Returns:


GetURL

/*optional*/ StringGetURL ()


    Get URL as part of note text. Availble only for 3D notes
Returns:
URL.


GetOwner

/*optional*/ ModelItemGetOwner ()


     
Returns:
 


KeepArrowTypeAsIs

voidKeepArrowTypeAsIs (boolean ArrowType)


     
Manual References:
Drawings: Details Notes Operations, Drawings: Details Notes Operations
Parameters:
ArrowType
Returns: