Hello. This is the case:
1) I have a part template (*.prtdot) - I have saved some custominfo into the part, i.e. the pathname to the drawing master.
2) I have a drawing with the required dimensions which is referenced to the part template.
3) Our users creates a new part, and modifies the dimensions.
4) The user saves the part with an appropiate name in a project folder.
4) The user activates a macro that retrives the information about the drawing master, closes the part, and changes the current drawing reference to the new part. This works fine.
5) Then I open the drawing with the new reference. And I get the dialog box with the following message:
The internal ID of document C:\Documents and Settings\psb\Desktop\Part3.SLDPRT, which is already open, does not match the internal ID saved with the referencing document. Select YES to accept this document anyway.
6) Pressing YES causes all my dimensions to be "under-defined"
Question: Does any of you know any way to avoid this internal ID problem?
Remark: It is not possible to use a drawing template since only the views are created. All dimensions are missing.
Best regards
Poul
SolidworksApi macros