Method SetDimstyleData
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetDimstyleData(DxfDimStyleTableRecord)
Makes the variables of a dimension style those new dimensions take, as AutoCAD's SetDimstyleData: each that
differs from the header's written into it, those it holds already writing nothing; Dimstyle is left as
it is. A variable the header of the file's version has not is passed over whatever the record holds, as AutoCAD's
SAVEAS to that version leaves it out: DIMDEC in a file of R12, and DIMARCSYM, which a style holds from R2000 and the
header from R2007, in one of R2000 (a dimension's and a leader's SetDimstyleData refuse such a variable where
the record holds another value than AutoCAD's own). A whole number is checked against AutoCAD's range, as each
property checks it. A record that names no text style leaves Dimtxsty as it is. Every value is checked
before any is written.
public void SetDimstyleData(DxfDimStyleTableRecord style)
Parameters
styleDxfDimStyleTableRecordThe record: of the DimStyleTable, or made in code, as GetDimstyleData() gives one.
Exceptions
- ArgumentNullException
Thrown when the record is null.
- ArgumentOutOfRangeException
Thrown when a value of the record is one AutoCAD does not take, a Dimdec of 9.
- ArgumentException
Thrown when a block, linetype or text style of the record is of another drawing.