Embed Variable inside Text

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
User avatar
dfriasb
Senior Member
Posts: 119
Joined: Thu Mar 10, 2016 1:08 pm
Location: Calafell, Tarragona, Spain

Embed Variable inside Text

Post by 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
David Frías Barranco | architect
[email protected] | davidfriasarquitecto.es

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

Re: Embed Variable inside Text

Post by andrew » Mon Oct 09, 2017 11:16 am

No.

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).

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”