I managed to change all the texts in a block, but sometimes I have to explode the block to see the new text.
Here's my code:
definitions = SwSketchMgr.GetSketchBlockDefinitions();
if (definitions != null)
for (int i = 0; i < definitions.Length; i++)
block = definitions[i];
notes = block.GetNotes();
if (notes != null)
for (int j = 0; j < notes.Length; j++)
note = notes[j];
I think the problem is that some notes in the block are read-only and some have attributes. Any advice? Is it better to use PropertyLinkedText or SetText() ?
Retrieving data ...