QCAD.org Forum

Discussion forum for contributors and developers who are using the QCAD version 3 ECMAScript development platform or the C++ plugin interface or who are otherwise looking to contribute to QCAD (translations, documentation, etc).

Attached, you can find a simple script 'ExSetColor.js' and the test drawing I've used.

What the script does:- find all line entities with linetype set directly to 'continuous' or with linetype 'ByLayer' and the layer linetype 'continuous'- change the color of those entities to blue- entities that are not lines are not touched- entities that have their linetype set to something else than 'continuous' are not touched

Limitations:- entities that have the linetype set to 'ByBlock' are not touched, even though they might be continuous. This would need some further work as blocks can be hierarchical.