Forgot password?

Create an account!

Forum

« back

RhinoScript – Whats the easiest way to totally clear a drawing?

Messages

Please log in to write a message.

  • 3. carlolsen (Feb 25, 2011 18.56):

    That works perfect. Thanks!
    Carl.

  • 2. Johannes (Feb 25, 2011 12.18):

    hi,

    try the following code:

            Dim arrAll

            arrAll = Rhino.AllObjects()
            Call Rhino.DeleteObjects(arrAll)

    johannes

  • 1. carlolsen (Feb 24, 2011 19.42):

    I'm a complete newbie here, so please forgive the basic question but I have not been able to find it on my own:

    How can completely clear out a drawing in RhinoScript (Like doing a "File / New")? Is there something akin to "Rhino.New", "Rhino.Clear", or "Rhino.EraseAll" etc?

    I just want to clear out what's there at the start of my script, to avoid having to do it manually.

    Thanks,

    Carl.

Recommend

Why are these buttons gray?