Inventor General Discussion

Reply
Active Member
eric.vinjegaard
Posts: 7
Registered: ‎11-25-2012
Message 1 of 7 (430 Views)

Coding in Inventor (iLogic) - Measure an angle

430 Views, 6 Replies
12-13-2012 11:11 AM

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.

 

Thanks!

*Pro
jletcher
Posts: 1,946
Registered: ‎05-18-2011
Message 2 of 7 (426 Views)

Re: Coding in Inventor (iLogic) - Measure an angle

12-13-2012 11:31 AM in reply to: eric.vinjegaard

Does it have to be a dimension? are you in an assembly?


Please mark this response as "Accept as Solution" if it answers your question.

James Letcher
2012 Factory Design Suite ( will not load 2013)
What happen to my Inventor :-(
Active Member
eric.vinjegaard
Posts: 7
Registered: ‎11-25-2012
Message 3 of 7 (422 Views)

Re: Coding in Inventor (iLogic) - Measure an angle

12-13-2012 11:40 AM in reply to: jletcher

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. 

*Pro
jletcher
Posts: 1,946
Registered: ‎05-18-2011
Message 4 of 7 (420 Views)

Re: Coding in Inventor (iLogic) - Measure an angle

12-13-2012 11:43 AM in reply to: eric.vinjegaard

How are you controlling the angle?


Please mark this response as "Accept as Solution" if it answers your question.

James Letcher
2012 Factory Design Suite ( will not load 2013)
What happen to my Inventor :-(
Active Member
eric.vinjegaard
Posts: 7
Registered: ‎11-25-2012
Message 5 of 7 (416 Views)

Re: Coding in Inventor (iLogic) - Measure an angle

12-13-2012 11:53 AM in reply to: jletcher

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. 

*Pro
jletcher
Posts: 1,946
Registered: ‎05-18-2011
Message 6 of 7 (413 Views)

Re: Coding in Inventor (iLogic) - Measure an angle

12-13-2012 11:54 AM in reply to: eric.vinjegaard

Just have the rule read the parameter not a dimension..


Please mark this response as "Accept as Solution" if it answers your question.

James Letcher
2012 Factory Design Suite ( will not load 2013)
What happen to my Inventor :-(
Active Member
eric.vinjegaard
Posts: 7
Registered: ‎11-25-2012
Message 7 of 7 (407 Views)

Re: Coding in Inventor (iLogic) - Measure an angle

12-13-2012 12:04 PM in reply to: jletcher

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? 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube