Message 1 of 6
How to display scale of a view set by an iLogic rule in ratio/fraction form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone
So I have written a code to set scale of a particular drawing view. Now everything is working as it should except that I cant figure out a way to display the scale of that section view in a standard fraction/ratio form.
For example, when my iLogic code sets the scale, the scale should be displayed on drawing as 1:5, instead its being displayed as 0.2:1 . Any solution for that please?
Here is my iLogic code for the scale
SEC_A.Scale = 1 'initiating view scale with 1 ReqdH1 = ActiveSheet.Height / 1.8 'Height I need my view size to reduce to ActH1 = SEC_A.Height*10 'getting view width whcih is my Actual width (width by this method comes out in cm, converting to mm by Xing with 10) x = ReqdH1 / ActH1 'factor by which the view scale is going to be reduced/increased SEC_A.Scale = SEC_A.Scale * x