Good day, we are trying to do the following but have no success yet: We have an automated assembly using VBA & Excel. Within the main assembly we have various sub-assemblies with different folders. We would like to suppress/unsupress the folders using a macro. (as opposed to supress/unsupress each and every part inside the folders).
We have recorded a macro to supress and unsupress a folder but when we run the macro it doesn't supress or unsupress the folder. Can anyone please assist with this challenge we are facing? We are using SolidWorks 2012, Service Pack 04.Regards. Chris.
Hello Chris Botha,
i have recored the macro and its working.
'FOR SUPPRESS
boolstatus = Part.Extension.SelectByID2("Folder1", "FTRFOLDER", 0, 0, 0, False, 0, Nothing, 0)
Part.EditSuppress2
Part.ClearSelection2 True
'FOR UNSUPPRESS
boolstatus = Part.Extension.SelectByID2("Folder1", "FTRFOLDER", 0, 0, 0, False, 0, Nothing, 0)
Part.EditUnsuppress2
Part.ClearSelection2 True