Create New Component Feature

""" This example shows how to create a block feature in the root feature of a component. """

import vcCore as vc
import vcFeatures as vc_fea

comp = vc.getComponent()
root_fea = comp.RootFeature
block = root_fea.create(vc_fea.vcFeatureType.BLOCK, "NewBlock")