60000309 PolyFace and facelist color

Article 60000309
Type HowTo
Product Engine
Date Added 11/8/2007 12:00:00 AM
Fixed (11/8/2007 12:00:00 AM)
Submitted by Mario Pelegrino

Summary

PolyFace and facelist color change from version 5 to the new version 6

Solution

There are some changes in this from version 5 to version 6:
 
In Version 5 the color in the FaceList could be :
    0        : that means that the face gets the color of the Layer that the PolyFace is
    256     : that means that the face gets the color of the Polyface
    1-255  : that means that the face gets the color index of the palette
 
In Version 6 the color in the FaceList can be :
     -1       : that means that the face gets the color of the Polyface (similar to the 256 value of version 5)
    0-255  : that means that the face gets the color index of the palette.
 
So if you need the Facelist to get the color of the layer that the Polyface is, then you should set the FaceList color to -1 and the PolyFace.PenColor to ByLayer.

For example if your VDF file with a polyface in version 5 has a facelist with color value 0 and the layer of the PolyFace has color 72 then when you open the drawing in version 6 the facelist color value will be 72.

Send comments on this topic.