***Note from Migration:***
Original Title was: FME Objects: introduce setPartAt() and removePartAt() methods for all aggregates/multis
I would love to see 2 new methods on all aggregates/multis (FMEAggregate, FMEMultiSurface, FMECompositeSurface etc.) classes in the FME Objects Python API, as this allows us to manipulate parts in a less tedious manner.
I'd like to be able to just replace or remove a specific part by its index, using a setPartAt() and a removePartAt() method.
Now, we can only append a part (appendPart()) or remove it from the end (removeEnd/LastPart() - I see both names in the API), but what if I simply like to replace some part by another geometry or remove one part? Then I'd have to create a new empty aggregate, read the parts from the current aggregate using getPartAt() and then copy over the ones I want to preserve in the new aggregate using appendPart(), adding/skipping the parts I want to replace/remove respectively. The biggest problem here is that I loose all transformation matrices in the process, so I also need to copy those over. Using the proposed methods, we could just leave everything intact.
