Hello MATTHIAS
Did you already solve this problem.
Textheight of Detail note is a little bit complicated because textheight can be set by both each line and each segment of a line.
if you wanna set all texts to same height, the code will be like the following
var drawing = session.CurrentModel;
var matrix = drawing.GetSheetTransform(drawing.CurrentSheetNumber).Matrix;
var xyz = table.GetCellNote(cell);
var new_text_format = xyz.GetInstructions(false);
var new_text_lines=new_text_format.textLines;
for(var i=0;i<new_text_lines;i++)
{
var new_text_line=new_text_lines.item(i);
var new_texts=new_text_line.texts;
for(var j=0;j<new_texts.count;j++)
{
var new_text=new_texts.item(j);
new_text.TextHeight=12/matrix.Item(0, 0);//<-need to transform the coordinates
}
}
xyz.Modify(new_text_format);