Example of attribute manipulation

You want to assign the attributes "rounding off at bottom" and "rounding off at top" to a formwork edge. However, these attributes are not defined in the CAD program.
So you need to configure the CAD program so that the formwork edge is given the attributes "special formwork" and "poured joint".

Attribute detection bit mask

  1. If an edge is to be manipulated as soon as these two bits occur in combination, regardless of all the other attributes set, you need to set the bit mask for detecting attributes to these bit values in decimal notation:
    2^1+2^2 = 2+4 = 8
  2. If an edge is to be manipulated as soon as these two bits occur in combination and all the other bits are also to be taken into account, you need to set the bit mask for detecting attributes in accordance with these bit values in decimal notation:
    2^0+2^1+2^2+2^3+2^4+2^5+2^6+2^7 = 1+2+4+8+16+32+64+128 = 255
    In other words, all the bits are included in the comparison.

Attribute detection value

  1. In case 1, you need to set the attributes "special formwork" and "poured joint". This means:
    2^1+2^2 = 2+4 = 8
  2. In case 2, we assume that bits 0 and 3 are also required. All the other bits can be ignored. This means:
    2^0+2^1+2^2+2^3 = 1+2+4+8 = 15

Attribute assignment bit mask

  1. If you want to reassign all the attributes, you need to set the bit mask to
    2^0+2^1+2^2+2^3+2^4+2^5+2^6+2^7 = 1+2+4+8+16+32+64+128 = 255
    .
  2. In case 2, we assume that the bits for "special formwork" and "poured joint" are to be deleted and the bits for "rounding off at bottom" and "rounding off at top" are to be set. This means:
    2^1+2^2+2^4+2^7 = 2+4+16+128 = 150

Attribute assignment value

  1. You need to set the bits that are specified here and in the bit mask for attribute assignment. Bits that are only specified in the bit mask for attribute assignment are deleted.
    In case 1:
    2^4+2^7 = 16+128 = 144
    As all the bits are specified in the bit mask, only bits 4 and 7 are set; all the other bits are deleted.
  2. In case 2, bits 1 and 2 are to be deleted and bits 4 and 7 are to be set. The value is the same as in case 1 because it is the bit mask that defines what is to be deleted. Consequently:
    2^4+2^7 = 16+128 = 144


Allplan 2016
(C) Allplan GmbH Privacy policy