Refresh View

Valued Contributor
Valued Contributor

 

I have written a VBnet program which allows the user to modify property text on a drawing frame without having to go into the backgroubd sheet and edit text etc.

My problem / question is how do i refresh the drawing view

i have tried

 

 

objDocument.UpdatePropertyTextCacheAndDisplay()

 

objApplication.StartCommand(32876)

and even

AppActivate(

 "Control Panel"

)

SendKeys.Send(

 "{F5}"

 

activedocument.windows.items.update, it wont accept items, only item

is there anywhere that explains how to use solid edge spy as i would like to be able to use it, like in this example.

Thanks in advance for any help

 i have even been using solid edge spy (trying to anyway) and i can see the path but i cant get VB net to find it.

 

 

Posted by: Paul McGiven
Post date: 2/15/2009 9:34:14 PM

1 REPLY

RE: Refresh View

Valued Contributor
Valued Contributor

Assuming that you've got a Draft file open and the drawing view is on the active sheet:

 

Application -> ActiveDocument -> ActiveSheet -> DrawingViews(n) -> Update()

 

Posted by: Jason Newell
Post date: 2/17/2009 1:41:09 PM