I haven’t found any grasshopper component that applies text wrapping for text entities yet so I tried using WrapText method for annotationbase but It doesn’t enable text wrapping and when I use FormatWidth it only affects those with text wrapping on (the ones with textwrapping on referenced from rhino), I would like to know where the problem is
here is the code :
private void RunScript(TextEntity textEntity,double Width,ref object T_out, ref object isWrapped)
{
if (textEntity == null)
{
T_out = null;
isWrapped = false;
return;
}
textEntity.WrapText();
textEntity.FormatWidth = Width;
T_out = textEntity;
isWrapped = textEntity.TextIsWrapped; // returns false
}
1 post - 1 participant