Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5745

Quit process that takes too long

$
0
0

@AleksandarSM wrote:

Hello,

I made command that works in the loop - finds and unrolls the largest surface within each polysurface, but the command sometimes hangs ( rhino becomes non-responsive ) during the process.

I can "catch" the error when unroll method fails but how to catch it when it hangs
Idea is to give it ~10 sec time to do it and terminate it if it does not finish (success or fail) in that period, and go to the next polysurface
At the moment I work in python but I plan to move to VB Rhinocommon anythow so any idea/solution is welcome

Thanks in advance
Aleksandar

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5745

Trending Articles