Working with AutoCAD entities
You will often need to understand bit coded data. This is pretty advanced intense stuff so
.
- Integers are represented as binary numbers, or 1's and 0's
- Each 1 or 0 represents a power of 2, remembering that 20 = 1
Bit Number: 4 3 2 1 0
Power of 2: 24 23 22 21 20
Bit Value : 16 8 4 2 1
- If the bit is 1, add the appropriate power of 2, thus
01011 = 0*16 + 1*8 + 0*4 + 1*2 + 1*1 = 11