- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Sirs,
Good morning.
I want to rotate a CAD model in PowerMill along the Z-axis. Normally we will click on Model->Transform->Rotate Z ->90. And this is the result I got:
Normally, after we click the 'Rotate Z' button, a pop out window will appear and ask for angle input:
And this is the macro to do this rotation operation:
When I run this macro file using the 'Run' button in PowerMill, this operation finished automatically without the need to input "90" in the pop out window.
However, when I tried to use PowerMill API (in C#) to execute this macro file, the pop out window appeared and asking me to input the angle. In the PowerMill API, I used the RunMacro method and specify the macro file path as an input.
Here is my question. How can we rotate a CAD model using PowerMill API RunMacro method, and make sure that the pop out window will not come out, and execute the macro just like normal, without the need to enter angle into that pop out window?
Thanks.
Regards,
Maan Tarng
Solved! Go to Solution.