C++
virtual ACDBCORE2D_PORT Acad::ErrorStatus setMaterial( const ACHAR* newVal, Adesk::Boolean doSubents = true );
Description
This method sets the material reference to the specified material. The specified name must correspond to an existing AcDbMaterial object.
Returns Acad::eOk when successful
Parameters
Parameters | Description |
---|---|
newVal | Input material name |
doSubents | Input boolean indicating whether to apply the material to all seb entities |