I am looking for a way to Batch Process substituting/replacing one reference file attachment for a different file. It would be similar to double clicking the Reference and Browsing to a new file. Havent been able to find any key-in for this action.
I would like to identify a current attachment and redirect it to a different file. I browsed the newsgroups and could not find a solution.
I don't want to detach the reference and attach a new reference because it would loose it's slot # and level display settings. I can't just use the MS_RFDIR to point to a different location because it has a different FileName.
Anyone have a solution? Any help would be appreciated! I have hundreds of files to do. Thanks to all (in advance)!
Simplest solution I could think of....
Rename your current reference design file name, reference.dgn to reference_old.dgn.
Rename your new reference design file and give it the name of the current (now old) reference design file, new.dgn to reference.dgn.
If the current reference design file and the new reference design file are not in the same location, use MS_RFDIR to add the folder location of the new reference design file that your would rename.
Your post suggests that these files are similar because you're considering slot number and level display settings, so this might work for your situation.
Plenty of information in Ms help - References Key-ins
REFERENCE ACTIVATE <file-spec>
Activates the selected reference for in-place editing. A black dot indicates it is activated.
REFERENCE DEACTIVATE <file-spec>
Deactivates the selected reference so that you can return to editing the active model. A gray check mark indicates it is deactivated.
REFERENCE ATTACH (or RF=)[configuration_variable:]<file-name>[,model_name][,logical_name][,description][,view_name][,scale][,nesting][,on|off]
Attaches a reference to the active model.
REFERENCE CLIP BOUNDARY <file-spec>
Applies a clip boundary to a reference.
REFERENCE CLIP MASK <file-spec>
Applies a clip mask to a reference.
REFERENCE CLIP DELETE <file-spec>
Deletes a reference clip boundary or clip mask.
REFERENCE CLIP BACK <file-spec>
Sets the back clipping plane for a 3D reference.
REFERENCE CLIP FRONT <file-spec>
Sets the front clipping plane for a 3D reference.
REFERENCE RELOAD <file-spec>
Reloads references that have changed since last loaded.
REFERENCE RELOAD FORCE <file-spec>
Forces a reload of references.
REFERENCE MOVE <file-spec>
Moves a reference.
REFERENCE COPY <file-spec>
Makes a copy of a reference.
REFERENCE SCALE ABSOLUTE|FACTOR|POINTS <file-spec>
Scales (resizes) a reference.
REFERENCE ROTATE <file-spec>
Rotates a reference.
REFERENCE MIRROR HORIZONTAL|VERTICAL <file-spec>
Mirrors a reference about a horizontal or vertical line.
REFERENCE COPY FOLDED HORIZONTAL|LINE|VERTICAL <file-spec>
Creates copies of references, folded about an orthogonal axis, or about a defined line.
REFERENCE PRESENTATION <file-spec>
Sets the presentation mode of a reference.
REFERENCE DETACH <file-spec>
Detaches a reference.
Good luck, Roland
V8i SS4 v.08.11.09,829AECOsim BD V8i
Sorry, I do not know of a way to do this in a batch process. But, you can:
1) select the file in ref dialog box and bring up the Attachement Setting Dialog for the reference.
2) If the file is in a different directory then open windows explorer to where the file is located
2a) cut and paste the directory where the file is located in the File Name: (in the Attachement dialog box)
2b) Add the new file name after the directory in step 2a ( you can also cut and paste the name from windows explorer)3) if file is in the same directory then just change File Name to current File Name in the Attachement Settings Dialog.
This will keep all your levels that are on or off intact. This not a batch process method but, works well for the occassional reference file change.
There is a thread somewhere on this site that discusses a .mvba project that will do what you ask for. I did a quick search just now but did not find it. Sorry, but The answer is out there!
MikeHarvison said:There is a thread somewhere on this site that discusses a .mvba project that will do what you ask for.
I remember this this. I do did not search for but I did try the .mvba from that thread and the only way it would work is if the reference file you are replacing and the replacement reference file resided in the same folder as the active .dgn. If you were trying to re-direct to another folder location you received errors. I remember the discussion saying it was extremely difficult to get a program to re-direct to different folder locations. I'll have to look for the program or the thread.
Just found the thread: http://communities.bentley.com/products/microstation/microstation_v8i/f/19565/p/54085/126101.aspx#126101
Power InRoads v8i V08.11.07.615
Microstation CONNECT U13 10.13.01.01
ORD CONNECT 2019 Release 2 U7 10.07.03.18