Professional Documents
Culture Documents
Performance Boost
Performance Boost
ModelDoc2, _
Optional ByVal CommandInProgress As Boolean = False,
Optional ByVal EnableGraphicsUpdate As Boolean = True,
Optional ByVal EnableFeatureTree As Boolean = True
)
Try
SwApp.CommandInProgress = CommandInProgress
SwApp.SetUserPreferenceToggle(swconst.swUserPreferenceToggle_e.swFeatureManagerDyna
micHighlight, EnableFeatureTree)
swModel.FeatureManager.EnableFeatureTree = EnableFeatureTree
swModel.FeatureManager.EnableFeatureTreeWindow = EnableFeatureTree
If EnableFeatureTree Then
swModel.FeatureManager.UpdateFeatureTree()
If EnableGraphicsUpdate Then swModel.GraphicsRedraw2()
Catch ex As Exception
End Try
End Sub