Jump to content
Developer Wiki and Function Reference Links ×

Setting text size in Dimension object?


Matthias Schwarz

Recommended Posts

Hi all,

 

I like to modify the text size (e.g. enlarge 10x) of a dimension object in a PIO.

I tired both ovDimTextSizeInPoints and ovDimFontSize.  I can read these variables, but when I set them no effect?

At least GetObjectBounds() never gives a changed value, even after ResetObject().

Are these values ReadOnly or i missed something here.

 

TY + BR

 Matthias

Link to comment
  • 2 weeks later...

If you look at the drawing Tree or try to ungroup your Dimension object (CTRL + U), you will find out that there are Lines Nodes and a Text Node :

 

image.thumb.png.e08b5e999935c63e7b2a376b64e1271f.png

 

You can then easily change the charSize of the Text Object with for example : 

virtual void ISDK::SetTextSize(MCObjectHandle textBlock, Sint32 firstChar, Sint32 numChars, WorldCoord charSize);

Best,

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...