2024 Method
Changes 0
M

Grid.Create

Description:
Creates a new radial grid line.
Remarks:
The arc should be on a horizontal plane.
Overloads (2):
Create(Document,Arc)
public static Grid Create(
	Document document,
	Arc arc
)
Return Value Grid The newly created grid line.
// Create the geometry arc which the grid locates
XYZ end0 = new XYZ(0, 0, 0);
XYZ end1 = new XYZ(10, 40, 0);
XYZ pointOnCurve = new XYZ(5, 7, 0);
Arc geomArc = Arc.Create(end0, end1, pointOnCurve);


// Create a grid using the geometry arc
Grid arcGrid = Grid.Create(document, geomArc);

if (null == arcGrid)
{
    throw new Exception("Create a new curved grid failed.");
}

// Modify the name of the created grid
arcGrid.Name = "New Name2";