# API: Active speed & zone information

**URL:** <https://tech-community.robotics.abb.com/t/api-active-speed-zone-information/3573>\
**Category:** RobotStudio\
**Created:** [May 10, 2010, 3:31pm UTC](https://tech-community.robotics.abb.com/t/api-active-speed-zone-information/3573 "2010-05-10T15:31:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohannesW](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@JohannesW](https://tech-community.robotics.abb.com/u/JohannesW)\
**Post date:** [May 10, 2010, 3:31pm UTC](https://tech-community.robotics.abb.com/t/api-active-speed-zone-information/3573/1 "2010-05-10T15:31:11Z")

</div>

Hello,

I would like to access the active speed and the active zone (shown at the picture below) using the RS-API.

![](http://forums.robotstudio.com/webwiz/3414/get_speed_zone_data2.gif)

I tried to get these information from the ActiveProcessTemplate, but this object only contains information about the motiontype.

```auto

RsProcessTemplate proctemp = station.ActiveTask.ActiveProcessDefinition.ActiveProcessTemplate;

```

How can i get the information about the currently selected speed and zone?

---

<div class="post-metadata">

**Author:** ![Niklas\_Skoglund](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@Niklas\_Skoglund](https://tech-community.robotics.abb.com/u/Niklas_Skoglund)\
**Post date:** [May 11, 2010, 5:38pm UTC](https://tech-community.robotics.abb.com/t/api-active-speed-zone-information/3573/2 "2010-05-11T17:38:06Z")

</div>

Hi Johannes,

you can use the active process template to access the instruction template for the motion type you like.

````auto

```
public RsInstructionTemplate GetTemplate(
	MotionType motionType
)
```

````

If you pass in MotionType.Linear to GetTemplate() you can access the template arguments.  
There is an example in the API documentation for RsInstructionTemplate that shows how to access the arguments and their values.

---

<div class="post-metadata">

**Author:** ![JohannesW](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@JohannesW](https://tech-community.robotics.abb.com/u/JohannesW)\
**Post date:** [May 12, 2010, 9:07am UTC](https://tech-community.robotics.abb.com/t/api-active-speed-zone-information/3573/3 "2010-05-12T09:07:09Z")

</div>

Hi,

thats the method I need.

But I noticed an apparently wrong description of the GetTemplate() method.  
As shown in the following screenshot the description says:  
“Gets the RsProcessTemplate corresponding…”  
I think it should be:  
“Gets the RsInstructionTemplate corresponding…”

![](http://forums.robotstudio.com/webwiz/3414/API-Bug_RSProcessTemplate.GetTemplate.gif)

---

<div class="post-metadata">

**Author:** ![Niklas\_Skoglund](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@Niklas\_Skoglund](https://tech-community.robotics.abb.com/u/Niklas_Skoglund)\
**Post date:** [May 17, 2010, 1:16pm UTC](https://tech-community.robotics.abb.com/t/api-active-speed-zone-information/3573/4 "2010-05-17T13:16:20Z")

</div>

Hi Johannes,

you are right, there is a type in the documentation. It will be fixed in RobotStudio 5.13.01.  
Thanks.
