Scale Factor as Ratio

Hello All,

Trying to automate drawing view scale in SCALE field on a draft titleblock.

Able to get ScaleFactor just fine, but it comes in as a decimal.

Per ANSI standards, scale should be shown as a ratio ( ie. .5 as 1:2 ).

Can't find it anywhere, but I know it is there since SE displays it in the Properties > General area for the drawing view.




Posted by: Mark Spencer
Post date: 2/6/2013 7:32:26 AM


Scale Factor as Ratio



for viewscales less than 1 just calculate 1/viewscale to get the value of the denominator you wish to have.




viewscale 0.5 -> 1/0.5=2 => Scale 1:2

viewscale 0.1 -> 1/0.1=10 => Scale 1:10



Posted by: Wolfgang Kunert
Post date: 2/7/2013 1:45:02 AM

Scale Factor as Ratio

Thank you Wolfgang. I thought about doing it the long way, but I just assumed it already existed somewhere to just pull in. Guess I'll throw a little extra code in to format the display.


Posted by: Mark Spencer
Post date: 2/7/2013 7:12:42 AM