Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic text conversion

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
mstalter
330 Views, 2 Replies

iLogic text conversion

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.

michael.stalter@joyglobal.com

 

 

2 REPLIES 2
Message 2 of 3
Yijiang.Cai
in reply to: mstalter

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

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com
Message 3 of 3
mstalter
in reply to: Yijiang.Cai

River,

Many Thanks for your reply. It worked great!

 

Mike Stalter

michael.stalter@joyglobal.com

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report