Block Definition

BlockDefinition

/// Represents a block definition, which is a collection of elements
/// grouped together under a name and associated with a reference point
/// that is used as a base point for placing BlockReferences later.
public class BlockDefinition : BaseClass
{
    // Constructors
    public BlockDefinition() { }

    // Important Properties
    public string Name { get; set; } // The unique name identifying the block definition.
    public Vector3? ReferencePoint { get; set; } // The reference point for the block definition.
    public Dictionary<string, Element> Elements { get; set; } // The dictionary of elements that constitute the block definition, keyed by Element Guid.
    public LengthUnit LengthUnit { get; set; } // The length unit used in this block definition.

    // Methods
    public void AddElement(Element element) // Adds an element to the BlockDefinition's Elements dictionary using its Guid as the key.
}
# Coming soon...