Share

AcDbEntity::setLineWeight

C++

virtual ACDBCORE2D_PORT Acad::ErrorStatus setLineWeight(
    AcDb::LineWeight newVal, 
    Adesk::Boolean doSubents = true
);

Description

This method sets the entity to use lineweight. If the entity owns subentities and doSubents == Adesk::kTrue, then the line weight change will be applied to the subentities as well.

Returns Acad::eOk if successful.

Function implementation in derived classes

If this function is overridden and wishes to set the line weight of the entity, then it must call AcDbEntity::setLineWeight() passing on the lineweight and doSubents arguments.

It is also possible for this function's implementation to deal directly with any subentities and pass a doSubents value of Adesk::kFalse to AcDbEntity:: setLineWeight().

If the line weight setting operation is successful, then this function should return Acad::eOk. If lineweight is not an acceptable value, then this function should return Acad::eInvalidInput. Any other error return values are up to the implementer.

Parameters

Parameters Description
newVal Input AcDb::LineWeight for the entity
doSubents Input to apply the lineweight change to subentities

Links

AcDbEntity

Was this information helpful?