Note is not displaying on HV window
Hi Support Team,
I have developed script to create Note for element ID and contour value. I have drawn with Clinet handle, but note is not appearing on the Hyperview window. Once I click create new note manually in Note Tab it will show but through script note is not apperaing. Can please look into this issue. I have attached script for your reference.
set t [::post::GetT];
set note_id [elAvg$Wn AddNote]
set n_handle [elAvg$Wn GetNoteHandle noteH$Wn $note_id]
noteH$Wn SetAttachment "element $model_id $maxElemID"
noteH$Wn SetPositionToAttachment true
noteH$Wn SetPosition right
noteH$Wn SetPosition top
noteH$Wn SetPosition 1 1
noteH$Wn SetBorderThickness 1
noteH$Wn SetLabel "Max Contour value"
#noteH$Wn SetText "NodeID {entity.id} \nContour_Value {entity.contour_val}"
noteH$Wn SetText "Element ID $maxElemID \n Contour Value $ElemVal";
#elAvg$Wn Draw
noteH$Wn SetAlignment "left"
noteH$Wn SetTextColor "255 255 255"
noteH$Wn SetBackgroundColor "0 0 0"
noteH$Wn SetScreenAnchor false;
noteH$Wn SetTransparency true;
noteH$Wn SetVisibility true;
elAvg$Wn Draw;