def demo_draftFeatures_add(rootComp: adsk.fusion.Design.rootComponent):
# Have the face to draft selected and add it to a list.
face = _ui.selectEntity('Select a face to draft', 'Faces').entity
faces = []
faces.append(face)
# Define the pull direction and angle.
pullDirection = rootComp.xYConstructionPlane
angle = adsk.core.ValueInput.createByString("30 deg")
# Define the required input and create the draft feature.
draftFeatures = rootComp.features.draftFeatures
input = draftFeatures.createInput(faces, pullDirection)
input.setSingleAngle(True, angle)
draftFeature = draftFeatures.add(input)