Hi,
I've been scratching my head for a while now. I've written a script which successfully uses addSpline(v,"false") to add an array (v) of x,y coordinates as a curtate cycloid curve... that's all working, but now I want to add some labels to the curve... I've tried addText("SOME TEXT"); and addLabel("some text");, and various other incarnations, as I wondered whether I had the correct function name, but the wrong number of attributes... Each time I try to use it it responds with ...
ReferenceError: Can't find variable: addText
or
ReferenceError: Can't find variable: addLabel
Any help would be appreciated. I presume it needs coordinate values and text?
I'm running the script using the XC (Run Script) command.
Thanks
Rob
Using addText to add text to drawing using ECMA script
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Re: Using addText to add text to drawing using ECMA script
Please refer to the QCAD Simple API reference at:
https://qcad.org/doc/qcad/latest/develo ... 38e26ad26d
https://qcad.org/doc/qcad/latest/develo ... 38e26ad26d
Re: Using addText to add text to drawing using ECMA script
Brilliant. I'd found a different API, but not this one. That's exactly what I was looking for.
Thanks
Rob
Thanks
Rob