Discussion Groups

Robot Structural Analysis

Reply
Active Contributor
guillaumeniel
Posts: 44
Registered: ‎12-07-2012
Accepted Solution

Robot Open Standard with vb.net and Grasshopper API

491 Views, 7 Replies
12-07-2012 03:30 PM

Hi,

I started to use Robot Open Standard with Grasshopper (Rhino3d).

 

In the Manage Assemblies menu, I loaded the file Interop.RobotOM.dll (I can't use the robot.tlb file because it has to be a .dll file).

 

The problem is that in my vb.net code, I cannot use a syntax like I_PT_FRAME_2D without precising IRobotProjectType. So my code looks like :

 

Robot.Project.New(IRobotProjectType.I_PT_FRAME_2D)

Label = Robot.Project.Structure.Labels.Create(IRobotLabelType.I_LT_SUPPORT, "Support")

 

instead of

 

Robot.Project.New I_PT_FRAME_2D

Label = Robot.Project.Structure.Labels.Create(I_LT_SUPPORT, "Support")

 

It is quite uncomfortable. How can I fix this ?

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,184
Registered: ‎04-26-2010

Re: Robot Open Standard with vb.net and Grasshopper

12-10-2012 01:44 AM in reply to: guillaumeniel

Use import in header

 

Imports RobotOM

 And correct reference:

 

refer.jpg



Rafal Gaweda
Please use plain text.
Active Contributor
guillaumeniel
Posts: 44
Registered: ‎12-07-2012

Re: Robot Open Standard with vb.net and Grasshopper - API

12-12-2012 01:12 PM in reply to: Rafal.Gaweda

Rafal,

I don't understand your answer. In the import header, the syntax already is 'Imports RobotOM'.

The capture you sent does not match with the assemblies manager in Grasshopper. Here is my manager

 

Capture.JPG

 

I have to select a .dll file, and I selected the Interop.robotOM.dll file. I don't understand what correction to do.

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,184
Registered: ‎04-26-2010

Re: Robot Open Standard with vb.net and Grasshopper - API

12-12-2012 11:38 PM in reply to: guillaumeniel

I will do my best but I do not know grasshopper.



Rafal Gaweda
Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,184
Registered: ‎04-26-2010

Re: Robot Open Standard with vb.net and Grasshopper - API

12-13-2012 01:21 AM in reply to: Rafal.Gaweda

Right click on the component in Grasshopper, go to add, then navigate to Interop.RobotOM.dll – example location  is shown below. 

 

gs.jpg

 

In case of further problems please check Private Message



Rafal Gaweda
Please use plain text.
Active Contributor
guillaumeniel
Posts: 44
Registered: ‎12-07-2012

Re: Robot Open Standard with vb.net and Grasshopper - API

12-15-2012 06:57 AM in reply to: Rafal.Gaweda

That is what I did, this does not solve my problem. It is not a big deal, so I'll stop this topic. Could you just send me the last version of the file Interop.RobotOM.dll, maybe it will help ?

I'll also have a discussion with this person.

 

Thanks

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,184
Registered: ‎04-26-2010

Re: Robot Open Standard with vb.net and Grasshopper - API

12-17-2012 12:57 AM in reply to: guillaumeniel

Interop from 2013 version attached



Rafal Gaweda
Please use plain text.
Active Contributor
guillaumeniel
Posts: 44
Registered: ‎12-07-2012

Re: Robot Open Standard with vb.net and Grasshopper - API

12-17-2012 10:01 AM in reply to: Rafal.Gaweda

Thanks.

Please use plain text.