Changing file reference of the opened document, not referenced part

Changing file reference of the opened document, not referenced part

Anonymous
Not applicable
338 Views
1 Reply
Message 1 of 2

Changing file reference of the opened document, not referenced part

Anonymous
Not applicable

Only way I can change file reference to another location is through FileReference object but I cant seem to get FileReference out of the Document object, just for the referenced parts. 

 

Is there another way to do this except closing and opening from a new location ? 

 

The feature is needed because we are building a addin for managing files and this is the flow:

 

1. User opens a file to look at it

2. User checks out the file for edit.

3. File is downloaded from the server.

4. File reference should change to the new location instead of the tmp file created before.

 

Models can be quite large and the reopening should be avoided if possible.

0 Likes
339 Views
1 Reply
Reply (1)
Message 2 of 2

Yijiang.Cai
Autodesk
Autodesk

For this requirement, we should get all the name of reference files. I think temp files are generated using specific rule for the full file names. If there is a map relationship between the full file name of temp files and full file name of files in new location. We could use this logic to get the new reference files for the opening file.

 

  

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com
0 Likes