# Add target via AddIn

**URL:** <https://tech-community.robotics.abb.com/t/add-target-via-addin/3056>\
**Category:** RobotStudio\
**Created:** [September 21, 2009, 11:33pm UTC](https://tech-community.robotics.abb.com/t/add-target-via-addin/3056 "2009-09-21T23:33:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![newform](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@newform](https://tech-community.robotics.abb.com/u/newform)\
**Post date:** [September 21, 2009, 11:33pm UTC](https://tech-community.robotics.abb.com/t/add-target-via-addin/3056/1 "2009-09-21T23:33:50Z")

</div>

Dear All,

This is the first time I developed RobotStudio Addin. I cannot find any manual so I just did some trial and error. I want to create work object frame and add robot target to the frame. Right now, I can only get the handle of the station. Can anybody help me?

I am using RobotStudio 12 and C#. Many thanks

---

<div class="post-metadata">

**Author:** ![Henrik\_Berlin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/henrik_berlin/32/1011_2.png) [@Henrik\_Berlin](https://tech-community.robotics.abb.com/u/Henrik_Berlin)\
**Post date:** [September 22, 2009, 9:53am UTC](https://tech-community.robotics.abb.com/t/add-target-via-addin/3056/2 "2009-09-22T09:53:00Z")

</div>

The RS API documentation is available from VSTA, see picture below. There is a good example for how to create targets in the documentation, see second picture. VSTA is convenient to use for small macros and features. From VSTA you can call your Macros from the Event Manager. However, for more advanced functionality you should create a proper add-in.

![](http://forums.robotstudio.com/webwiz/772/RS_API_help.jpg)

![](http://forums.robotstudio.com/webwiz/772/Create_Target.jpg)

---

<div class="post-metadata">

**Author:** ![NFC](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@NFC](https://tech-community.robotics.abb.com/u/NFC)\
**Post date:** [September 22, 2009, 12:20pm UTC](https://tech-community.robotics.abb.com/t/add-target-via-addin/3056/3 "2009-09-22T12:20:43Z")

</div>

Hi there,  
just a curiosity and, of course, a question to Henrik…  
I have RobotStudio 5.12.01 installed.  
RobotStudio API documentation I display is slightly different, maybe not in contents, but in formatting… just take a look at the following screenshot:

![](http://forums.robotstudio.com/webwiz/2970/RobotStudio_API_doc.JPG)

a)Examples are not grouped in categories like in yours (Miscellaneous, Rapid, Robot/Mechanism, etc.);  
b) Language filter, Example link and see also filter are not shown;

Do you know why? Do I have latest docu version?

Thank you, Nils Fredrik.

---

<div class="post-metadata">

**Author:** ![newform](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@newform](https://tech-community.robotics.abb.com/u/newform)\
**Post date:** [September 22, 2009, 2:42pm UTC](https://tech-community.robotics.abb.com/t/add-target-via-addin/3056/4 "2009-09-22T14:42:34Z")

</div>

Hi, Henrik,

Appreciate the information and instruction provided. The API document I found is similar to NFC’s. But it is good enough for me to learn.

Thanks again for your help

---

<div class="post-metadata">

**Author:** ![Henrik\_Berlin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/henrik_berlin/32/1011_2.png) [@Henrik\_Berlin](https://tech-community.robotics.abb.com/u/Henrik_Berlin)\
**Post date:** [September 22, 2009, 3:00pm UTC](https://tech-community.robotics.abb.com/t/add-target-via-addin/3056/5 "2009-09-22T15:00:16Z")

</div>

The reason that your documentation looks different from my snapshot above is that it is taken from a pre-release version of 5.12.02. The content is the same though. RobotStudio 5.12.02 will be available in October.

---

<div class="post-metadata">

**Author:** ![sugumar\_venkatesan](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@sugumar\_venkatesan](https://tech-community.robotics.abb.com/u/sugumar_venkatesan)\
**Post date:** [May 6, 2024, 7:58am UTC](https://tech-community.robotics.abb.com/t/add-target-via-addin/3056/6 "2024-05-06T07:58:11Z")

</div>

> [@newform](#):
>
> Dear All,
> 
> This is the first time I developed RobotStudio Addin. I cannot find any manual so I just did some trial and error. I want to create work object frame and add robot target to the frame. Right now, I can only get the handle of the station. Can anybody help me?
> 
> I am using RobotStudio 12 and C#. Many thanks

Hi,

I am trying to access the active station of robot studio using c# but i am getting API initiation error.  
but i have added the required namepace and everything.

could you please support me with this if you have any suggestion for this.

Thanks,  
Sugumar V
