Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Ralf_Krieg
in reply to: a81383

Hello

 

In the line

 

Resolvedfile = Path & FilenameWithMS

 

a backslash is missing

 

Resolvedfile = Path & "\" & FilenameWithMS

 

 

The line

 

If oFD.FullFileName = Filename Then

 

compares a FullFileName (with path) with a Filename (without path). This will never be true.

Should be?:

 

If oFD.FullFileName = Path & "\" & Filename Then

 

 

Is there any error message or does still happen nothing?

AFAIK the ReplaceReference method requires a FullFileName. The FullFileName did not contain the model state in brackets. I think this part of the filename will be ignored.

ModelStates are all saved within one part document. There's no difference in the filename. How did you create the model state files? Have you created one file per model state, which is not the way it should be? It's a bit unclear what you've done and i'm slightly confused. :beaming_face_with_smiling_eyes:

Is it possible to post one drawing, the old factory file and the new corresponding model state file? Or can you show the code for resolve the files in your assembly?


R. Krieg
RKW Solutions
www.rkw-solutions.com