The question is to to hide the first element of a circular pattern feature of a boundary patch using the API. The first element is the original boundary patch. There are two ways to hide it:
BoundaryPatchFeature.SurfaceBody.Visible = False
BoundaryPatchFeature.SurfaceBody.Parent.Visible = False
with way1, before Inventor 2012, the first element is hidden
but if the file is closed and re-opened the first element is visible again. So we have to use way2.
Following is the code demo.
Dim inventorAppType As Type =
Dim oDoc As PartDocument
oDoc = InvApp.ActiveDocument
Dim oBoundPatchFeature As BoundaryPatchFeature
' way 1:
' before Inventor 2012, The first element is hidden
' but if the file is closed and re-opened the first
' element is visible.
'oBoundPatchFeature.SurfaceBody.Visible = False
Dim oWorkSurface As WorkSurface =
oWorkSurface.Visible = False