-
Re: Suppress feature
Artem Taturevych May 4, 2014 9:05 PM (in response to Sanya Shmidt)Hi Sanya,
Please try this code:
Dim swApp As SldWorks.SldWorks
Dim swPart As SldWorks.PartDoc
Dim swFeat As SldWorks.Feature
Sub main()
Set swApp = Application.SldWorks
Set swPart = swApp.ActiveDoc
Set swFeat = swPart.FeatureByName("VertObr_Pattern")
If Not swFeat Is Nothing Then
swFeat.SetSuppression2 swFeatureSuppressionAction_e.swSuppressFeature, swInConfigurationOpts_e.swThisConfiguration, ""
End If
End Sub
______________________________________________
Regards, Artem Taturevych | Snr. Developer | IC3D ANZ
IC3DSteel – New Steel Solution for SolidWorks
translationXpert – SolidWorks files language translator
-
-
Re: Suppress feature
Artem Taturevych May 4, 2014 9:21 PM (in response to Sanya Shmidt)Yes, you need to add SolidWorks Constants Type Library: <SW Installation Path>\SolidWorks\SolidWorks.Interop.swconst.dll
and then import the namespace:
Imports SolidWorks.Interop.swconst
-
Re: Suppress feature
Sanya Shmidt May 4, 2014 9:23 PM (in response to Artem Taturevych)Thanks man!!!! it works
-
-
-
Re: Suppress feature
Sanya Shmidt May 4, 2014 9:23 PM (in response to Artem Taturevych)yes, I got it
i was missing
Imports SwConst
-