Mirror
Options
Thomas J
✭
How do you mirror an entity or part thru VBA - API?
Thomas H. Johnston
PACs Application Engineer
PACs Application Engineer
0
Comments
-
Hello Thomas,
There is a function in RobotStudio called mirror (you find it in the Modify menu); one way to call it could be to run the following macro from RobotStudio (will not work to run from inside VBA).
Sub Mirror()
Dim tfmTransform As New Transform
tfmTransform.x = 2.5
tfmTransform.y = 2.5
Dim prtPart As Part
Set prtPart = ActiveStation.Parts.Add
Dim entBox As Entity
Set entBox = prtPart.CreateSolidBox(tfmTransform, 0.5, 0.5, 0.5)
ActiveStation.Selections.RemoveAll
ActiveStation.Selections.Add entBox
Application.RSE.CommandBars("Menu Bar").Controls("Modify").Controls("Mirror...").Execute
SendKeys "100{TAB}100{TAB}{TAB}1000{TAB}1000{TAB}{TAB}{TAB}{TAB}1000{ENTER}"
End Sub
Good luck!
/UlrikaUlrika Mor?n37952,56615740740
Categories
- All Categories
- 5.4K RobotStudio
- 383 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 734 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings