Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8532

How to get all text annotation objects?

$
0
0

@Roy wrote:

Hi everyone,

Since Rhino doesn’t support RTL languages, I thought I’ll be trying to make a quick fix that could be a workaround for that issue.

Actually the situation in Rhino 5 was:

you write backwards in the text box.
you get it displayed in the correct direction on screen.
you get it in the correct direction in print.

The situation in Rhino 6 is different:

you write backwards in the text box.
you get it displayed in the correct direction on screen.
you get it backwards in print.

So as a “first remedy”, I tried to reverse all text objects characters for each text object before sending to print so it will print in the correct direction (could be undone right after print).

The second part could be recognizing that a text object has just been created and reverse its characters so it would be written in the correct direction and also be displayed in the correct direction on screen (and then reversed on wish by the command mentioned above right before print).

So I tried to get all the text objects so I could work with them but I didn’t manage to get them as an array, this is what I got so far, but I didn’t see there is a text property:

I’ve tried a few things already including this:

RhinoObject[] objs = doc.Objects.FindByObjectType(ObjectType.Annotation);

but I couldn’t see/set the text property. probably not the right way.

Thanks for your help,

Roy.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8532

Trending Articles