# WZBoxDef - Define a box-shaped world zone

**URL:** <https://tech-community.robotics.abb.com/t/wzboxdef-define-a-box-shaped-world-zone/3336>\
**Category:** RobotStudio\
**Created:** [February 3, 2010, 2:27am UTC](https://tech-community.robotics.abb.com/t/wzboxdef-define-a-box-shaped-world-zone/3336 "2010-02-03T02:27:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacekbranka](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jacekbranka](https://tech-community.robotics.abb.com/u/jacekbranka)\
**Post date:** [February 3, 2010, 2:27am UTC](https://tech-community.robotics.abb.com/t/wzboxdef-define-a-box-shaped-world-zone/3336/1 "2010-02-03T02:27:33Z")

</div>

I cannot create Safe Box Zone. Im doing like in example :

VAR shapedata SafeBox;  
CONST pos P\_Corner1:=[200,100,100];  
CONST pos P\_Corner2:=[600,400,400];

LOCAL PROC Declaration()

WZBoxDef Inside,SafeBox,P\_Corner1,P\_Corner2;  
WZDOSetTemp,WorldZoneInside,SafeBox,dq\_SafeWarning,1;

ENDPROC

The error that i got is " Reference to unknown procedure WzBoxDef. Why rapid see WzBoxDef as a procedure?  
\< id=“gwProxy” =“”\>\< =“jsCall;” id=“jsProxy” =“”\>

---

<div class="post-metadata">

**Author:** ![Hunke](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@Hunke](https://tech-community.robotics.abb.com/u/Hunke)\
**Post date:** [February 3, 2010, 7:52am UTC](https://tech-community.robotics.abb.com/t/wzboxdef-define-a-box-shaped-world-zone/3336/2 "2010-02-03T07:52:11Z")

</div>

Do you have World Zones installed on that robot?

---

<div class="post-metadata">

**Author:** ![jacekbranka](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jacekbranka](https://tech-community.robotics.abb.com/u/jacekbranka)\
**Post date:** [February 3, 2010, 11:26am UTC](https://tech-community.robotics.abb.com/t/wzboxdef-define-a-box-shaped-world-zone/3336/3 "2010-02-03T11:26:11Z")

</div>

Im not sure what you mean by installed world zones?\< id=“gwProxy” =“”\>\< =“jsCall;” id=“jsProxy” =“”\>

---

<div class="post-metadata">

**Author:** ![PerSvensson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/persvensson/32/1040_2.png) [@PerSvensson](https://tech-community.robotics.abb.com/u/PerSvensson)\
**Post date:** [February 3, 2010, 11:31am UTC](https://tech-community.robotics.abb.com/t/wzboxdef-define-a-box-shaped-world-zone/3336/4 "2010-02-03T11:31:55Z")

</div>

World zones is an option that doesn’t come by default. For a virtual controller you need to add it in system builder and for a real controller you need to buy it.

---

<div class="post-metadata">

**Author:** ![jacekbranka](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jacekbranka](https://tech-community.robotics.abb.com/u/jacekbranka)\
**Post date:** [February 4, 2010, 2:09am UTC](https://tech-community.robotics.abb.com/t/wzboxdef-define-a-box-shaped-world-zone/3336/5 "2010-02-04T02:09:10Z")

</div>

Ok thank you so much for your advise guys, i didn’t know that this is another option 🙂 \< id=“gwProxy” =“”\>\< =“jsCall;” id=“jsProxy” =“”\>
