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.
Invalid surface example.3dm(126.1 KB)