Jump to content
Developer Wiki and Function Reference Links ×

Controlling Dimension Text Inside a PIO


Sam Jones

Recommended Posts

Thank you @Pat Stanford and @C. Andrew Dunning for the line style help.  Works like a charm.

 

 

I would like to set the text size of a dimension that I create inside a PIO.

I draw the dimension with:

                        LinearDim(x1, y1-(bayDepth/2), x1-offsetLft, y1-(bayDepth/2), 0, 0, 771, 770, 0 );

I would like to set the size of the text in that dimension object to 2.  I attempted to do this with the following line:
                        SetObjectVariableReal(LNewObj, 17, 2);

Nothing changed.  I can replace the "2" with any value and still nothing changes.  Hopefully there is a way to control the text size of a dimension created in a PIO.

Thoughts ?

 

Sam

Link to comment
5 minutes ago, Sam Jones said:

I would like to set the size of the text in that dimension object to 2.  I attempted to do this with the following line:
                        SetObjectVariableReal(LNewObj, 17, 2);

Nothing changed.  I can replace the "2" with any value and still nothing changes.  Hopefully there is a way to control the text size of a dimension created in a PIO.

 

Try TextSize.

Link to comment
3 minutes ago, Sam Jones said:

Not a big concern or rocket science, but I like to avoid the collecting global value, saving value, changing value, do operation, change value back collection of calls.

 

A thought:  Create a Procedure called "JonesTextPlace.  In it, make all of the text settings you'd like - size, alignment, justification, etc.  Bookend everything w. PushAttrs & PopAttrs.  Doing that will reset values automatically.

 

  • Like 1
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...