Is there a way to sort the pour order by template area size?
In Set Pour Order Dialog, there are buttons for Auto Sort by Net or Layer, but unfortunately not by area.
Maybe it's possible by scripting? The collection of Templates seems to be in pour order. Templates inherit the area property from the CommonShape object. So everything is at hand, but there is no sorting method for the templates collection object and I don't see a way to manipulate this object manually.
Hello.. There is not a way to set template pour order by template area. Scripting could report template size but a) that is highly unlikely to reflect poured size and b) cannot report the assigned pour order number.
Yes, scripting does only report the template size and not the poured copper size, which is fine, since I want to set the pour order according to template size.
The Document.Templates object is a collection of templates, which is actually in pour order. By going through the collection it's possible to get the pour order number.
Too bad, that there is no way to rearrange the order by scripting. It would be a really nice feature for designs with may templates.