Convert Entities

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules
Always indicate Operating system, QCAD version
Attach Drawing files, Screenshots
Post one question per topic.
Post Reply
Newbie Member
Posts: 4
Joined: Tue Apr 03, 2018 2:56 pm

Convert Entities

Post by dobidobido » Tue Apr 03, 2018 3:12 pm

Hey, im bit new to QCad, i want to ask a question about scripting,

lets assume i have variable 'a' equals to,


firslty i need to group entity types as line,text ,circle and block. I tried to use indexOf() to differ these entity types. However it couldnt work.
Also i need to get text information for TextEntity, block name for block and start/end points for line entity. I used a.getPosition(); but it doesnt work for line entities neither a.getText(); for text entites.

How can i differ entites and how can i convert entites into readable format by scripting?

Post Reply

Return to “QCAD 'How Do I' Questions”