Library | Module

Interface IpfcDetailNoteItem



Description

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



Property Summary

PropertySymbolDefas IpfcDetailSymbolDefItem [readonly, optional]
The symbol definition that the note belongs to, or null if the note does not belong to a symbol definition.



Method Summary

SubDraw ()
Draws a detail note item. Drawn notes will be removed upon the next regeneration.
SubErase ()
Erases a detail note item. Erased notes will be shown again after the next regeneration.
FunctionGetAttachment () as IpfcDetailAttachment
Gets attachment information of note.
FunctionGetElbowLength () as Double [optional]
Gets length of note leader elbow.
FunctionGetInstructions (GiveParametersAsNames as Boolean) as IpfcDetailNoteInstructions
Returns a data object describing how a detail note item is constructed.
FunctionGetLineEnvelope (LineNumber as Long) as IpfcEnvelope2D
Returns the envelope of a line in the note, in screen coordinates.
FunctionGetModelReference (LineNumber as Long, Index as Long) as IpfcModel
Returns the model referenced by parameterized text in a note.
FunctionGetNoteTextStyle () as IpfcAnnotationTextStyle [optional]
Gets textstyle of note.
FunctionGetOwner () as IpfcModelItem [optional]
 
FunctionGetTextLines (TxtDisplayOption as IpfcDetailTextDisplayOption) as IpfcDetailTextLines
 
FunctionGetURL () as String [optional]
Get URL as part of note text. Availble only for 3D notes
FunctionIsDisplayed () as Boolean
Checks if note data is displayed. This is useful for notes whose owner is not displayed in session
FunctionIsReadOnly () as Boolean
Checks if note is read-only.
SubKeepArrowTypeAsIs (ArrowType as Boolean)
 
SubModify (Instructions as IpfcDetailNoteInstructions)
Modifies the definition of an existing detail note item.
SubRemove ()
Removes a detail note item. Removed notes will continue to be removed after the next regeneration.
SubSetDisplayed (Display as Boolean)
Sets note data displayed. This is useful for notes whose owner is not displayed in session.
SubSetElbow (Length as Double [optional], Direction as IpfcVector3D [optional])
Set elbow to leader note.
SubSetFreeAttachment (Attachment as IpfcFreeAttachment)
Sets free attachment information of note.
SubSetLeaders (LeaderAttachs as IpfcLeaderAttachments)
Sets leader attachment information of note.
SubSetNoteTextStyle (TextStyle as IpfcAnnotationTextStyle)
Sets textstyle of note.
SubSetOffsetAttachment (Attachment as IpfcOffsetAttachment)
Sets offset attachment information of note.
SubSetOnItemAttachment (Attachment as IpfcParametricAttachment)
Sets on item attachment information of note.
SubSetReadOnly (ReadOnly as Boolean)
Sets note read-only.
SubSetTextLines (TextLines as IpfcDetailTextLines)
 
SubSetURL (URLText as String)
Set URL as part of note text. Availble only for 3D notes
SubShow ()
Shows a note. Shown notes will continue to be shown after the next regeneration.



Property Detail


PropertySymbolDefas IpfcDetailSymbolDefItem [readonly, optional]

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





Method Detail


SubDraw ()

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

The drawing must be current to use this method.



SubErase ()

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

The drawing must be current to use this method.



FunctionGetAttachment () as IpfcDetailAttachment

Gets attachment information of note.

Exceptions thrown (but not limited to):

IpfcXToolkitOutOfMemory - Not enough memory.

IpfcXToolkitNotFound - No leaders were found.


Returns:
 



FunctionGetElbowLength () as Double [optional]

Gets length of note leader elbow.
Returns:
length.



FunctionGetInstructions (GiveParametersAsNames as Boolean) as IpfcDetailNoteInstructions

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.



FunctionGetLineEnvelope (LineNumber as Long) as IpfcEnvelope2D

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

Exceptions thrown (but not limited to):

IpfcXToolkitEmpty - 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.



FunctionGetModelReference (LineNumber as Long, Index as Long) as IpfcModel

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.



FunctionGetNoteTextStyle () as IpfcAnnotationTextStyle [optional]

Gets textstyle of note.
Returns:
Textstyle.



FunctionGetOwner () as IpfcModelItem [optional]

 
Returns:
 



FunctionGetTextLines (TxtDisplayOption as IpfcDetailTextDisplayOption) as IpfcDetailTextLines

 

Exceptions thrown (but not limited to):

IpfcXToolkitOutOfMemory - Not enough memory.

IpfcXToolkitNotFound - No text lines were found.


Parameters:
TxtDisplayOption
 
Returns:
 



FunctionGetURL () as String [optional]

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



FunctionIsDisplayed () as Boolean

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.



FunctionIsReadOnly () as Boolean

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



SubKeepArrowTypeAsIs (ArrowType as Boolean)

 
Parameters:
ArrowType



SubModify (Instructions as IpfcDetailNoteInstructions)

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



SubRemove ()

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



SubSetDisplayed (Display as Boolean)

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



SubSetElbow (Length as Double [optional], Direction as IpfcVector3D [optional])

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



SubSetFreeAttachment (Attachment as IpfcFreeAttachment)

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



SubSetLeaders (LeaderAttachs as IpfcLeaderAttachments)

Sets leader attachment information of note.

Exceptions thrown (but not limited to):

IpfcXToolkitOutOfMemory - Not enough memory.


Parameters:
LeaderAttachs
leaders



SubSetNoteTextStyle (TextStyle as IpfcAnnotationTextStyle)

Sets textstyle of note.
Parameters:
TextStyle
Textstyle.



SubSetOffsetAttachment (Attachment as IpfcOffsetAttachment)

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



SubSetOnItemAttachment (Attachment as IpfcParametricAttachment)

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



SubSetReadOnly (ReadOnly as Boolean)

Sets note read-only.
Parameters:
ReadOnly
 



SubSetTextLines (TextLines as IpfcDetailTextLines)

 

Exceptions thrown (but not limited to):

IpfcXToolkitBadContext - The note text cannot be varied.

IpfcXToolkitOutOfMemory - Not enough memory.


Parameters:
TextLines
 



SubSetURL (URLText as String)

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

Exceptions thrown (but not limited to):

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


Parameters:
URLText
URL.



SubShow ()

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