Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

sans PDMWorks - copy project?

Status
Not open for further replies.

brrian

Mechanical
Jan 21, 2004
164
I don't use PDMWorks. I occasionally need to copy an entire project (all parts/assemblies/drawings in a folder) to begin a new design. I know that you can use SW Explorer to copy everything except the drawings; I also know the 'trick' of temporarily renaming the original folder to break the old references. My question is: has anybody written a macro or add-in to automate the process--something that automatically fixes the references? Let me know if so. Thanks,

Brian
 
Replies continue below

Recommended for you

I've done something like that for my company. It's not a very hard process. Basically, call SldWorks.GetDocumentDependencies2 and then go through the list returned by that and call SldWorks.ReplaceReferencedDocument to change the references. I don't have a general purpose macro, but that's what you need. (The one I wrote for my company is pretty specific to how we name and store parts.)

Jonathan Anderson
 
from my experience solidworks explorer automatically relinks references to the copied files; hence the sub folders also being created.
 
That would seem like a hard Macro to write, since after all just about all the time, you are required to manaully point SW back to the correct reference, after they are broken.

Maybe someone has written one and I would love to see it myself.

Regards,



Scott Baugh, CSWP [pc2]
3DVision Technologies

faq731-376
 
purecoda--it does for parts and assemblies, but it doesn't even copy the drawings. So (if I understand correctly) I can copy and paste the drawings over, but the references will be to the original files. I want a single solution that brings EVERYTHING over and fixes all references. Thanks,

Brian
 
i think i was confused by the wording of the original question. if he's asking how to move the drawings associated with the files, that i don't know. sounds to me like an excellent enhancement request.
 
Brian, let me get this straight. You want a macro/program that does the following:
a) pick source and destination directories
b) copy all SolidWorks files (including drawings) from source to destination, including all files in sub folders
c) replace references in the destination directory to match the current (new) location

Is that right? Just trying to get an idea. I could write something like that pretty quickly based on some other stuff I've done.

Jonathan Anderson
 
Jonathan--that's exactly right. The end result should be an exact copy of the original folder (project), but with all references within the new folder (project).

I bet you'd have a lot of interest in such a program--surely there are many others who have a similar need.

Thanks for the reply,

Brian
 
Look into PDMWorks Vault Admin under Projects tab, copy projects in Project commands. This will copy a project to a new folder with new names.

Bradley
 
Remember that I'm not using PDMWorks...
 
brrian,
This could be just the right time to start using PDM Works. Do you have SolidWorks Pro? We have saved so much time (and time is money) using this easy to use software it is unimaginable.


Bradley
 
It's on my list--we own it but don't use it yet. There are a few reasons for us to start using it, but I don't have the time to dedicate to testing it yet.
 
There's a single folder on the network that holds project-specific folders--each project-specific folder holds ALL files for that project.
 
I use SW Explorer to bring over assemblies and parts--SW Explorer will fix those references. Then I have to bring the drawings manually. I rename the original folder then open the drawings--the drawings can't find their original reference so they reattach to the parts in the new folder. I save and close the drawings, then set the old folder name back to what it was.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor