Is there a way to convert an Inventor 2012 view scale from "0.5" to "1:2" or similar within an iLogic rule? I can extract the main view scale and plug it into a variable but the format isn't correct for the drawings I'm creating. Appreciate any help given
Regards
Michael Stalter
Joyglobal Inc.
Solved! Go to Solution.
Solved by Yijiang.Cai. Go to Solution.
Please use the code lines within iLogic Rule to accomplish this -
1. Create one user parameter named "ViewScale"=0.5 for main view scale which you talked that you could extract.
2. Copy & paste the code lines within one rule
If ViewScale>=1 Then
ActiveSheet.View("VIEW1").ScaleString=CStr(ViewScale) & ":1"
Else
ActiveSheet.View("VIEW1").ScaleString="1:" & CStr(1/ViewScale)
End If
Hope it helpful for you!
Thanks,
River