Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

what is the robot prog-id

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
minamaher20
483 Views, 6 Replies

what is the robot prog-id

I want to capture a running instance of robot structure analysis (specefically the one created by revit "send model to robot analysis") i did some research and i found that revit create an instance of IRobotApplication in the Running Objects Table (ROT) and that i should use :

 

system.runtime.interopservices.marshal.getactiveobject("Prog-ID")

 

now the problem is i can't find the prog id for IRobotApplication there is only a CLSID which cannot be used

 

I Don't Need The Prog-ID It Self I Need A Way To Capture A Running Instance Of ROBOT Application

6 REPLIES 6
Message 2 of 7
Rafal.Gaweda
in reply to: minamaher20

Just attach to running robot.exe.
Only one robot \ robot .exe should be running in case of using API, otherwise you may get unwanted effects.


Rafal Gaweda
Message 3 of 7
minamaher20
in reply to: Rafal.Gaweda

Sorry But How To Do That Exactly. i want to retireve an IRobotApplication Interface Object to work with from the running application instance.

Message 4 of 7
Rafal.Gaweda
in reply to: minamaher20

This ?

 

Dim RobApp As RobotApplication
Set RobApp = New RobotApplication

If Not RobApp.Visible Then
    Set RobApp = Nothing
    MsgBox "Open Robot", vbOKOnly, "ERROR"
    Exit Sub
End If

 



Rafal Gaweda
Message 5 of 7
minamaher20
in reply to: Rafal.Gaweda

In C#, please ??

Message 6 of 7
Rafal.Gaweda
in reply to: minamaher20

            Robot.robApp = new RobotApplication();
            if (Robot.robApp.Visible == 0)
            {

                MessageBox.Show("Open Robot","Error");
                this.Close();
                return;
            }

 



Rafal Gaweda
Message 7 of 7
minamaher20
in reply to: Rafal.Gaweda

Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report