MaskOfSanity
Member
Hello everyone,

Is there any possibility to wait until the part generation is finished?
Currently i want to do some part generation and i have to work with thread sleep to secure, that the part generation is finished.
AddExtrudedBoss returns and sometimes the part generation in Alibre is still running.
If i want to access the Edges from the part i will get this exception:
"System.Runtime.InteropServices.COMException (0x8004024C): Can't execute query. Object no longer exists in server"
But this is only because the part is still generating.
When i introduce long sleeps it will work, but i think this couldn't be the solution.
I would like to thank you in advance for your support.
Greetings and have a nice day
Hint:
part is IADPartSession

Is there any possibility to wait until the part generation is finished?
Currently i want to do some part generation and i have to work with thread sleep to secure, that the part generation is finished.
AddExtrudedBoss returns and sometimes the part generation in Alibre is still running.
If i want to access the Edges from the part i will get this exception:
"System.Runtime.InteropServices.COMException (0x8004024C): Can't execute query. Object no longer exists in server"
But this is only because the part is still generating.
When i introduce long sleeps it will work, but i think this couldn't be the solution.
I would like to thank you in advance for your support.
Greetings and have a nice day
Hint:
part is IADPartSession