API Documentation > Interfaces > Interface DetailNoteItem
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:
Direct Known Subclasses:
Methods Inherited from Interface com.ptc.pfc.pfcObject.Child :
Methods Inherited from Interface com.ptc.pfc.pfcBase.ActionSource :
Methods Inherited from Interface com.ptc.pfc.pfcModelItem.RelationOwner :
Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent :
Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ParameterOwner :
Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ModelItem :
Methods Inherited from Interface com.ptc.pfc.pfcDetail.DetailItem :
Method Summary
void
Draw ()
Draws a detail note item. Drawn notes will be removed upon the next regeneration.
void
Erases a detail note item. Erased notes will be shown again after the next regeneration.
Gets attachment information of note.
/*optional*/ Double
Gets length of note leader elbow.
GetInstructions (boolean GiveParametersAsNames)
Returns a data object describing how a detail note item is constructed.
GetLineEnvelope (int LineNumber)
Returns the envelope of a line in the note, in screen coordinates.
GetModelReference (int LineNumber, int Index)
Returns the model referenced by parameterized text in a note.
/*optional*/ AnnotationTextStyle
Gets textstyle of note.
/*optional*/ ModelItem
/*optional*/ DetailSymbolDefItem
Get method for attribute "SymbolDef"
The symbol definition that the note belongs to, ornull if the note does not belong to a symbol definition.
/*optional*/ String
Get URL as part of note text. Availble only for 3D notes
boolean
Checks if note data is displayed. This is useful for notes whose owner is not displayed in session
boolean
Checks if note is read-only.
void
KeepArrowTypeAsIs (boolean ArrowType)
void
Modifies the definition of an existing detail note item.
void
Removes a detail note item. Removed notes will continue to be removed after the next regeneration.
void
SetDisplayed (boolean Display)
Sets note data displayed. This is useful for notes whose owner is not displayed in session.
void
SetElbow ( /*optional*/ Double Length, /*optional*/ Vector3D Direction)
Set elbow to leader note.
void
Sets free attachment information of note.
void
Sets leader attachment information of note.
void
Sets textstyle of note.
void
Sets offset attachment information of note.
void
Sets on item attachment information of note.
void
SetReadOnly (boolean ReadOnly)
Sets note read-only.
void
void
SetURL (String URLText)
Set URL as part of note text. Availble only for 3D notes
void
Show ()
Shows a note. Shown notes will continue to be shown after the next regeneration.
Method Detail
GetSymbolDef
/*optional*/ DetailSymbolDefItem
GetSymbolDef
()
The symbol definition that the note belongs to, or null if the note does not belong to a symbol definition.
User Guide References:
Draw
void
Draw
()
Draws a detail note item. Drawn notes will be removed upon the next regeneration.
The drawing must be current to use this method.
User Guide References:
Returns:
Show
void
Show
()
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.
User Guide References:
Returns:
Erase
void
Erase
()
Erases a detail note item. Erased notes will be shown again after the next regeneration.
The drawing must be current to use this method.
User Guide References:
Returns:
Remove
void
Remove
()
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.
User Guide References:
Returns:
GetInstructions
GetInstructions
(boolean GiveParametersAsNames)
Returns a data object describing how a detail note item is constructed.
User Guide References:
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
void
Modify
(DetailNoteInstructions Instructions)
Modifies the definition of an existing detail note item.
User Guide References:
Parameters:
Instructions
The instructions object describing the new detail note item.
Returns:
GetTextLines
GetTextLines
(DetailTextDisplayOption TxtDisplayOption)
Exceptions thrown (but not limited to):
XToolkitOutOfMemory - Not enough memory.
XToolkitNotFound - No text lines were found.
Parameters:
TxtDisplayOption
Returns:
SetTextLines
void
SetTextLines
(DetailTextLines TextLines)
Exceptions thrown (but not limited to):
XToolkitBadContext - The note text cannot be varied.
XToolkitOutOfMemory - Not enough memory.
Parameters:
TextLines
Returns:
SetDisplayed
void
SetDisplayed
(boolean Display)
Sets note data displayed. This is useful for notes whose owner is not displayed in session.
Parameters:
Display
Returns:
IsDisplayed
boolean
IsDisplayed
()
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
boolean
IsReadOnly
()
Checks if note is read-only.
Returns:
xtrue if read only.
SetReadOnly
void
SetReadOnly
(boolean ReadOnly)
Sets note read-only.
Parameters:
ReadOnly
Returns:
GetAttachment
GetAttachment
()
Gets attachment information of note.
Exceptions thrown (but not limited to):
XToolkitOutOfMemory - Not enough memory.
XToolkitNotFound - No leaders were found.
Returns:
SetFreeAttachment
void
SetFreeAttachment
(FreeAttachment Attachment)
Sets free attachment information of note.
Parameters:
Attachment
free attachment
Returns:
SetOffsetAttachment
void
SetOffsetAttachment
(OffsetAttachment Attachment)
Sets offset attachment information of note.
Parameters:
Attachment
offset attachment
Returns:
SetOnItemAttachment
void
SetOnItemAttachment
(ParametricAttachment Attachment)
Sets on item attachment information of note.
Parameters:
Attachment
on item attachment
Returns:
SetLeaders
void
SetLeaders
(LeaderAttachments LeaderAttachs)
Sets leader attachment information of note.
Exceptions thrown (but not limited to):
XToolkitOutOfMemory - Not enough memory.
Parameters:
LeaderAttachs
leaders
Returns:
SetElbow
void
SetElbow
( /*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*/ Double
GetElbowLength
()
Gets length of note leader elbow.
Returns:
length.
GetNoteTextStyle
/*optional*/ AnnotationTextStyle
GetNoteTextStyle
()
Gets textstyle of note.
User Guide References:
Returns:
Textstyle.
SetNoteTextStyle
void
SetNoteTextStyle
(AnnotationTextStyle TextStyle)
Sets textstyle of note.
User Guide References:
Parameters:
TextStyle
Textstyle.
Returns:
GetLineEnvelope
GetLineEnvelope
(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.
User Guide References:
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
GetModelReference
(int LineNumber, int Index)
Returns the model referenced by parameterized text in a note.
User Guide References:
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
void
SetURL
(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*/ String
GetURL
()
Get URL as part of note text. Availble only for 3D notes
Returns:
URL.
GetOwner
/*optional*/ ModelItem
GetOwner
()
Returns:
KeepArrowTypeAsIs
void
KeepArrowTypeAsIs
(boolean ArrowType)
User Guide References:
Parameters:
ArrowType
Returns:
Was this helpful?