Description
Sets materials to the array of face materials used by the FaceData object. The array must have exactly the same number of elements as there are faces in the mesh or shell it is used with. The array elements control the individual face material. The order of the array elements corresponds with the order of the faces in the mesh or shell--the first array element is used as the material for the first mesh or shell face, the second element for the second face, etc. For faces that do not have a per-face material override, the corresponding entries should be occupied by ObjectId.Null.
Visual Basic
Public Function SetMaterials( materials As ObjectId[] ) As void
C#
public void SetMaterials( ObjectId\[\] materials );
Parameters
| Parameters | Description |
|---|---|
| ObjectId[] materials | Input array of materials to be set on the this object. |
Links
FaceData Class, Autodesk.AutoCAD.GraphicsInterface Namespace