Update FeatureManager Design Tree Example (VBA)
This example shows how to update the FeatureManager design tree.
'------------------------------------------
'
' Preconditions: Part or assembly document is open.
'
' Postconditions: FeatureManager design tree is updated.
'
'-------------------------------------------
Option Explicit
Sub main()
Dim
swApp As
SldWorks.SldWorks
Dim
swModel As
SldWorks.ModelDoc2
Dim
swFeatMgr As
SldWorks.FeatureManager
Set
swApp = Application.SldWorks
Set
swModel = swApp.ActiveDoc
Set
swFeatMgr = swModel.FeatureManager
swFeatMgr.UpdateFeatureTree
End Sub
'------------------------------------------