So I'm trying to edit the default note attached to a detailedView
In Solidworks you double-click the note, it then lets you add whatever text you want. Thats working as expected
If you right click and choose to "edit in window" or "edit text" it also works as expected.
in code using INote method (note.SetText(customText) or note.PropertyLinkedText = customText It sets the text, but as soon as you edit a linked property, e.g. the scale of the detailedView from 1:1 to 1:2 it immediately reverts the notes text back to what it was before.
I have also tried editing the detail circles label, which does work, but i need the label to have its data, then the scale of the items, then the description e.g. the end users have the torque values
The code below i am using to set the Note and a gif showing how it is correctly setting the text, but on a scale change it reverts back
If the "TEST" was there before, and i click the button with a different text like "TEST_2", then run the scale update it will revert back to "TEST"
INote note = (INote)selectionMgr.GetSelectedObject6(i, -1); // Get property linked text string propertyLinkedText = note.PropertyLinkedText; string[] lines = propertyLinkedText.Split(new[] { "\r\n", "\n" }, StringSplitOptions.None); ListlineList = new List (lines); if (string.IsNullOrEmpty(notesText)) { if (lineList.Count >= 3) lineList.RemoveAt(2); } else { if (lineList.Count >= 3) lineList[2] = notesText; else lineList.Add(notesText); } string combinedText = string.Join(System.Environment.NewLine, lineList); note.SetText(combinedText);