Automatic scale drawing with iLogic

Automatic scale drawing with iLogic

jgomis.ext
Enthusiast Enthusiast
326 Views
1 Reply
Message 1 of 2

Automatic scale drawing with iLogic

jgomis.ext
Enthusiast
Enthusiast

Hi everybody !

I'm working on a drawing that will change the scale of my views automatically with iLogic.

In a first time, I have found the limit height and limit width that I would like for my views.

For example for my view 1 I have a maximal height of 252 and a maximal width of 738. 

So I would like to automatically change the scale, to have a view that fit well in the limits that I have define.

I would to create a code like this maybe but I'm not really good in codding :

 

For i from 1 to …

                If ActiveView1Width > LimitView1Width then

                               View1Scale = 1/i

                Else

                               Exit

                End if

End for

 

Is it possible ?

 

Thanks for every helps 🙂

0 Likes
327 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

Hi @jgomis.ext.  Have a look at these two similar forum topics which were also about creating, scaling, orienting, & placing multiple views into drawings.  You might get some ideas from these previous discussions, and the solutions that were posted for them.

https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/automaticly-create-a-drawing-from-a-... 

https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/ilogic-create-drawnings-of-all-parts... 

https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/creating-4-views/m-p/11156300 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes