@Anonymous wrote:
Sometimes, but not all the time, when I slide down to zero and then to a negative number, the part will run in the negative angle and them jump back to positive, even though the variable, as defined by the slider, continues toward a lower number. It's as though the slider defined variable is an absolute number.
Hi Cadeavis,
I've had this happen as well, there are at least 3 reasons that come to mind
- a parameter driving an angle constraint based on another angle constraint ("stacked angles"
- a parameter driving an angle constraint that does not use the explicit reference option
- a parameter driving a sketch line that goes to zero, and then flips the wrong direction when it is set to something other than zero
For issue 3:
Work planes have a positive and negative direction and so if I have to drive a parameter that is based on a sketch for instance I first create an offset work plane, then project it as a sketch line, then I can drive the work plane offset parameter to drive the sketch, without worrying about the parameter solving in the wrong direction when it is set back to zero, and then set to something else.
For issue 2, simply always use the explicit reference option
For issue 1, I use work planes to define the angle and drive that parameter, and then use mates or flushes to constraints to those parts, rather than adding an angle constraint between the part and the work plane, that way I'm not "stacking" angles to be solved on each other.
However, I have had a couple of models involving lofted surfaces that I could not get work planes/axes/points to solve predictably when driving the parameters around 360 degrees, as it would flip on me at 0 and 180. I don't recall the exact solution now, but I think I had to create a sketched line in the part model and extrude it as a planar surface, and use that as a "work plane" ... or something along those lines.
Anyway, I might be getting off into the weeds with all of that, but my point is that I think work planes are the best way to create your "custom zeros". If those planes have to be based off of other parts, no worries that works fine also. In the images below I created the work plane based off of the red part. In the first image I wanted zero to be vertical so I used the end face of the red part, in the 2nd image I wanted zero to be horizontal so I used the top face of the red part to create the work plane.
The other "messier" approach I've encountered to creating a "custom zero" is to create a user parameter to use in the form, and have a rule do the math to account for the odd start angle. Meaning that if I had a joint that had a "home" value of 45 degrees, I'd create a custom parameter to drive the user form, and have a rule add or subtract 45 degrees from the custom parameter and then set that value to the joint parameter.
If you can post your model I'll take a look and see if I can determine something specific.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

