Library | File

Class pfcDetailNoteItem

# include <pfcDetail.h>

class pfcDetailNoteItem
 : public virtual pfcDetailItem
{
    xaideclare(pfcDetailNoteItem)
    ...
};



Description

This interface represents a detail note item in a Creo Parametric model.
See Also:
pfcDetailItemOwner::GetDetailItem(pfcDetailType, xint), pfcDetailItemOwner::ListDetailItems(optional pfcDetailType, optional xint), pfcDetailItemOwner::CreateDetailItem(pfcDetailCreateInstructions_ptr), pfcDetailSymbolDefItem::GetDetailItem(pfcDetailType, xint), pfcDetailSymbolDefItem::ListDetailItems(optional pfcDetailType), pfcDetailSymbolDefItem::CreateDetailItem(pfcDetailCreateInstructions_ptr)
Manual References:
Drawings: Symbol Instance Data, Overview of Creo Object TOOLKIT C++: Casting of Creo Object TOOLKIT C++ pfc Classes to wfc Classes
Direct Known Subclasses:
wfcWDetailNoteItem



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.
pfcDetailAttachment_ptrGetAttachment ()
Gets attachment information of note.
optional xrealGetElbowLength ()
Gets length of note leader elbow.
pfcDetailNoteInstructions_ptrGetInstructions (xbool GiveParametersAsNames)
Returns a data object describing how a detail note item is constructed.
pfcEnvelope2D_ptrGetLineEnvelope (xint LineNumber)
Returns the envelope of a line in the note, in screen coordinates.
pfcModel_ptrGetModelReference (xint LineNumber, xint Index)
Returns the model referenced by parameterized text in a note.
optional pfcAnnotationTextStyle_ptrGetNoteTextStyle ()
Gets textstyle of note.
optional pfcModelItem_ptrGetOwner ()
 
optional pfcDetailSymbolDefItem_ptrGetSymbolDef ()
The symbol definition that the note belongs to, or null if the note does not belong to a symbol definition.
pfcDetailTextLines_ptrGetTextLines (pfcDetailTextDisplayOption TxtDisplayOption)
 
optional xstringGetURL ()
Get URL as part of note text. Availble only for 3D notes
xboolIsDisplayed ()
Checks if note data is displayed. This is useful for notes whose owner is not displayed in session
xboolIsReadOnly ()
Checks if note is read-only.
voidKeepArrowTypeAsIs (xbool ArrowType)
Use this method to keep arrow type of leader note as it is after note modify. This should be called before pfcDetailNoteItem::Modify(pfcDetailNoteInstructions_ptr).
voidModify (pfcDetailNoteInstructions_ptr 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 (xbool Display)
Sets note data displayed. This is useful for notes whose owner is not displayed in session.
voidSetElbow (optional xreal Length, optional pfcVector3D_ptr Direction)
Set elbow to leader note.
voidSetFreeAttachment (pfcFreeAttachment_ptr Attachment)
Sets free attachment information of note.
voidSetLeaders (pfcLeaderAttachments_ptr LeaderAttachs)
Sets leader attachment information of note.
voidSetNoteTextStyle (pfcAnnotationTextStyle_ptr TextStyle)
Sets textstyle of note.
voidSetOffsetAttachment (pfcOffsetAttachment_ptr Attachment)
Sets offset attachment information of note.
voidSetOnItemAttachment (pfcParametricAttachment_ptr Attachment)
Sets on item attachment information of note.
voidSetReadOnly (xbool ReadOnly)
Sets note read-only.
voidSetTextLines (pfcDetailTextLines_ptr TextLines)
 
voidSetURL (xrstring 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 Class pfcChild:

GetDBParent, GetOId


Methods Inherited from Class pfcActionSource:

AddActionListener, RemoveActionListener


Methods Inherited from Class pfcRelationOwner:

DeleteRelations, GetRelations, SetRelations, RegenerateRelations, EvaluateExpression


Methods Inherited from Class pfcParent:

GetChild


Methods Inherited from Class pfcParameterOwner:

GetParam, CreateParam, ListParams, SelectParam, CreateParamWithUnits, SelectParameters


Methods Inherited from Class pfcModelItem:

GetName, SetName, GetId, GetType


Methods Inherited from Class pfcDetailItem:

GetDetailType, Delete



Method Detail

optional pfcDetailSymbolDefItem_ptrGetSymbolDef ()

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




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:



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.
Manual References:
Drawings: Details Notes Operations, Drawings: Details Notes Operations
Returns:



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:



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.
Manual References:
Drawings: Details Notes Operations, Drawings: Details Notes Operations
Returns:



pfcDetailNoteInstructions_ptrGetInstructions (xbool 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.



voidModify (pfcDetailNoteInstructions_ptr 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:



pfcDetailTextLines_ptrGetTextLines (pfcDetailTextDisplayOption TxtDisplayOption)

 
Parameters:
TxtDisplayOption
 
Returns:
 



voidSetTextLines (pfcDetailTextLines_ptr TextLines)

 
Parameters:
TextLines
 
Returns:



voidSetDisplayed (xbool Display)

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



xboolIsDisplayed ()

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.



xboolIsReadOnly ()

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



voidSetReadOnly (xbool ReadOnly)

Sets note read-only.
Parameters:
ReadOnly
 
Returns:



pfcDetailAttachment_ptrGetAttachment ()

Gets attachment information of note.
Returns:
 



voidSetFreeAttachment (pfcFreeAttachment_ptr Attachment)

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



voidSetOffsetAttachment (pfcOffsetAttachment_ptr Attachment)

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



voidSetOnItemAttachment (pfcParametricAttachment_ptr Attachment)

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



voidSetLeaders (pfcLeaderAttachments_ptr LeaderAttachs)

Sets leader attachment information of note.
Parameters:
LeaderAttachs
leaders
Returns:



voidSetElbow (optional xreal Length, optional pfcVector3D_ptr Direction)

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



optional xrealGetElbowLength ()

Gets length of note leader elbow.
Returns:
length.



optional pfcAnnotationTextStyle_ptrGetNoteTextStyle ()

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



voidSetNoteTextStyle (pfcAnnotationTextStyle_ptr TextStyle)

Sets textstyle of note.
Manual References:
Drawings: Detail Note Data, Technical Summary of Changes for Creo 4.0 F000: Detail Items
Parameters:
TextStyle
Textstyle.
Returns:



pfcEnvelope2D_ptrGetLineEnvelope (xint 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.


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.



pfcModel_ptrGetModelReference (xint LineNumber, xint 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.



voidSetURL (xrstring URLText)

Set URL as part of note text. Availble only for 3D notes
Parameters:
URLText
URL.
Returns:



optional xstringGetURL ()

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



optional pfcModelItem_ptrGetOwner ()

 
Returns:
 



voidKeepArrowTypeAsIs (xbool ArrowType)

Use this method to keep arrow type of leader note as it is after note modify. This should be called before pfcDetailNoteItem::Modify(pfcDetailNoteInstructions_ptr).
Manual References:
Technical Summary of Changes for Creo 4.0 M070: Drawings, Drawings: Details Notes Operations, Drawings: Details Notes Operations
Parameters:
ArrowType
Set true to keep arrow type as is. Default value is false.
Returns: