How to completely hide a selected body

If I do

   IBody2::HideBody(true)

but the body is selected I still see the wireframe in blue. Is there any way to suppress this?

SolidworksApi macros
Answers 4
DG
DG 2016-03-08 Best Answer

You can delete body using InsertDeleteBody2 (False)

BP
BP 2016-03-08

I don't want to delete it I want to hide it. The body belongs to an existing feature.

DG
DG 2016-03-08

Then the body will only hide and if selected the wire frame outer boundary will show,

BP
BP 2016-03-09

It must be possible to somehow hide that wire frame outer boundary. The reason is that I want to temporarily replace in the view a modified version of the selected object while the property manager page is visible. I need to preview trimming a portion of the selected object and the wireframe outline makes it difficult to visualize the trimming preview.