How do I measue angles between faces in a rule? I want to create a simple if statment depending on the angle between a rotating object and a grounded object. If a certain face of the rotating object is 180 degrees relative a face on the fixated object the rotating object is supposed to rotate around its own axis.
I've seen the Measure.Angle-function but I can't get it to work.
Does it have to be a dimension? are you in an assembly?
Yes, it´s in an assembly.
Well i I just want the rule to measue the angle between the two faces (two different parts) each time the rule iterates to determine the state of the rotating object. As I mentioned before, the rotating objects' angle relative the ground is supposed to be determined depending on the angle between two faces.
How are you controlling the angle?
It is constrained on another object which is rotating and the rotating movement is controlled with an angle parameter.
I simply want a rule to measure an angle between two faces on its own to launch different actions depending on that angle.
Just have the rule read the parameter not a dimension..
That´s what I've been doing but I realized that it's not a good way to go. I'm driving the constraint (parameter) now to make the movements the way I want them to be, but later on when I'm going to do simulations the parameter is not going to be the reason the object is rotating. But if i manage to measure the angle between the objects within the code I will be able to determine its position. Do you know if it's possible to do that?
Access a broad range of knowledge to help get the most out of your products and services.