Can anybody help?
I have the following macro....
Dim swApp As Object
Dim swModel As ModelDoc2
Dim swModelDocExt As ModelDocExtension
Dim swSketchMgr As SketchManager
Set swApp = Application.SldWorks
Set oDoc = swApp.ActiveDoc
swModelDocExt = oDoc.Extension
swSketchMgr = oDoc.SketchManager
status = swModelDocExt.SelectByID2("Sketch1", "SKETCH", 0, 0, 0, False, 0, Nothing, 0)
I want to run (as a test) the macro to hide all sketch1 entities (lines arcs etc)
Can somebody tell me what is wrong with the above macro?
Many thanks in advance!