Files
speckle-sharp-sdk/src/Objects/BuiltElements/GridLine.cs
T
2024-06-21 08:42:42 +01:00

37 lines
959 B
C#

using System.Collections.Generic;
using Speckle.Core.Kits;
using Speckle.Core.Models;
namespace Objects.BuiltElements;
public class GridLine : Base, IDisplayValue<List<Base>>
{
public GridLine() { }
[SchemaInfo("GridLine", "Creates a Speckle grid line", "BIM", "Other"), SchemaDeprecated]
public GridLine(
[SchemaParamInfo("NOTE: only Line and Arc curves are supported in Revit"), SchemaMainParam] ICurve baseLine
)
{
this.baseLine = baseLine;
}
[SchemaInfo("GridLine", "Creates a Speckle grid line with a label", "BIM", "Other")]
public GridLine(
[SchemaParamInfo("NOTE: only Line and Arc curves are supported in Revit"), SchemaMainParam] ICurve baseLine,
string label = ""
)
{
this.baseLine = baseLine;
this.label = label;
}
public ICurve baseLine { get; set; }
public string label { get; set; }
public string units { get; set; }
[DetachProperty]
public List<Base> displayValue { get; set; }
}