Method SetHeader
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetHeader(string, params DxfTypedValue[])
Sets a variable of the header, as the system variables of AutoCAD are set: its groups given in the place of its own, each value in place where the codes are as they were, every other byte of the header kept; added at the end of the header where it has no such variable. Groups the same as the variable's change nothing.
public void SetHeader(string name, params DxfTypedValue[] groups)
Parameters
namestringThe name of the variable, its $ in front:
$LTSCALE.groupsDxfTypedValue[]The groups after its group 9:
new DxfTypedValue(40, "2").
Exceptions
- ArgumentNullException
Thrown when the name or the groups are null.
- ArgumentException
Thrown when the name does not begin with $, no group is given, or a group is of code 0 or 9, which would end the variable.
- InvalidOperationException
Thrown for
$ACADVER,$DWGCODEPAGEand$HANDSEED, which the file keeps itself, and for a file with no HEADER section.