I can not seem to close the active document.
swApp = GetObject("", "SldWorks.Application")
swModel = swApp.OpenDoc6(swFileName, 1,swOpenDocOptions_e.swOpenDocOptions_Silent, "", 0, 0)
swModel.Close()
It doesn't do anything.
If I place the command in a Try it will catch it then.
What am I doint wrong??!!SolidworksApi macros
swApp = GetObject("", "SldWorks.Application")
swModel = swApp.OpenDoc6(swFileName, 1,swOpenDocOptions_e.swOpenDocOptions_Silent, "", 0, 0)
swModel.Close()
It doesn't do anything.
If I place the command in a Try it will catch it then.
What am I doint wrong??!!SolidworksApi macros