Page 1 of 1

setCurrentLineweight & setCurrentLineweight functions not found

Posted: Thu Mar 26, 2020 8:59 pm
by dfriasb
Dear all,

I can find and use setCurrentColor in Script Shell, but not setCurrentLineweight or setCurrentLineweight. Is there a way to "load" and use them? I'ld like to use them both in Script Shell and in script files.

Thanks. Best regards,

David

Re: setCurrentLineweight & setCurrentLineweight functions not found

Posted: Fri Mar 27, 2020 4:24 am
by CVH
Looked it up:
https://www.qcad.org/doc/qcad/3.0/devel ... ml#index_s
...
•setCurrentColor() : RDocument , RDocumentInterface , RStorage
•setCurrentLinetype() : RDocument , RDocumentInterface , RStorage
•setCurrentLineweight() : RDocument , RDocumentInterface , RStorage
So all 3 are equally implementent.

Would be handy to know:
The use of setCurrentColor() that works for you.
The others that fail.

A Typo maybe?

Regards,
CVH

Re: setCurrentLineweight & setCurrentLineweight functions not found

Posted: Sat Mar 28, 2020 8:48 am
by dfriasb
It's working in custom scripts. Thanks CVH!