RLine vs RLineEntity

Discussion forum for contributors and developers who are using the QCAD ECMAScript development platform or the C++ plugin interface or who are otherwise looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Post Reply
Nick1974
Newbie Member
Posts: 5
Joined: Fri Sep 29, 2017 11:35 am

RLine vs RLineEntity

Post by Nick1974 » Fri Sep 29, 2017 11:52 am

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?

User avatar
andrew
Site Admin
Posts: 5605
Joined: Fri Mar 30, 2007 6:07 am

Re: RLine vs RLineEntity

Post by andrew » Mon Oct 02, 2017 10:26 am

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.

Post Reply

Return to “QCAD Developers and Contributors”