Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

I don't know the reason why you need to hide workplane from UI. But if you want to hide some part of model history, you can use ClientFeature functionality. How it works you can see in any profile from ContentCenter (Driven Length feature)

If you want, you can also use HiddenParameters property to hide parameters from the user. See this thread for more info.

 

EDIT:

Code sample

Sub Main
	Dim part As PartDocument = ThisDoc.Document

	Dim cliFeatures As ClientFeatures = part.ComponentDefinition.Features.ClientFeatures

	Dim xyWorkPlane As WorkPlane = part.ComponentDefinition.WorkPlanes(3)
	Dim wPlane As WorkPlane = part.ComponentDefinition.WorkPlanes.AddByPlaneAndOffset(xyWorkPlane, 1)

	Dim cliFeatureDef As ClientFeatureDefinition = cliFeatures.CreateDefinition("HiddenWorkPlane", wPlane)
	Call cliFeatureDef.AddDependency(wPlane.Definition.Offset)

	Dim cliFea As ClientFeature = cliFeatures.Add(cliFeatureDef, "your-client-id-here")

	Dim hiddenParams As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection()
	hiddenParams.Add(cliFea.Parameters(1))
	cliFea.HiddenParameters = hiddenParams
End Sub