Table of Contents

Method SetPropertiesFrom

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetPropertiesFrom(DxfEntity)

Gives the entity the look of another, as AutoCAD's SetPropertiesFrom does: its layer, colour, true colour and the name of its colour book, linetype, linetype scale, lineweight and whether it is drawn. Everything is checked before anything is written: a look this entity's file cannot hold changes nothing.

public void SetPropertiesFrom(DxfEntity entity)

Parameters

entity DxfEntity

The entity whose look is taken.

Exceptions

ArgumentNullException

Thrown when the entity is null.

ArgumentException

Thrown when the layer's name is one AutoCAD does not take, or the linetype is not in the linetype table of this entity's file.

InvalidOperationException

Thrown when this entity is erased, or the look has a true colour, a lineweight, a linetype scale or an invisibility this entity's file is too old to hold, as their setters say.