I've been modeling some robotic systems with a number of parts, and assemblies. I'm using flexible assemblies to allow motion of subsystems. I am modeling a series of motions driven by motors whose motion functions are defined by segments. When playing back an animation everything seems fine. When it recalculates things get whonky:it seems that the constraints get confused. Or, If i try to just save the animation without recalculating, things show up fine, but when it saves the animation the parts start to dance around. I'm trying to render the files. So i've tried rendering as frames, but the later frames get all messed up as well. Everything was working fine until it seems I reached a limit of about 12 different segmented motions, from this point on it seems the complexity starts confusing things. i'm not switching over to trying to do the animation in Blender, but that's really a pain to use as well, partcularly for someone used to working with a feature heirarchy/history - also it's not really helpful since anytime i change my models i'll have to rexport and rebuild the animations all over again - not so helpful.
the behavior seems somewhat similar to this posting: https://forum.solidworks.com/message/266718#266718
any ideas? I'm assuming it has something to do with the flexible assemblies. but rebuilding the system based on how to animate it does not make sense; i prefer my assemblies to be driven off of how they are to be assembled and operating.
thanks for any ideas.
(Win8, SW2013 SP3, running on an i7-4820K, 32gb ram, nvidia quadro k4000. I also tried on my laptop w530, win8.1, SW2013 SP0, i7-3840QM 24gb ram, quadro K1000M)
SolidworksMotion Studies
Its difficult to know whats wrong without actually looking at the files. Not much help I know
My rule of thumb for setting up animations is this. Keep them as simple as possible. That doesn't mean they can't look complex, that means give SW very minimal things to solve to create the animation. This typically involves building an animation specific assembly. The assembly model you use for engineering and the assembly model you'd create for an animation typically in my experience are set up completely different.
One of the things you never want to do is use flexible sub assemblies, it always leads to disaster, rework and frustration. At least it has for me. All moving "things" should be mated/constrained at the top level assembly. That doesn't mean you can't use subassemblies. That means any parts/subassemblies or parts within sub assemblies that have to move should be placed at and mated at the top level assembly. Its the only way Motion is reliable for animation work.
I know its not what you wanted to hear but after creating lots of animations I've learned it really is reality.
matt, highly doubt this is the cause but have you tried any supported solidworks + os combos. both of yours are currently unsupported. i'd also recommend trying latest version and service pack.
i'll second rob's suggestion about flexible subs. it makes your assy cleaner but will make motion problematic.
maybe i should be able to pull this out of your comments but are you just using animation or are you using solidworks motion? it sounds like you can get away with animation in this case and as such the flexible subs will be less of an issue than if you need to do something with motion sim.
the other part i'm a bit lost about is the workflow (or i think workflows) that are causing the problem. it sounds like you have 2 problems? one is when you recalculate everything goes bad. the second is when you render it goes bad? i think if you could split up the 2 workflows for troubleshooting that might be helpful because they may not be related.
alos you probalby can't share the files but a jing or similar that shows what you're seeing might be helpful
you're correct, unfortunately, I cannot share the files.
Also, I was a little worried about using win8 with sw2013 (for some reason I thought 2014 wasn't going to support win7, maybe I confused with winxp), but it looks like the desktop setup should be supported. also, it looks like my desktop is actually running SP4, so it wasn't that far off. I actually did this work early October and I am now revisiting it. I don't see anything in the SP5 updates that seem to address animation or photoworks. (Actually, I'm only just now really trying it with the laptop. Win8.1 and SW2013 are not getting along well at all, wow. so strike that one for sure.)
I'm afraid you are both probably correct about the flexible subassemblies. I was a bit concerned about that, but it seemed so convenient. What I'm concerned about is putting in the time to rebuild the assemblies and finding the same problem. It looks like that may be the correct solution though.
Just to clarify workflow:
I'm using "animation". When I press the play button everything looks fine on the screen. When I go to save the animation out as a file things start to get whonky. I then began trying different things to try to identify the problem, starting from a restarted SW and fresh load of the file:
- Pressing the "recalculate button" causes the shimmies. From then on all motions are messed up, until i restart sw.
- Trying to use "basic motion" or "motion analysis" causes things to get really funky real fast.
So i guess all of that leads to a mate discrepancy. I usually try to be pretty good about such things, but there are a lot of things that can move in this assembly so it seems that the degrees of freedom that the motors are attached to are not being held constrained as I thought the motor would hold it since its motions are specified throught the entire time frame.
Is it really that flexible is just too confusing for the solver?
I wanted to find a parts count for you but I'm currently working with the laptop win8.1+SW2013 surprisingly unhappy combo. Animated parts are only on the order of about 10 pieces moving. It is located by a giant lattice structure that has hundreds of parts but that are statically located. So you see the concern of maybe things just wont work, i'll probably give it another shot when i get back into the office.
thanks for your help.
hi matt, right now the best suggestion i can make is to stick with animation. the other 2 will probably cause you more troubles than you have.
I think you're seeing it when you save out the frames because when that happens SW is calculating or recalculating the animation, same as pushing the recalculate button. My guess is its the same issue causing the problem in either scenerio, saving the frames or hitting recalculate.
Doesn't sound like your assembly is too complex, movement wise. 10 moving parts doesn't sound bad. Even if you have hundreds of other parts they are static so that should be fine. I have a grain/seed spreader model here I did some animation with. It has 1000's of parts but the actual movement is pretty simple. Things lowering, swinging, lowering and swinging. The movement is fairly simple even though it looks complex on screen. SW/PV handled this without issues. I did have to rebuild the assembly and some sub assemblies to be animation specific though. It's more "up front" time but it pays off in the end.
Okay, so i'm buckling down and rebuilding the assembly with all moving parts in the main assembly.
Am I correct to assume motors are the prefered method for setting up motions? Previously I was using segmented motion paths. Right now it seems to me to be best to build up a CSV of the displacements and times and import that into each of the motors. It seems like this will be a little easier than going back and updating the time stamps for each motor? Is there anything else you might recommend for setting up stable motion profiles for rendering? I'm by no means new to SW, but I am fairly new to animations and rendering with sw.
It really depends on what you're trying to animate as to what's the best way to "drive" things. I tend to stick mates to do the driving. I like motors for things that need to rotate at speed and start and stop ehile doing it. But, everyone finds their own ways of making things work.
Not sure it will be a huge help without the dialog to back it up but I've attached a presentation I did a couple years ago at SW World. which covers some tips on settings up animations or rendered animations. I'm doing something similar this year as well. Some of the animations referenced in the PDF can be seen here http://www.axiscadsolutions.com/portfolio/videos/
when you rebuild the assy put a little as you can at the assembly level to limit the number of mates...etc
motors should be fine, if you need to you can make them turn on and off when you need them rather than with a curve, but i find curves easier than keys