How do I move (not copy) files and keep references?

I need to move multiple files to a new location. How can I dothisand keep references, and where used etc?SolidworksSolidworks Explorer
Comments 18
SF
SF 2007-11-28
Hopefully someone has a better way of doing this, but I justgo through multiple steps:

- Use pack and go to copy the files to the desired new location,adding a prefix like "COPY_"

- Use pack and go a second time on the new files and use theSelect\Replace option to remove the prefix, creating a second setof files in the same location.

- Using windows Explorer, delete the files with the prefix, and thefiles in the original location.

An options in SW Explorer to either move all the files in one step,or for safety, copy them to a new location and automatically add a"backup" type prefix to theoriginal files would be great.

As I said, I am hoping we are missing something easier and someoneelse can help.
SF
SF 2007-11-28
What type of files are you moving? Everyone will tell you itis bad to move files with Windows Explorer. And it is bad if youdon't understand the way file references work. So if you don'tfully understand file references then I would use the methodthat Dan suggests and ignore the below. But try to make sure youdon't end up with multiple copies of the same part with the samename.

If you are moving an assembly with its files you can move them allwith Windows Explorer (just drag and drop). As long as they(assembly, part and drawing files) are all in the same locationthen the assemblies and drawings should be able to find theirparts.

If you want to move parts to a different folder than your assemblythen you can do that with Windows Explorer as well. The easiestway, I think, is to move the parts and then open the assembly. Uponopening, if it can't find a part it will prompt you to find it. Doso and then it will look in the same location for other parts itcan't find. Then save and it should update references once it isloaded.

There are a few other ways to do this. As with everything SWx ifthere is one way to accomplish a task there is bound to be 5 moreways to do it. If you are proficient with SWx Explorer then you canuse that as well and it will show you the references and you canchange them there without opening an assembly. SWx Explorer issupposed to allow you to move files and keep the relations but Ihave never had much luck with that practice. This gets a bit morecomplicated with library files so be careful and conscious of thereferences.
SA
SA 2007-11-28
I have PDMWE, so I don't have to worry about this. However, Ibelieve if you move files with Solidworks Explorer, it willmaintain the references for you (so you don't have to jump throughany hoops like stated above).

Another thing you could do, if your assembly isn't huge. Open thepart files after you move them. Then open the assembly file.Solidworks will use the part files already open. So, just re-savethe assembly, and it should update the references.

Edit: I just noticed that Tim had mentioned SW Explorer already=P
JR
JR 2007-12-21
The addition of "virtual parts" to assemblies in 2008 is hugestep in the right direction. For those of you who haven't seen it,the feature allows you to create new parts inside an assembly filewhich are then saved INSIDE the assembly file instead of in theirown unique .sldprt file. You can later go back and rename and savethese files externally, thus allowing you to save the parts withthe right file name in the correct location the FIRST time.

It's not even difficult to use. Just open up an assembly and inserta new file. Instead of bugging you for a file name and throwing offyour concentration, it asks you where you would like to startsketching.

My projects usually started out in a project folder on my PC, withall files given arbitrary names such as "end cap" or "bottomplate". When the time came to assign part numbers, I would have torename and move all the files to a network server, then open theassembly and re-link all the files.

Now I jump right into my design and don't have to worry about filenames at all, move a single file to the server when I'm finished,and then quickly and easily save external parts for anything I maywant to reuse in another assembly.
SF
SF 2008-03-27
First, a file's own references are internal to that file soyou never have to worry about a file's own references when you movea file, even if you just move it in Windows Explorer. The thing youhave to worry about is where that file is used, or what other filesare using IT as a reference. Say you have a file that is a part ofmultiple assemblies and you want to move it to a different folder.The easiest way to do this is to use Pack and Go on the file, andyou can choose where to save the file along with all the assembliesthat are referencing it. Make the assemblies save over themselvesin the same folder and just move the part file to where you want tomove it. Then when you are done, delete the part file in the oldfolder (before doing so you might want to double check that nothingis referencing it by looking at its "Where Used" - should benothing).
JA
JA 2008-12-19
I'm learning still but here's how i would do it (probablybetter ways)

1. open the part you want to move.

