Disable Screen Updating via iLogic

Disable Screen Updating via iLogic

Anonymous
Not applicable
3,491 Views
7 Replies
Message 1 of 8

Disable Screen Updating via iLogic

Anonymous
Not applicable

Hi,

I am using iLogic to change assembly dimensions, suppress components and constrains. Is there any way to turn off screen updating while iLogic rules are running?

 

0 Likes
Accepted solutions (2)
3,492 Views
7 Replies
Replies (7)
Message 2 of 8

Vladimir.Ananyev
Alumni
Alumni
Accepted solution

Please try this method:

  ThisApplication.ScreenUpdating = False 
            ... some iLogic commands ...
  ThisApplication.ScreenUpdating = True

 

Cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 8

Anonymous
Not applicable

Спасибо, работает Smiley Happy

0 Likes
Message 4 of 8

Anonymous
Not applicable

Well it works Smiley Sad but not quite as I would expect. In my case Inventor gets frozen. Then only way to restart Inventor is to use Windows Application Manager shot down process and restart.

0 Likes
Message 5 of 8

Vladimir.Ananyev
Alumni
Alumni
Accepted solution

Try this format:

    Try
      ' ... rule code ...
    Catch ex As Exception
      'if some error occurs then this code will be executed
      ThisApplication.ScreenUpdating = True
      ThisApplication.UserInterfaceManager.UserInteractionDisabled = False
      Beep()
      MsgBox("Error info: " & vbNewLine & ex.ToString)
    End Try

  Cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 6 of 8

Anonymous
Not applicable

"Try" code piece runs without any errors. 

Soon I set   string  ThisApplication.ScreenUpdating = False 

in front of my iLogic code Inventor freezes in quite funny way
Smiley Sad

0 Likes
Message 7 of 8

Vladimir.Ananyev
Alumni
Alumni

Will you please post your  rule / model / some description. 


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 8 of 8

Anonymous
Not applicable

We recently moved on Inventor 2013 and strugling to get our models and drawing to work. It is quite a mess here. I would like to postpone this subject for a while as I simply have no time for more testing.

Thank you for your kind attention in this matter.

 

 

0 Likes