HowTo : PolyFace and facelist color
| Article | 60000309 |
| Type | HowTo |
| Product | Engine |
| Version | 6 |
| Date Added | 11/8/2007 |
| Submitted by | Mario Pelegrino |
| Keywords | |
Subject
PolyFace and facelist color
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.