RLine vs RLineEntity

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

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

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: 9037
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 Programming, Script Programming and Contributing”