i am creating an UNFOLD and a FOLD on a sheetmetal part programatically (DLL addin). I want to be able to hide the sketch transformations that are created by the fold and unfold but they dont show when I traverse the tree using the following...
Private Sub subCleanSketchTransforms(ByVal SW As SldWorks.SldWorks)
Dim swModel As ModelDoc2
Dim swFeature As SldWorks.Feature
Dim lCount As Long
Dim lCnt As Long
Dim sName As String
swModel = SW.ActiveDoc
swModel.ClearSelection2(
True) lCount = swModel.GetFeatureCount
For lCnt = lCount To 1 Step -1 swFeature = swDOmodel.FeatureByPositionReverse(lCount - lCnt) sName = swFeature.Name Debug.Print(sName)
Next
swFeature =
Nothing
swModel =
Nothing
End Sub
any ideas how to accomplish this?
(using 2008 VBExpress...)
SolidworksApi macros