Page 1 of 1

RLine vs RLineEntity

Posted: Fri Sep 29, 2017 11:52 am
by Nick1974
Hello.
Please, explain to me the difference between RLine and RLineEntity.
Why RLine is created and then convert to RLineEntity in scripts/simple_create.js?
Why one not create RLineEntity right away?
Are RLine and others RShape need what for?

Re: RLine vs RLineEntity

Posted: Mon Oct 02, 2017 10:26 am
by andrew
RLine represents the mathematical concept of a line segment. RLine is copyable and does not have any relationship to a document or to attributes, layers, blocks, etc.

RLineEntity has attributes (color, linetype, line style), is on a layer, on a block and typically part of a document.