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 ?
Solved! Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
Use import in header
Imports RobotOM
And correct reference:
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
I have to select a .dll file, and I selected the Interop.robotOM.dll file. I don't understand what correction to do.
Right click on the component in Grasshopper, go to add, then navigate to Interop.RobotOM.dll – example location is shown below.
In case of further problems please check Private Message
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
Can't find what you're looking for? Ask the community or share your knowledge.