Method SetDimstyleData
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetDimstyleData(DxfDimStyleTableRecord)
Gives the leader the variables of a record, as AutoCAD's SetDimstyleData: each that differs from what the
leader reads written as an override, as AutoCAD writes one (1070 41, 1040 3.5), its dimension style left as it
is; those it reads already change nothing, so that the record of its own style writes only where an override differs
from the style. A block, linetype or text style is written by its handle, none by the handle 0; a record that names no
text style leaves the leader's as it is. A variable the 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 whole number is checked against AutoCAD's range as
SetDimstyleData(DxfDimStyleTableRecord) checks it, a Dimdec of 9 refused, and a size of the arrow, the text or
the scale below nought. Every value is checked before any is written.
public void SetDimstyleData(DxfDimStyleTableRecord style)
Parameters
styleDxfDimStyleTableRecordThe 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: a number not finite, a whole number out of its range, a lineweight not one of AutoCAD's.
- ArgumentException
Thrown when a block, linetype or text style of the record is of another drawing, or the leader is in none; when a colour is a true colour.
- InvalidOperationException
Thrown when the leader is erased, or the record holds another value than AutoCAD's own of a variable the leader's file is too old to hold.