Share

AcDbEntity::setMaterialMapper

C++

virtual ACDBCORE2D_PORT Acad::ErrorStatus setMaterialMapper(
    const AcGiMapper& mapper, 
    Adesk::Boolean doSubents = true
);

Description

The MATERIALMAP command uses this function to apply material scale, rotation, projection, and mode overrides to an entity.

Set the mapper argument to AcGiMapper::kIdentity to apply the default mapper to the entity.

Returns Acad::eOk when successful.

Parameters

Parameters Description
mapper Input pointer to the AcGiMapper that contains the transform information for applying a material to an entity. You can set this value to AcGiMapper::kIdentity to restore the default state.
doSubents Input Boolean to indicate whether the mapper is applied to all sub entities

Links

AcDbEntity

Was this information helpful?