Connection with robot structural through API

Connection with robot structural through API

dawid.deptula
Contributor Contributor
402 Views
5 Replies
Message 1 of 6

Connection with robot structural through API

dawid.deptula
Contributor
Contributor

I create addin in Autocad. I want to connect with Robot Application, which is currently opened and have some bars selected. How to create connection with already opened application?

0 Likes
403 Views
5 Replies
Replies (5)
Message 2 of 6

Stephane.kapetanovic
Mentor
Mentor

hi @dawid.deptula 

Using Excel, after adding the library as a reference in the VBA editor the code starts like this

Dim RobApp As IRobotApplication
Set RobApp = New RobotApplication

to see example of addins

https://forums.autodesk.com/t5/robot-structural-analysis-forum/useful-addins-for-robot-api/td-p/3899...

Best regards

 

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
EESignature
0 Likes
Message 3 of 6

dawid.deptula
Contributor
Contributor

Unfortunatelly, when I run Robot File, next autocad with adding and try your solution, my program doesn't see active Robot software. I check Project.Visible parameter and it is 0 value.

0 Likes
Message 4 of 6

Stephane.kapetanovic
Mentor
Mentor

hi @dawid.deptula 

did you try to reboot ?

 

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
EESignature
0 Likes
Message 5 of 6

dawid.deptula
Contributor
Contributor
I don't understand. What you want to reboot?
0 Likes
Message 6 of 6

Stephane.kapetanovic
Mentor
Mentor

your computer. after using several connections without sucess it can be done to clear all instances 

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
EESignature
0 Likes