前言
这个例子介绍如何创建轴网。
内容
创建的效果如图所示:
通过设置不同的参数,生成了不同的轴网。
namespace Autodesk.Revit.DB
{
public class Grid : DatumPlane
{
public bool IsCurved { get; }
public Curve Curve { get; }
public static Grid Create(Document document, Arc arc);
public static Grid Create(Document document, Line line);
public Outline GetExtents();
public void SetVerticalExtents(double bottom, double top);
}
}
轴网的类型也会控制轴网的几何图形,GridType
在 API 里存在,但调整参数仍然是使用基类 Element
的方法: