Description
Sets layers to be the array of LayerTableRecord object IDs 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 layers the mesh or shell faces reside on--the first array element specifies the layer used for the first face, the second element for the second face, etc.
The caller of this function is responsible for allocating and de-allocating the memory for the array. This function accepts a pointer to the array and then uses the array directly--it does not make a copy of the array.
Warning Prematurely freeing or deleting the array passed into this function terminates AutoCAD.
Visual Basic
Public Function SetLayers( layers As ObjectId[] ) As void
C#
public void SetLayers( ObjectId\[\] layers );
Parameters
| Parameters | Description |
|---|---|
| ObjectId[] layers | Input array of LayerTableRecord object IDs |
Links
FaceData Class, Autodesk.AutoCAD.GraphicsInterface Namespace