Property Cetransparency
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Cetransparency
Gets or sets the transparency of new entities (CETRANSPARENCY), as AutoCAD's Cetransparency: BYLAYER where the
drawing gives none. AutoCAD 2021 reads the DICTIONARYVAR as the whole number an entity's 440 holds, its top byte the
method (2 by alpha, 1 BYBLOCK, 0 BYLAYER) and its low byte the alpha: the alpha 127 is 33554559. A number with no
method in its top byte, as the per cent 61 the library wrote before, is BYLAYER, as AutoCAD reads it; the words
ByLayer and ByBlock are read as they say.
public DxfTransparency Cetransparency { get; set; }
Property Value
- DxfTransparency
Set, written as that number, so that the alpha 100 reads back as 100 in AutoCAD and here.
Exceptions
- ArgumentException
Thrown when the transparency set is an error value, or an alpha more than 90 per cent clear.
- InvalidOperationException
Thrown when set in a file with no variables of the OBJECTS section to hold it.