I am working on doing some work updating properties and am unable to determine a way to refresh the UI so that the changes I make display right away. For the below example, I change the configuration name to "NumberABC" and the configuration description to "DescriptionABC". The display for the number updates immediately however the description doesn't show until I cycle back and forth to the design tree tab. I've tried using EnableGraphicsUpdate, GraphicsRedraw2, and ForceRebuildAll without noticing a change in behavior. I also have a similar problem when updating the custom properties of the configuration.
Public Sub mainTest()
Dim sValOut As String
Dim sResolvedValOut As String
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set swConfig = swModel.GetActiveConfiguration
Set swModelView = swModel.ActiveView
'swModelView.EnableGraphicsUpdate = False
'Configuration Properties
swConfig.Name = "NumberABC" 'Number
swConfig.Description = "DescriptionABC"
'swModelView.EnableGraphicsUpdate = True
'swModel.GraphicsRedraw2
'swModel.Rebuild (swForceRebuildAll)
End Sub
SolidworksApi macros