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
Solved! Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
Sorry But How To Do That Exactly. i want to retireve an IRobotApplication Interface Object to work with from the running application instance.
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
Robot.robApp = new RobotApplication(); if (Robot.robApp.Visible == 0) { MessageBox.Show("Open Robot","Error"); this.Close(); return; }
Can't find what you're looking for? Ask the community or share your knowledge.