Jump to content
Developer Wiki and Function Reference Links ×

Getting text options


Recommended Posts

This is the problem:

I have a pio. I let the pio use the standard text options that are set at the moment. The size is set with a parameter.

If you select a pio, you can select a text option and change it. This does not change the standard for this text option.

What I want to know is: How to retrieve a text option that is chosen when the pio was selected? Because now you need to select nothing, change the option, select the pio and make it regenerate. This is not good for a user.

So how program a pio so that when it's selected, it changes it's text to the text options chosen at the moment it was selected?

I hope i'm clear enough to make sense.

Link to comment
  • Vectorworks, Inc Employee

First, (assuming you're using VectorScript) you get a handle to the PIO using GetCustomObjectInfo(). Then you use an "object variable" to give this text-attribute-holding property to your PIO:

SetObjectVariableBoolean(My_PIO_Handle,800,TRUE);

Your PIO will obtain its text settings from the document settings when newly placed, and will keep them when regenerated even if the document settings change. You can also, as you have seen, select the PIO instance and reset the text settings.

Link to comment

To make life even more miserable in Belgium (if there still is one by the time DWorks reads this in the Kingdom/Republic of Flanders):

Four out of five users hate this approach. They want to freely choose the typeface, size & style (= font to us typographers), but expect that this font is then used in all instances at least in one file, but quite often in every file. Except the ones - instances or files - where they expect the Mind Reader plug-in to automatically intervene and keep the font. Or, better still, change it in a suitable way.

Notwithstanding, four out of five users love this approach, too...

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...