I have a big problem with RhinoScript memory.

Example:

    Dim AObjets

    AObjets = Rhino.AllObjects

    Dim AxeX
    AxeX = Array(1, 0, 0)
    For i = 1 To 20
          Rhino.RotateObjects AObjets, pCC, 2, AxeX
    Next

 

At each execution of the RotateObjects function, a portion of the memory is used, and is not returned.

This leads to crash Rhino.

Do you know a solution?

Thank you.

Tags: RhinoScript, memory

Views: 28

Reply to This

Replies to This Discussion

Hi Christian,

When you run a script, everything that the script does is undo recorded. So when you move a bunch of objects a bunch of times, every move is recorded. This behavior is identical to the way regular commands operate.

If you find yourself running out of memory, you might consider running the ClearUndo command inside of your For loop.

Hope this helps.

 -- Dale

Thank you, Dale,

This is exactly the right job!

Another big thank you from France.

 

Christian

RSS

Translate

© 2013   Created by McNeel Admin.

Badges  |  Report an Issue  |  Terms of Service