# How to do "WZBoxDef" when the box is not parallel with wobj0?

**URL:** <https://tech-community.robotics.abb.com/t/how-to-do-wzboxdef-when-the-box-is-not-parallel-with-wobj0/10912>\
**Category:** RAPID Programming\
**Tags:** robotstudio, rapid, worldzones, world-zone\
**Created:** [October 19, 2022, 3:02pm UTC](https://tech-community.robotics.abb.com/t/how-to-do-wzboxdef-when-the-box-is-not-parallel-with-wobj0/10912 "2022-10-19T15:02:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoboRuben](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@RoboRuben](https://tech-community.robotics.abb.com/u/RoboRuben)\
**Post date:** [October 19, 2022, 3:02pm UTC](https://tech-community.robotics.abb.com/t/how-to-do-wzboxdef-when-the-box-is-not-parallel-with-wobj0/10912/1 "2022-10-19T15:02:48Z")

</div>

Hi,  
I need to define a box worldzone (WZBoxDef), but the robot (wobj0) is not parallel with the box to be defined.

How do I fix that?

---

<div class="post-metadata">

**Author:** ![Newman](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/newman/32/2900_2.png) [@Newman](https://tech-community.robotics.abb.com/u/Newman)\
**Post date:** [October 20, 2022, 6:30pm UTC](https://tech-community.robotics.abb.com/t/how-to-do-wzboxdef-when-the-box-is-not-parallel-with-wobj0/10912/2 "2022-10-20T18:30:18Z")

</div>

As far as I know there is no fix for that. I would comsider:

1. If you have safemove you can set signals in these zones.
2. use wz sphear
3. align your wobj0 with the thing you want to box.

---

<div class="post-metadata">

**Author:** ![EricH](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@EricH](https://tech-community.robotics.abb.com/u/EricH)\
**Post date:** [October 24, 2022, 8:22am UTC](https://tech-community.robotics.abb.com/t/how-to-do-wzboxdef-when-the-box-is-not-parallel-with-wobj0/10912/3 "2022-10-24T08:22:05Z")

</div>

You could write your own function in a background task as a workaround.
