Element (Base Class)

/// Abstract base class for all geometric elements (Line, Circle, Arc, etc.)
/// and annotations (Text, Dimension, etc.) in the drawing.
public abstract class Element : BaseClass
{
    // Important Properties
    public string LayerName { get; set; } // The name of the layer this element belongs to.
    public string ColorARGB { get; set; } // Element color represented as an AARRGGBB hex string.
    public PropertyMethod ColorMethod { get; set; } // Element color method.
    public LineType? LineType { get; set; } // The line type for this element.
    public float? LineTypeScale { get; set; } // The scale of the line type.
    public PropertyMethod LineTypeMethod { get; set; } // Element line type method.
    public float? LineWeight { get; set; } // The line weight for this element.
    public PropertyMethod LineWeightMethod { get; set; } // Element lineWeight method.

    // Other Accessible Properties
    public string MaterialName { get; set; } // The name of the material for this element.
    public int? DisplayOrder { get; set; } // The element printing and displaying order.
    public bool? IsVisible { get; set; } // The element visibility status.
}
# Coming soon...
  • The final color of elements is determined by their ColorMethod property.
  • If ColorMethod is set to PropertyMethod.Custom, the ColorARGB property is used as element's final color.
  • Otherwise, the color is inherited from the element's assigned layer.
  • Predefined colors can be accessed via AciColors class.
  • The same logic applies to LineType and LineWeight, which are also determined by their respective PropertyMethod settings (LineTypeMethod and LineWeightMethod).