- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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. ![]()
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