Jump to content
Developer Wiki and Function Reference Links Read more... ×
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

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.

×