Share

AcDbEntity::setMaterial

C++

virtual ACDBCORE2D_PORT Acad::ErrorStatus setMaterial(
    AcDbObjectId newVal, 
    Adesk::Boolean doSubents = true
);

Description

This method sets the material reference to the specified material. The specified AcDbObjectId must refer to an AcDbMaterial.

Returns Acad::eOk when successful.

Parameters

Parameters Description
newVal Input object Id of the AcDbMaterial
doSubents Input boolean indicating whether or not to apply the specified material to all sub entities

Links

AcDbEntity

Was this information helpful?