Dimension Styling

CadSDK offers comprehensive control over dimension appearance including arrows, text placement, extension lines, and unit formatting.

Dimension Properties Example

// Linear dimension with custom styling
var dimension = new LinearDim
{
    ExtLine1 = new Vector3(0, 0, 0),
    ExtLine2 = new Vector3(100, 0, 0),
    DimLinePos = new Vector3(50, 30, 0),
    TextHeight = 2.5f,
    
    // Arrow properties
    ArrowheadSize = 3.0f,
    LeftArrowhead = ArrowheadType.Filled,
    RightArrowhead = ArrowheadType.Filled,
    
    // Extension line properties
    ExtLineOffset = 2.0f,        // Distance from points
    ExtLineExt = 2.0f,          // Extension beyond dim line
    ShowExtLine1 = true,
    ShowExtLine2 = true,
    
    // Text formatting
    TextGap = 1.0f,             // Gap between dim line and text
    TextPrefix = "L=",          // Add prefix to measurement
    TextSuffix = "mm",         // Add suffix to measurement
    Precision = 2,             // Show 2 decimal places
    SuppressLeadingZeros = true,
    
    // Tolerance settings
    ToleranceDisplay = ToleranceDisplayMode.Deviation,
    ToleranceUpperValue = 0.2f,
    ToleranceLowerValue = -0.1f,
    ToleranceScaleHeight = 0.7f  // 70% of main text height
};
# Coming soon...