Reference file of drawing file

Reference file of drawing file

Anonymous
Not applicable
285 Views
3 Replies
Message 1 of 4

Reference file of drawing file

Anonymous
Not applicable
Hi all, can anyone help me modifying the reference file of the drawing file. interactively we specify the model file while choosin the "baseview", now i want to modify that to a new file. kindly check it in vc++, thanks in advance.
0 Likes
286 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Use the FileDescriptor.ReplaceReference method. The limitation is that the
new file must share ancestry with the original file (i.e. must be created
using Save Copy As or OS level copy operation).

Sanjay-

wrote in message news:5786964@discussion.autodesk.com...
Hi all, can anyone help me modifying the reference file of the drawing file.
interactively we specify the model file while choosin the "baseview", now i
want to modify that to a new file. kindly check it in vc++, thanks in
advance.
0 Likes
Message 3 of 4

Anonymous
Not applicable
hi sanjay, i could not understand the limitation that you have specified. can you give me an example for that.
0 Likes
Message 4 of 4

Anonymous
Not applicable
The limitation is that you cannot replace the referenced document with *any*
document. For instance, let's say 'Drawing1' references a part called
'Part1'. In order to replace the reference with 'Part2', it is required that
you create 'Part2' using one of the following methods:

1. By doing a 'Save Copy As' on Part1
2. Doing a file explorer copy of Part1
3. Using the FileManager.CopyFile API method to copy Part1

It's okay to have performed minor edits to 'Part2' after it was created, but
the important thing is that it originated from 'Part1' or vice versa.

Sanjay-

wrote in message news:5798871@discussion.autodesk.com...
hi sanjay, i could not understand the limitation that you have specified.
can you give me an example for that.
0 Likes