Hide Visibility of Feature in Part

I am trying to hide the visibility of the Planes in my parts.

Here's what I have (C#):

bool status = false;

swModelDocExt = (SldWorks.ModelDocExtension)swModel.Extension;

status = swModelDocExt.SelectByID2("Front Plane", "PLANE", 0, 0, 0, false, 0, null, 0);

swSelMgr = swModel.SelectionManager;

swFeat = swSelMgr.GetSelectedObject6(1, -1);

swFeat.SetUIState(1, true);

doc.EditRebuild3();

This code is incorrect because it hides the Front Plane in the feature tree:

What im trying to achieve:

Can someone point me in the right direction?

SolidworksApi/macros