Crash Rhino sr11


#1

Problems SR11

in Rhino SR9 this macro works fine.

   !_BoundingBox 
_Pause  
_Enter  
_SelLast  
_SetObjectDisplayMode  
_Pause 
_Ghosted  
_NextViewportToTop 
_SetObjectDisplayMode  
_Pause 
_Ghosted  
_NextViewportToTop 
_SetObjectDisplayMode  
_Pause  
_Ghosted  
_NextViewportToTop 
_SetObjectDisplayMode  
_Pause  
_Ghosted  
_NextViewportToTop 
_SelNone 
_Dim 
_Object 
_Dim 
_Object 
_Pause 
_Dim 
_Object 
_Pause 
_Dim 
_Object

_Selnext
_Group

But I installed the SR 11. Rhino gets a crash if I use this macro


#2

Seems to work here without crashing… Are you just trying to get a ghosted, dimensioned bounding box for an object? You might try this script instead… (dimensions are text dots)

–Mitch

BBWithSizeVol.rvb (3.6 KB)


#3

It’s a wonderful script!

I need a selected point in the center of the cube.
In order to move objects within the cube and cube to the center of coordinates 0,0,0

Can I add the macro immediately after the execution of the script?

! _-Runscript (
Option Explicit
…script …
)
end sub

! _SelLast
_AreaCentroid
_SelLast

I get an error.

  Move to 0,0,0 objects within the cube and cube 

Point to move from selected pont resulting _AreaCentroid
Point to move to 0,0,0


#4

It’s possible to add all that into the script… However, if you are just looking to move the objects from their bb center to 0 without actually creating the box or the dimensions, that’s a lot easier/simpler, here’s one from my library…

MoveObjsBBCtrToW0.rvb (599 Bytes)

All you need to run these scripts is

! _NoEcho _-Runscript (
<paste script in here>
)

–Mitch


#5

This is what I need!
Can I combine these two scripts?


#6

I got merged into one
two of your scripts :slight_smile:

Thank you very much Bro!!


#7

Mitch, If the model is not selected before run the joint script in the command line pops the question:
"Pick objects for bounding box"
How to remove this question?move and boudingl.rvb (4.1 KB)


#8

Why would you want to do that? If there is nothing pre-selected, it prompts you to select something to process…

Here is a hack that combines both scripts.

–Mitch

BBWithSizeVolMove0.rvb (3.9 KB)


#9

It works as it should!
Only if you can not add a point in the center?
It was necessary only for the old algorithm only to find the center and a snaped for it to move.
Even if the object is initially selected after the script selection is not removed. Can whether deselect after running the script?


#10

OK, I removed the point and made sure nothing is selected at the end… Please re-download from the original post… --Mitch


#11

Many thanks Mitch!
This is something that is necessary. Fantastic !!! )))))))

In general, it is necessary to prepare the model to CNC.
A clear question is simply to reduce the time.