Virtual component heads up

SW2009 SP1.0 Windows XP.

I've been working on a small home project involving a lot ofdimensional lumber. I have taken advantage of virtual components tokeep most of the parts in one file.

Suddenly, sometime between yesterday and today, all the virtualcomponents went missing. When I loaded the assembly, they were allgreyed out as if suppressed. If I tried to unsuppress a component,an error message appeared saying that it couldn't find the file. Itwas looking for these files in the 'swx5900/name_of_my_assembly'directory in my Temp directory, which seems a bit odd, since theyare supposed to be inside the assembly.

Looking through the various swxXXX directories, they were full ofcopies of the virtual components. I copied the files from theswxXXXX folder with the highest value for XXXX into the swx5900,and all was (mostly) well again.

I'm not sure what set it off, but hopefully this post will keepsomeone from having to remodel their entire assembly if it happensto him/her.

SolidworksAssemblies
Comments 10
SF
SF 2009-01-12
I used to run into this problem all the time in my early SWdays. It is good practice to avoid virtual components altogether.Make it a habit of creating a folder, then saving EVERY single partand assembly in that folder! Try to have a Save-as-you-build mindset.

-Ben
SF
SF 2009-01-20
I've been having similar problems, & while I appreciateBen Heath sharing his input, "...avoid virtual componentsaltogether" just doesn't cut it. Why is the feature in the softwareif it doesn't work?? Can someone from Daussalt comment onthis?
SF
SF 2009-01-20
My question is, why are virtual components saved in a Tempfolder knowing that users are encouraged to clean out Temp folders?

I used virtual components one time to detail an assembly (before Iwas aware of this issue), sometime since then I cleaned out my Tempfolders, now without warning all my virtual components aremissing.
SF
SF 2009-01-20
I have watched this discussion, but I can't prove it. I did atest. Created an assy and created a virtual part in that assy.Close out SW, and the cleaned out my temp folders. Open SW and thatpart is still there where it was in the assy. Must be somethingelse going on that we haven't found yet.

WT
SF
SF 2009-01-20
Wonder if they changed something, it would have been earlySW2008 that I tried it. I'll have to revisit the issue.
SF
SF 2009-01-20
We are currently using 2008 sp4.0, and just started to usethe virtual part function in a multi-user environment a few weeksback. We have had no issues with parts disappearing. We can evenrestructure the assembly feature tree by dragging and dropping thevirtual parts into sub-assemblies. They cannot be in a local tempdirectory, because we have been successful using the virtual partfor one person at one station to do the design, and a second personat a different station to open the sub-assembly, find the virtualcomponent, create the external file, then make a drawing. My guessis there has been some improvement through the service packs of2008.
CC
CC 2009-01-20
Virtual Components work, and they do use the tempdirectories. When you save the files, they are saved within theassembly. When you open the file, it pulls the information from theassembly file, and creates a temporary virtual component in thetemp directory. Then when you close out of the assembly, it shoulddelete the files in the temp directory. I would imagine that if youstill have lingering files in your temp directory, it is becauseSolidworks is either crashing, or not closing properly.

I have been using virtual components will great success, ever sincethey fixed a few bugs in one of the 2008 service packs. I must alsonote that one of my coworkers used VCs to create his assembly. Heworked on the assembly on his local machine (we do not have PDM),and then a couple weeks ago moved it over to the server using "packand go". He then tried to reopen the files on the server, only tofind that the VCs were missing. We tried to troubleshoot theproblem, but came up blank. So I can't guarantee that they work asthey should, as he did have problems.
SF
SF 2009-01-20
Although in the past (SW2008) I have had problems withvirtual components they give me no problem at all currently. I readthis thread and then realised they are 'fixed'. Lately I have beenworking on an assembly here at the office then at the days endcopying the folder to a USB key then copying the folder to my homePC to continue working (sad). Then doing the reverse, copying thefolders back to USB key. Each time creating new virtual partswithin the assemblies and on no occasion so far have I lost any VCparts. Definitely fixed as far as I can tell!
(chuffed)
JA
JA 2010-05-06

I'm revisiting this, because I remember people saying that VC are fully contained within the assembly file.  Well parts started disappearign for me, then I realized I had set up the solidworks task scheduler to delete the temp files every week.  Well who knows how many parts I lost because of this before I disable the temp files delete scheduler task.

I bring this up now months later because it is still biting me, can't find some part files on my hard drive which I do all of my work on.  Quite annoying to say the least.

SF
SF 2010-05-06

Is this to say that if a person creates a virtual part and then any time in the future cleans up all the temp files, that virtual part is gone?  What happens if you send that assy to someone else - does that virtual part then get stuffed into the assy file? What if you move that assy file to another machine?

  WT