Automatic Drawing view Scale update through iLogic

Automatic Drawing view Scale update through iLogic

Pratik.Ksoni
Advocate Advocate
683 Views
1 Reply
Message 1 of 2

Automatic Drawing view Scale update through iLogic

Pratik.Ksoni
Advocate
Advocate

Hello,

 

Does anybody guide me regarding how to automatically update desired drawing view scale through inventor iLogic?

 

it will be highly appreciate if anyone send me rule.

 

Thanks

Pratik 

0 Likes
Accepted solutions (1)
684 Views
1 Reply
Reply (1)
Message 2 of 2

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi Pratik.Ksoni,

 

Here is a basic example.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

Dim oView As DrawingView
For Each oView In ThisDrawing.Document.ActiveSheet.DrawingViews
	If oView.ScaleFromBase = True Then 
		Continue For
	Else
		'get user input
		Dim oScale As Double
		oScale = InputBox("Enter a new scale for: " _
		& vbLf & oView.Name, "iLogic", oView.Scale)
		'set scale
		oView.Scale = oScale
	End If
Next

EESignature

0 Likes