Showing results for
Do you mean
Solved!

# Get font size for a Balloon , Callout ...

Hello,

I need to get the font size of the Balloon's text : (or any other dimension object : Callout ...)

I test this :

***

SolidEdgeFrameworkSupport.Balloon ballon;

double size = ballon.Style.ViewTextRatio;

Console.WriteLine(size); --> it display : 2
***

Could someone help me please to find the correct property ?

Regards.

Mahbouba

6 REPLIES
Solution
Solution
Accepted by topic author Mahbouba
‎02-03-2017 10:55 AM

## Re: Get font size for a Balloon , Callout ...

Hi Mahbouba,

use the Height property of the DimStyle (unit is meter)

regards

JB
VS2015, SE ST10

## Re: Get font size for a Balloon , Callout ...

@JB thank you very much.

Problem resolved !

Mahbouba

## Re: Get font size for a Balloon , Callout ...

Just an update :

we use :

Style.Height with a draft document.

and

Style.HeightPMI with a part document

But what about a Sheet Metal document ?

## Re: Get font size for a Balloon , Callout ...

I would imagine that Style.HeightPMI would also work for a sheet metal document. Is this not the case?
Siemens PLM Software, Inc.
Project Test Engineer (Automation)

## Re: Get font size for a Balloon , Callout ...

Unfortunatly , I tried Style.HeightPMI and Style.Height but they dont work.

## Re: Get font size for a Balloon , Callout ...

Hi,

Dim objDimStyle As SolidEdgeFrameworkSupport.DimStyle

objDimStyle.HeightPMI = 0.02 * 0.0254

also change visible size to "Model Size PMI". then you can see change in PMI text height.

i tried to change chnage the options through program. but i am not upto mark. sorry.

from our group you will get answer for "how to chnage the option through program".

Thanks,

Bala.