FamilyItemFactory.NewControl
Description:
Add a new control into the Autodesk Revit family document.
Add a new control into the Autodesk Revit family document.
public Control NewControl(
ControlShape controlShape,
View view,
XYZ origin
)
-
controlShapeThe shape of the control.
-
viewThe view in which the control is to be visible. It must be a FloorPlan view or a CeilingPlan view.
-
originThe origin of the control.
Return Value
Control
If successful, the newly created control is returned, otherwise an
exception with error information will be thrown.
-
Thrown when the input argument-"view" or "position"-is.
-
Thrown when the input argument-"view"-is invalid.
-
Thrown when the input argument-"controlType"-is out of range.
-
Thrown when control creation failed.