Closed Sonique closed 2 weeks ago
Hi, I tested the followings script after selecting some elements in a View and it is working OK:
$(selection).each(function (element) {
element.fillColor = "#D6E8D5"
element.deriveLineColor = false;
element.lineColor = "#F00000";
element.lineWidth = 3;
})
Don't forget to select the element in the View first.
Which version of jArchi are you using?
jarchi 1.5.0.202310011312
it's strange, but on my side script doesn't work for line color. I tested on new project, same thing. Yes, I did select element. Color changed, but element border color doesn't
jarchi 1.5.0.202310011312
These features were added in jArchi 1.6. Please see https://github.com/archimatetool/archi-scripting-plugin/wiki/Change-Log
Oh, well. Looks like I missed it on patreon. Will download new version. Thanks
Version of jArchi, Operating System
5.3.0 mac silicon
Expected Behaviour
Script will change line color and line weight
Actual Behaviour
Script works and change other element properties, but line color and width are unchanged
Steps to Reproduce the Behaviour (with attached test files/script)