Refresh like key "F5"

Hi

 

How can i refresh my draft like the keyboard key "F5"

 

i 've tried that

 

SendKeys.Send("F5")

 

but it doesn't work

i want to clear a draft in my macro

 

Dim SE_DrawingView As SolidEdgeDraft.DrawingView = Nothing

 

For Each SE_DrawingView In objSheet.DrawingViews

If SE_DrawingView.Shading Then

SE_DrawingView.Shading = False

SE_DrawingView.Update()

End If

Next SE_DrawingView

 

but after this i need to update my draft with the key F5

 

thank

 

Posted by: BONNAUDET eric
Post date: 2/16/2012 6:54:20 AM

1 REPLY

Re: Refresh like key "F5"

If your drawing view is the active one, then the following line should help:

 

objSEApp.ActiveWindow.View.Update()

 

Posted by: Martin Bernhard
Post date: 2/17/2012 2:11:30 PM