When I used the GetAllExternalReferences to get References,the SW2007 was be restart.
The 'On error ' line can not catch the error.
The error is the reference file was losted.
I think that is a bug with GetAllExternalReferences.
How to catch the error?
SolidworksApi macros 1
SF 2009-10-26 Best Answer
First test your code on another file or assembly with working references to make sure your code is not invalid and causing a SW crash which is more likely.
