Share

AcDbEntity::setPropertiesFrom

C++

Acad::ErrorStatus setPropertiesFrom(
    const AcDbEntity* pEntity, 
    Adesk::Boolean doSubents = true
);

Description

This method copies the

  • Color
  • Layer
  • Linetype
  • Linetype scale
  • Visibility
values from the entity pointed to by pEntity into this entity. If the entity owns subentities and doSubents == Adesk::kTrue, then the property changes will be applied to the subentities as well.

Returns Acad::eOk if successful.

Parameters

Parameters Description
pEntity Input entity from which to copy the properties
doSubents Input Boolean indicating whether to propagate the change to any subentities the entity may own

Links

AcDbEntity

Was this information helpful?