2027 Method
Changes 0
M

FamilyItemFactory.NewControl

Description:
Add a new control into the Autodesk Revit family document.
public Control NewControl(
	ControlShape controlShape,
	View view,
	XYZ origin
)
  • controlShape
    The shape of the control.
  • view
    The view in which the control is to be visible. It must be a FloorPlan view or a CeilingPlan view.
  • origin
    The origin of the control.
Return Value Control If successful, the newly created control is returned, otherwise an exception with error information will be thrown.