pyroclasm
Computer
- May 17, 2005
- 24
Hey guys, in large assemblys we put our components and such in folders. So I usually right-click and choose GoTo and do a search for my folder. Is there a way to make that into a button. I tried recording the macro and assigning it to a button, but something must be wrong with the code. Anyone know how to do this?
Code:
Dim swApp As Object
Dim Part As Object
Dim SelMgr As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Dim Feature As Object
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Set SelMgr = Part.SelectionManager
boolstatus = Part.Extension.SelectByID2("CONTROL MATES", "FTRFOLDER", 0, 0, 0, False, 0, Nothing, 0)
End Sub