confusing "ReadOnlySaveError"

Working on the same add-in as last time I posted, this time on a new kind of problem. We have a number of external documents we pull in and assemble in this addin, and they are all supposed to conform to certain naming conventions, so that we can generalize calls to mate them. However, over time, a healthy minority of a certain kind of part has become non-conformist, the faces not being named correctly. I figured out how to determine which face was supposed to be named what, and renamed the faces in the add-in conditionally if they started off misnamed, but this causes a "ReadOnlySaveError" when the add-in saves the finished drawing. Why is this? I don't get the error if a correctly named part is inserted.

SolidworksApi macros
Answers 1
SF
SF 2010-07-02 Best Answer

Well, now I feel silly. I guess this is why programmers like myself should get to know the software whose API they are using...so apparently saving the drawing of the assembly also saves any and all changes to the parts in the drawing, and the part I was testing was read only so it couldn't. I finally tried testing it on a different part, and it went through fine, AND saved my naming changes so that in the future it will not be an issue.