Property Cmaterial
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Cmaterial
Gets or sets the material new entities are given ($CMATERIAL, a handle), as AutoCAD's Cmaterial gives
its id: the MATERIAL of the drawing's dictionary of materials (MaterialDictionary), ByLayer in a new
drawing; null where the header names none the drawing has.
public DxfDBObject Cmaterial { get; set; }
Property Value
Exceptions
- ArgumentNullException
Thrown when the material set is null.
- ArgumentException
Thrown when the material set is not an entry of the drawing's dictionary of materials.
- InvalidOperationException
Thrown when set in a file older than R2007 (AC1021), which has no such variable.