Grasshopper

algorithmic modeling for Rhino

How to gain access to the RhinoScript object from Visual Basic

Hi,everybody!

I want to create exe project with VB to edit rhinodoc,but i can not find the way to gain access to the RhinoScript object.I have tried

"Dim RhinoScript as Object

Set RhinoScript = Rhino.GetScriptObject()"

but it does not work.

can anybody help me

 

Views: 1267

Replies to This Discussion

Hi CY,

you're mixing VB.NET and VBScript syntax there.

The new SDK (RhinoCommon) that is used in Grasshopper 0.7 and later should have a much better overlap with RhinoScript functions. What functions are you trying to run and why do you want to access RhinoScript from within a compiled project?

--
David Rutten
david@mcneel.com
Seattle, WA
I just want to edit a rhino document without open it
How do you want to edit it? It's not very easy to change a 3dm file without using Rhino to access it. Certainly not in a VBScript.

I'm sorry I'm asking all these questions, but it seems you want to accomplish something very difficult or even impossible and I have no idea why. I'm hoping there's a better way to achieve what you need.

--
David Rutten
david@mcneel.com
Seattle, WA

Hi, David

I have some similar problems as it mentioned, I would like to access rhinoscript with VBA. 

For example, I have a rhinoscript already, called "scale.rvb",which can scale a object in rhino.

At this moment, I can access rhino by VBA in excel, but how can I connect to "scale.rvb" or run it click a command button in userform? 

And is it possible to pass the variables or numbers in userform to rhinoscript?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service