Reply

update drawing after changing file properties

[ Edited ]

 

I have a macro that updates the file properties in both the part and drawing.  It changes the properties fine.  However, the drawing view update sporadically.  The first time I run it, the properties update, but the titleblock does not update on the screen.  I can go back into the macro and hit the save again.  The title block then updates.

Code:

                objPropSets.Save()

                objDocument.Save()

                With DirectCast(objDocument, DraftDocument)

                    .UpdatePropertyTextDisplay()

                    .UpdatePropertyTextCacheAndDisplay()

                End With

                objApplication.StartCommand(SolidEdgeConstants.DetailCommandConstants.DetailViewRefreshWindow)

                objApplication.StartCommand(SolidEdgeConstants.DetailCommandConstants.DetailViewRefreshWindow)

 

Posted by: Kenneth McIntyre
Post date: 6/30/2009 9:35:13 AM

1 REPLY

RE: update drawing after changing file properties

[ Edited ]

 

Hi Ken,

use SolidEdgeConstants.DetailCommandConstants.DetailDimensionUpdatePropertyText to get your property texts updated.

Best regards,

Wolfgang

 

Posted by: Wolfgang Kunert
Post date: 7/1/2009 10:57:42 PM