Library | Module

Class pfcDetailNoteItem



Description

This interface represents a detail note item in a Creo Parametric model.
See Also:
pfcDetailItemOwner.GetDetailItem(), pfcDetailItemOwner.ListDetailItems(), pfcDetailItemOwner.CreateDetailItem(), pfcDetailSymbolDefItem.GetDetailItem(), pfcDetailSymbolDefItem.ListDetailItems(), pfcDetailSymbolDefItem.CreateDetailItem()
Direct Parent Classes:
pfcDetailItem



Property Summary

/* readonly */  /* optional */ pfcDetailSymbolDefItemSymbolDef
The symbol definition that the note belongs to, or null if the note does not belong to a symbol definition.



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.
pfcDetailAttachmentGetAttachment ()
Gets attachment information of note.
/* optional */ numberGetElbowLength ()
Gets length of note leader elbow.
pfcDetailNoteInstructionsGetInstructions (boolean GiveParametersAsNames)
Returns a data object describing how a detail note item is constructed.
pfcEnvelope2DGetLineEnvelope (number LineNumber)
Returns the envelope of a line in the note, in screen coordinates.
pfcModelGetModelReference (number LineNumber, number Index)
Returns the model referenced by parameterized text in a note.
/* optional */ pfcAnnotationTextStyleGetNoteTextStyle ()
Gets textstyle of note.
/* optional */ pfcModelItemGetOwner ()
 
pfcDetailTextLinesGetTextLines (pfcDetailTextDisplayOption 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 (pfcDetailNoteInstructions 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 */ number Length, /* optional */ pfcVector3D Direction)
Set elbow to leader note.
voidSetFreeAttachment (pfcFreeAttachment Attachment)
Sets free attachment information of note.
voidSetLeaders (pfcLeaderAttachments LeaderAttachs)
Sets leader attachment information of note.
voidSetNoteTextStyle (pfcAnnotationTextStyle TextStyle)
Sets textstyle of note.
voidSetOffsetAttachment (pfcOffsetAttachment Attachment)
Sets offset attachment information of note.
voidSetOnItemAttachment (pfcParametricAttachment Attachment)
Sets on item attachment information of note.
voidSetReadOnly (boolean ReadOnly)
Sets note read-only.
voidSetTextLines (pfcDetailTextLines 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.



Property Detail


/* readonly */  /* optional */ pfcDetailSymbolDefItemSymbolDef

The symbol definition that the note belongs to, or null if the note does not belong to a symbol definition.





Method Detail


voidDraw ()

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

The drawing must be current to use this method.



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.



pfcDetailAttachmentGetAttachment ()

Gets attachment information of note.

Exceptions thrown (but not limited to):

pfcXToolkitOutOfMemory - Not enough memory.

pfcXToolkitNotFound - No leaders were found.


Returns:
 



/* optional */ numberGetElbowLength ()

Gets length of note leader elbow.
Returns:
length.



pfcDetailNoteInstructionsGetInstructions (boolean GiveParametersAsNames)

Returns a data object describing how a detail note item is constructed.
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.



pfcEnvelope2DGetLineEnvelope (number LineNumber)

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

Exceptions thrown (but not limited to):

pfcXToolkitEmpty - The note is a blank string.


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.



pfcModelGetModelReference (number LineNumber, number Index)

Returns the model referenced by parameterized text in a note.
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.



/* optional */ pfcAnnotationTextStyleGetNoteTextStyle ()

Gets textstyle of note.
Returns:
Textstyle.



/* optional */ pfcModelItemGetOwner ()

 
Returns:
 



pfcDetailTextLinesGetTextLines (pfcDetailTextDisplayOption TxtDisplayOption)

 

Exceptions thrown (but not limited to):

pfcXToolkitOutOfMemory - Not enough memory.

pfcXToolkitNotFound - No text lines were found.


Parameters:
TxtDisplayOption
 
Returns:
 



/* optional */ stringGetURL ()

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



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.



booleanIsReadOnly ()

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



voidKeepArrowTypeAsIs (boolean ArrowType)

 
Parameters:
ArrowType



voidModify (pfcDetailNoteInstructions Instructions)

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



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 pfcDetailNoteInstructions attribute IsDisplayed, and regenerate the drawing.



voidSetDisplayed (boolean Display)

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



voidSetElbow ( /* optional */ number Length, /* optional */ pfcVector3D Direction)

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



voidSetFreeAttachment (pfcFreeAttachment Attachment)

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



voidSetLeaders (pfcLeaderAttachments LeaderAttachs)

Sets leader attachment information of note.

Exceptions thrown (but not limited to):

pfcXToolkitOutOfMemory - Not enough memory.


Parameters:
LeaderAttachs
leaders



voidSetNoteTextStyle (pfcAnnotationTextStyle TextStyle)

Sets textstyle of note.
Parameters:
TextStyle
Textstyle.



voidSetOffsetAttachment (pfcOffsetAttachment Attachment)

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



voidSetOnItemAttachment (pfcParametricAttachment Attachment)

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



voidSetReadOnly (boolean ReadOnly)

Sets note read-only.
Parameters:
ReadOnly
 



voidSetTextLines (pfcDetailTextLines TextLines)

 

Exceptions thrown (but not limited to):

pfcXToolkitBadContext - The note text cannot be varied.

pfcXToolkitOutOfMemory - Not enough memory.


Parameters:
TextLines
 



voidSetURL (string URLText)

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

Exceptions thrown (but not limited to):

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


Parameters:
URLText
URL.



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 pfcDetailNoteInstructions attribute IsDisplayed, and regenerate the drawing.