poINote SetPositionToAttachment

Controls the leader length of the note.

Syntax

note_handle SetPositionToAttachmenttrue/false

Application

HyperView Tcl Modify

Description

If “true” is passed to this command, the lower left corner of the bounding box of the note will be positioned at the attachment point. The attachment location could be on the node, the element centroid, or the part centroid - depending upon the entity type to which the note is attached.

Example

hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetNoteHandle note_handle 2;
# Turn on "SetPositionToAttachment" option
note_handle SetPositionToAttachment true;
# Turn off "SetPositionToAttachment" option
note_handle SetPositionToAttachment false;
hwi CloseStack

Errors

This command returns (0) if successful, or a "non-zero value" if an error occurred.