Components.Add + rotate

Components.Add + rotate

Anonymous
Not applicable
334 Views
1 Reply
Message 1 of 2

Components.Add + rotate

Anonymous
Not applicable

I can get the Components.Add command to bring in parts, but how on Earth do I set the rotation of them?

I've been doing it the really long matrix way in the past but I hoped this would be quicker. 

0 Likes
335 Views
1 Reply
Reply (1)
Message 2 of 2

tobias.orlow
Alumni
Alumni

Hi @Anonymous ,

 

one thing you could give a try is executing the commands from the radial menu by calling them explicitly (names below).

 

"AssemblyPlaceCompRotateX90Cmd" Rotate X 90°
"AssemblyPlaceCompRotateY90Cmd" Rotate Y 90°
"AssemblyPlaceCompRotateZ90Cmd" Rotate Z 90°

 

Please refer to the following article for how to run commands via API:

https://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html

 

Please let me know if this works for you, I will also do some testing on my end.

 

Thank you!

Tobias

Tobias Orlow
Designated Support Specialist
Customer Success Organization
Linkedin: www.linkedin.com/in/tobiasorlow/
0 Likes