Community
Hi,
is there any solution for automatic Zoom all drawing before save it?
I need this because thumbnails in explorer.
I found this code for rule:
ThisApplication.ActiveView.Fit
It works fine, but there is problem with Event Trigger - I use Before save document, but doesn't work. It zooms all, but i think after saving, because thumbnail is not zoomed.
Thanks for help!
Try this:
ThisApplication.CommandManager.ControlDefinitions.Item("AppIsometricViewCmd").Execute
Thanks for advice, but it doesn't work. I need this for drawing not for part.
'ZOOM IN
ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomallCmd").Execute
iLogicVb.UpdateWhenDone=True
It works same as my first solution (it zooms, but after saving document, so thumbnail is not zoom all picture).
Instead of using
iLogicVb.UpdateWhenDone=True
Try
Call InventorVb.DocumentUpdate
to force the document to update immediately rather than at the end of the rule.