Defer Update while opening IDW - Using VB6 HELP!

Defer Update while opening IDW - Using VB6 HELP!

Anonymous
Not applicable
711 Views
3 Replies
Message 1 of 4

Defer Update while opening IDW - Using VB6 HELP!

Anonymous
Not applicable
I need to be able to select the option to defer updates while opening an IDW using VB6. Currently running IV8 SP1. It looks like I could use Application.GeneralPreferences.DeferUpdate True. But when I try to use it I get an error. Any suggestions would be helpful.
Thanks
Ray C.
0 Likes
712 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Ray, The 'Defer Updates' option is a drawing document setting. This setting is exposed by the DrawingDocument.DrawingSettings.DeferUpdates property. If I remember right, this was added in IV9. Of course, in order to set this property, you will first need to open the document which will cause the drawing to update. The update will only be deferred for subsequent opens. If you want the updates to be deferred on the very first open, you will need to use Apprentice (and this can be done in IV8 SP1). You can set a property on the document that controls the defer updates setting, to true, and then open the drawing in Inventor. Dim odoc As ApprenticeServerDrawingDocument ... ... Dim oProp As Property Set oProp = odoc.PropertySets.Item("Design Tracking Properties").Item("Defer Updates") oProp.Value = True odoc.PropertySets.FlushToFile Sanjay- "srayc" wrote in message news:12216866.1108147573651.JavaMail.jive@jiveforum2.autodesk.com... > I need to be able to select the option to defer updates while opening an IDW using VB6. Currently running IV8 SP1. It looks like I could use Application.GeneralPreferences.DeferUpdate True. But when I try to use it I get an error. Any suggestions would be helpful. > Thanks > Ray C.
0 Likes
Message 3 of 4

Anonymous
Not applicable
Thanks Sanjay,
If I understand correctly this is a persistant setting until it is reset. This does not seem to be the case in the non-VB access when opening through the Inventor interface. I am just needing to defer updates for a particular application and do not want to permenantly set the flag. If this is the case then I will have to reset it back through code.
Thanks again for your help, I will give it a try.

Ray C.
0 Likes
Message 4 of 4

Anonymous
Not applicable
Ray, This is a persistent setting in the document and you will need to reset it. The behavior is the same via the user interface as well. This setting is accessed in the user interface in the Drawing tab of the Tools->Document Settings dialog. Sanjay- "srayc" wrote in message news:3846504.1108413032949.JavaMail.jive@jiveforum2.autodesk.com... > Thanks Sanjay, > If I understand correctly this is a persistant setting until it is reset. This does not seem to be the case in the non-VB access when opening through the Inventor interface. I am just needing to defer updates for a particular application and do not want to permenantly set the flag. If this is the case then I will have to reset it back through code. > Thanks again for your help, I will give it a try. > > Ray C.
0 Likes