Forgot password?

Create an account!

Forum

« back

RhinoScript – Accessing Rhino with Excel

Messages

Please log in to write a message.

  • 4. Ammonite (Apr 17, 2012 15.27):

    Rhino developer's guide mensioned this and gives solutions:
    wiki.mcneel.com/developer/automation

  • 3. DupontGeorges4 (Dec 28, 2011 10.07):

    Hello Hanno,

    I thank you very much for your awnser. I found an article about this evolution from Rhino 3.0 to Rhino 4.0. It seams that in Rhino 3.0, there was no function to call explicitly a new instance of Rhino. Thats why Rhino4.Interface replaces Rhino3.Application. And Rhino4.Application calls explicitly a new instance.

    Link : wiki.mcneel.com/developer/automation

    Thank you again,

    Georges

  • 2. Hanno (Dec 27, 2011 19.13):

    Hi Georges,

    when creating an instance of "Rhino4.Application", you explicitly request a new Rhino instance to be started. You can use "Rhino4.Interface" instead to hook onto a running instance.

    Hope that helps!

    Hanno

  • 1. DupontGeorges4 (Dec 26, 2011 19.31):

    Hello,
    I hope someone could help me...
    I'm starting programming an application in VBA Excel. At the end this VBA Excel application should be able to export all the layers including in on or several Rhino files to an excel worksheet.
    I never work with RhinoScript and my first problem seems to be able to communicate with rhino.
    I'm not able to access the already opened Rhino application. Each time i launche my application, it opens a new Rhino4 Application. How can I just activate the application which is already opened?

    My code is the following :

    Sub Test()

    Dim Rhino As Object
    Set Rhino = CreateObject("Rhino4.Application")

    Dim RhinoScript As Object
    Set RhinoScript = Rhino.GetScriptObject()

    Rhino.Visible = True

    RhinoScript.Command "_-Save C:\Users\GD\Desktop\VBRhino.3dm"

    Set RhinoScript = Nothing
    Set Rhino = Nothing

    End Sub

    Can anyone help me ??

    Georges

Recommend

Why are these buttons gray?