2. Open all the assemblies that the part is in(explorer tell youthis?).

3. Save as part to the "move to" folder.

4. Rename the old part instead of deleting it so you can undo ifyou mess up.

Probably a problem if it is something in a lot of assemblies, thenI'd have to learn how to use SWE(which I'm working on doing currently)

SF
SF 2009-01-10
I figured out a way to use SolidWorks Explorer to move aSolidWorks file and not lose the references. Still not as clean asa move command would be. Did the old interface have a command tomove, or am i dreaming?

In the "file explorer" area of SolidWorks Explorer right mouse onthe file and "cut". Select the folder you want to move the file toand "paste". Now look at the references of the assembly the movedfile is used in. Right mouse on it and "replace". Now browse forthe file in the new folder.
JC
JC 2009-01-12
The old explorer didn't have a "Move" option either.
SF
SF 2009-01-12

Alan FRedricsen wrote:

 

I need to move multiple files to a new location. How can I dothis
and keep references, and where used etc?

Hi,
first, read the 'Search Routine for Referenced Documents' inSolidWorks help.

Then set correctly Searches path in the File Locations Optionsdialog box and select the Search file locations for externalreferences check box in the External References Options.

At the end, move yours files via Windows Explorer.

Alessandro
JM
JM 2009-03-05

Alessandro Frattini wrote:

 

Alan FRedricsen wrote:

 

I need to move multiple files to a new location. How can I dothis

and keep references, and where used etc?

Hi,

first, read the 'Search Routine for Referenced Documents' inSolidWorks help.



Then set correctly Searches path in the File Locations Optionsdialog box and select the Search file locations for externalreferences check box in the External References Options.



At the end, move yours files via Windows Explorer.



Alessandro

Careful if you use search paths, this will only fixYOUR machine, if someone else opens the files, they will not havethe same search paths unless you change everyones search paths.


DB
DB 2011-01-20

Just a theory that might work: After moving these files and setting up your referenced documents folder so that SW knows where to search when it can't find a part or sub - assembly, run the Task Scheduler, use the 'Update Files' feature to open all these documents automatically (at the end of the day when you go home), essentially finding the referenced documents and updating the drawings and assemblies. When all is said and done the drawings and assemblies should be updated with the current file locations.

EDIT: I tried this out today. I had some drawings that could not find their respective parts and would display X's where the views used to be. I ran 'Update Files' in task manager, and all worked out as expected other than the fact that you still manually have to click on the views in the Feature Tree and RMB and click 'show'.  Any input as to why these views would be hidden after this process?

KL
KL 2011-06-08

SW2011 - SP4EV has finally added the Move function in SW Explorer.

Thank you SolidWorks. 

TD
TD 2019-01-20

i need to change 1000 file to move. how can i move group file to another folder ?

When I want to transfer the file, I need to do this alone. How can I transfer a bunch of files to a folder?

TD
TD 2019-01-20

I need to move multiple files to a new location. How can I do this.

i need to move 1000 file to new location ....

DB
DB 2019-01-20

Hi ,

I haven't tried it myself but maybe #TASK is something that could accomplish this for you?

https://centralinnovation.com/solidworks/extensions/task-by-central-innovation/

Dave.

DM
DM 2019-01-21

depending on location to the files and references there of you may be able to move them.  I would need to see the file structure. 

moving and assembly and all of that assembly in a folder is not a problem.  The problems occur when files are in different locations.

you change one little thing like a space or letter in a folder name and it will not be found.

You may also be able to play around with file locations search paths to see if those will help solidworks find the files that have been moved.

These are some of the things that we learn over time.  where to put files how to organize them, and when we are new we set up some kind of file system that is not made to easily move or change things around.

WT
WT 2019-01-21

If you don't have a data management program like PDMWorks, then you should ALWAYS use SolidWorks Explorer.  You should fine it in the same directory as SolidWorks.  It looks something like this.

  It works a little like Windows Explorer.  First thing you want to do is go into settings and identify which folders you want it to search through.  It should search sub-folders automatically.  You then find your file and right click on it.  You'll get the options of rename, replace or move.  Whichever you select, it will search for and update all external references.

JC