User's Guide > Annotations: Annotation Features > Notes > Modifying 3D Note Attachments
Modifying 3D Note Attachments
The actual note created in Creo Parametric will not be modified by the access functions until the note attachment is assigned to the note using the modification function ProNotePlacementSet().
Functions Introduced:
ProNoteAttachAlloc()
ProNoteAttachFreeSet()
ProNoteAttachAddend()
ProNoteAttachLeaderAdd()
ProNoteAttachLeaderRemove()
ProNoteAttachOnitemSet()
ProNoteAttachPlaneSet()
ProNotePlacementSet()
The function ProNoteAttachAlloc() allocates a ProNoteAttach object for a note attachment.
To set the location of an attachment point, call the function ProNoteAttachFreeSet(). See the description of ProNoteAttachFreeGet() for an explanation of the coordinates used by this function.
The function ProNoteAttachAddend() adds a leader to the specified attachment. The leader points to a location on the parent model specified by an argument of type ProSelection.
The attachment types are specified in ProNoteAttachAttr. The possible values are as follows:
PRO_NOTE_ATT_NONE
PRO_NOTE_ATT_NORMAL
PRO_NOTE_ATT_TANGENT
Use the function ProNoteAttachLeaderAdd() to specify the type of arrowhead for the leader. This function supersedes the function ProNoteAttachAddend().
The function ProNoteAttachLeaderAdd() adds a leader to the specified attachment. The leader points to a location on the parent model specified by an argument of type ProSelection. The selection UV parameters determine the precise attachment point for the note leader. The attachment types are specified by the parameter attr and can have one of the following values:
PRO_NOTE_ATT_NORMAL—Specifies a normal attachment.
PRO_NOTE_ATT_TANGENT—Specifies a tangent attachment.
The function ProNoteAttachLeaderRemove() removes a leader from the note attachment data.
The function ProNoteAttachOnitemSet() sets the location of an "On Item" note placement. Using this function removes any leaders currently assigned to the note attachment.
The function ProNoteAttachPlaneSet() sets the annotation plane of the notes. The annotation plane of a note in an annotation element may not be removed.
The function ProNotePlacementSet() assigns the a ProNoteAttach structure for the given note, thus defining or redefining the placement for the note.
Note:
 
If modifying an existing note, the functions ProNoteAttach*Set() do not modify the note until the note attachment is reassigned to the note using the modification function ProNotePlacementSet().
这对您有帮助吗?