Jump to content
Matthias Schwarz

Setting text size in Dimension object?

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

Share this post


Link to post

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,

Share this post


Link to post

Hi Cmb,

 

this looks like the way to go, we actually work already with the VWTextBlockObj inside of dimension objects.

Thank you 🙂

 

BR

 Matthais

 

Share this post


Link to post

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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...