How do I rotate (and place) components using a script?

How do I rotate (and place) components using a script?

user9421445
Explorer Explorer
500 Views
2 Replies
Message 1 of 3

How do I rotate (and place) components using a script?

user9421445
Explorer
Explorer

Hi there,

after trying and searching for quiet a while im not able to figure out how to place components at specific coordinates including a rotation via a script/command on a pcb.

Background: I want to place a bunch of objects in the right place using a script. The exact locations are calculated using an excel sheet (not the best way, but it works - lol).

Using the MOVE command im able to move them to the right x,y but im probably not smart enough to rotate them.

 

Has anyone faced the same problem and found a solution?

 

Im grateful for any help, maybe im just missing the right syntax.

0 Likes
Accepted solutions (1)
501 Views
2 Replies
Replies (2)
Message 2 of 3

jorge_garcia
Autodesk
Autodesk
Accepted solution

Hi @user9421445,

 

I hope you're doing well. In addition to the MOVE you can add a line to the script that says

ROTATE =MR(degrees_of_rotation) 'RefDes_of_Component_to_Rotate'

 

That's all you have to do.

 

Let me know if there's anything else I can do for you.

 

Best Regards,



Jorge Garcia
​Product Support Specialist for Fusion 360 and EAGLE

Kudos are much appreciated if the information I have shared is helpful to you and/or others.

Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
Message 3 of 3

user9421445
Explorer
Explorer

Thanks!

0 Likes