iLogic Defer updates in drawing File

iLogic Defer updates in drawing File

PaulMunford
Community Manager Community Manager
2,627 Views
1 Reply
Message 1 of 2

iLogic Defer updates in drawing File

PaulMunford
Community Manager
Community Manager

Here's a quick iLogic script to defer updates on and off in a DWG file:

 

With thanks to Sean Dotson for this thread:

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/Status-bar-text/m-p/758518/highlight/t...

 

and Sanjay Ramaswamy for this one:

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/Defer-Update-while-opening-IDW-Using-V...

 

 

'Toggle 'Defer updates' on and off in a Drawing

Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument

oValue = oDoc.DrawingSettings.DeferUpdates ()

if oValue = "False" Then
oDoc.DrawingSettings.DeferUpdates = "True"
oStatusText = "Off"
Else
oDoc.DrawingSettings.DeferUpdates = "False"
oStatusText = "On"
End if

PauseTime = 2
Start = Timer
Do While Timer < Start + PauseTime
ThisApplication.UserInterfaceManager.DoEvents
ThisApplication.StatusBarText = "Drawing Updates " & oStatusText
Loop

 I welcome your comments.

 


Customer Adoption Specialist: Autodesk Informed Design
Help | Learn | Forum | Blog | Ideas | Sample content | Linkedin 

2,628 Views
1 Reply
Reply (1)
Message 2 of 2

_KarlH
Enthusiast
Enthusiast

Thanks so kindly for sharing this. It's great!

0 Likes