FamilyItemFactoryNewControl Method |
Add a new control into the Autodesk Revit family document.
Namespace: Autodesk.Revit.CreationAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic Control NewControl(
ControlShape controlShape,
View view,
XYZ origin
)
Public Function NewControl (
controlShape As ControlShape,
view As View,
origin As XYZ
) As Control
public:
Control^ NewControl(
ControlShape controlShape,
View^ view,
XYZ^ origin
)
member NewControl :
controlShape : ControlShape *
view : View *
origin : XYZ -> Control
Parameters
- controlShape ControlShape
- The shape of the control.
- view View
- The view in which the control is to be visible. It
must be a FloorPlan view or a CeilingPlan view.
- origin XYZ
- The origin of the control.
Return Value
ControlIf successful, the newly created control is returned, otherwise an
exception with error information will be thrown.
Exceptions
See Also