Embed Variable inside Text

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

User avatar
Full Member
Posts: 63
Joined: Thu Mar 10, 2016 1:08 pm
Location: Calafell, Tarragona, Spain

Embed Variable inside Text

Postby dfriasb » Sat Oct 07, 2017 1:21 pm

Hello all,

Is it possible to insert a Variable inside a Text or Block Attribute?

I would like to use this feature to show the area of a Polyline inside a Text.
Thank you! Best regards,

David Frías Barranco | architect
dfriasb@gmail.com | davidfriasarquitecto.es

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

Re: Embed Variable inside Text

Postby andrew » Mon Oct 09, 2017 11:16 am


I can imagine a script that would automatically fill in the value of a text label or block attribute based on the area of a polyline. Even a transaction listener would be possible to automatically update the value whenever the polyline changes. To lick polyline and label, a custom property could be used (e.g. a custom property attached to the polyline "AreaLabel: F51" where F51 is the handle of the text entity).

Return to “QCAD Developers and Contributors”

Who is online

Users browsing this forum: No registered users and 1 guest