Share

setLayer Method

Overload List

Method Description
AcDbEntity::setLayer (AcDbObjectId, Adesk::Boolean, bool) This method sets the entity to reference the AcDbLayerTableRecord that has the object ID newVal. If the entity owns subentities and doSubents == Adesk::kTrue, then the layer change will be applied to the subentities as well. For an AcDbBlockReference entity, this method will also update any associated AcDbSequenceEnd subentity regardless of the doSubents setting.
AcDbEntity::setLayer (ACHAR*, Adesk::Boolean, bool) This method sets entity to reference the AcDbLayerTableRecord identified by the name specified in newVal. If the entity owns subentities and doSubents == Adesk::kTrue, then the layer change will be applied to the subentities as well. For an AcDbBlockReference entity, this method will also update any associated AcDbSequenceEnd subentity regardless of the doSubents setting.

Was this information helpful?