2027 Method
Changes 0
M

MultiSegmentGrid.Create

Description:
Create a MultiSegmentGrid element from the specified curve loop.
Remarks:
For each curve in the curve loop, a corresponding Grid will be created.
public static ElementId Create(
	Document document,
	ElementId typeId,
	CurveLoop curveLoop,
	ElementId sketchPlaneId
)
  • document
    The document in which to create the MultiSegmentGrid.
  • typeId
    Element id of a GridType element.
  • curveLoop
    An open curve loop consisting of lines and arcs.
  • sketchPlaneId
    Element id of a SketchPlane for the curves elements that will be created from the curveLoop.
Return Value ElementId The element id of the new MultiSegmentGrid element.
  • The element id should refer to a valid horizontal SketchPlane. -or- The element id should refer to a GridType element. -or- The curve loop should be an open loop consisting of lines and arcs.
  • A non-optional argument was null
  • The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements).
  • The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
  • The document has no open transaction.