AnsweredAssumed Answered

How to delete solid body?

Question asked by Simon Magarill on Jan 16, 2012
Latest reply on Jan 17, 2012 by Deepak Gupta

 

From API I am trying to select body and delete it:

 

 

boolstatus = swDoc.Extension.SelectByID2(ReflectorID, "SOLIDBODY", 0, 0, 0, False, 2, Nothing, 0)

 

 

 

swDoc.EditDelete()

 

 

After execution last line, confirmation window 'Delete Body' is hsowing up in SW. Somehow I need to send confirmation 'Yes' from API to execute deletion and close this window.

 

Any ideas?

 

Thanks,

Simon

Outcomes