Yes, great, I got it to work. Sorry for the delayed response. I was on vacation last week.
If I could insert this comment after post #4 on this thread, I would. Oh, it puts it in there, I see.
I do need to expand and explain. I need a little more variety for how we get in there (the filled region). The script you wrote works great but it now broadly changes all line styles in filled regions to Invisible Line, or whatever is plugged in. So what I asked for before probably seems kind of dangerous on its own (and it is).
I have attached a script that is a combination of yours and something I whipped up to modify line styles that aren’t in filled regions. I need to figure out how to combine them somehow but I don’t know where to start. The path that akmyousuf went down is narrowing down the selection by the type name of the filled region, I need to tell dynamo to change specific line style to another specific line style. The simplest example I have is change “Solid - 1” to “1 - Solid”, Implementing company standards kind of thing. My script can’t get into the filled regions and if you delete the line style itself, lines still utilizing the style you deleted, will fall to the “Thin Line” style. But you don’t get a report of that or anything.
Hopefully you will help me on this venture.
I attached a snip of a list of scripts that I ran on a project so maybe you can tell what I mean. The chunk up top in the attached script hopefully will be descriptive as well. Maybe we can feed it all into the top half of the original script.
Filled Region Set Line Style - Combo.dyn (26.3 KB)