I have done a script which can automatically find blocks to explode and group it.
But in some case there are too many blocks and it takes too long.
I try to hit ‘Esc’ but it doesn’t abort the script ( I remember in rhinoscript you can always hit ‘Esc’ to abort )
Just wondering is there anyway I can abort a script when it runs too long?
Should I add some lines like ’ if (I hit Esc ) : abort '.
Below is my script:
import rhinoscriptsyntax as rs
Blocks = rs.GetObjects(“Pick Blocks”,4096,False,True)
for b in Blocks: