Table of Contents

Method SetDimstyleData

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetDimstyleData(DxfDimStyleTableRecord)

Gives the dimension the variables of a record, as AutoCAD's SetDimstyleData: each that differs from what the dimension reads written as an override, as its setter writes one; those the dimension reads already change nothing. A variable its file's version has not is passed over where the record holds AutoCAD's own value of it, and refused where it holds another; a record that names no text style leaves the dimension's as it is. A whole number is checked against AutoCAD's range as SetDimstyleData(DxfDimStyleTableRecord) checks it, a Dimdec of 9 refused, and a size of the arrows, the text or the scale below nought. Every value is checked before any is written.

public void SetDimstyleData(DxfDimStyleTableRecord style)

Parameters

style DxfDimStyleTableRecord

The record: of a table, or made in code, as GetDimstyleData() gives one.

Exceptions

ArgumentNullException

Thrown when the record is null, or holds a null text or colour.

ArgumentOutOfRangeException

Thrown when a value of the record is one AutoCAD does not take.

ArgumentException

Thrown when a block, linetype or text style of the record is of another drawing.

InvalidOperationException

Thrown when the dimension is erased, or the record holds a value other than AutoCAD's own of a variable the dimension's file is too old to hold.