Is Rhino.CheckNewObjects() working?

Somehow I am having trouble turning it off in a script. With the attached bad surface (from a different post in the other forum) and the attached script to fix it automatically, it should turn object checking off for the duration of the script… But in fact I get FOUR bad object messages… It appears to happen at the lines that invoke Rhino.Command. What’s going on here?

Just turn object checking on, then run the script and select the surface.

??

–Mitch

RetrimSrfs.rvb(3.0 KB)

Invalid surface example.3dm(126.1 KB)

Looks like something got broken along the way. I’ve fixed the problem for SR7.

Thanks for reporting.

OK, thanks Dale!
–Mitch