flattenOutlines cannot be revoked

GSLayer.flattenOutlinesRemoveOverlap_origHints_secondaryPath_extraHandles_error_(False, None, None, None, None)
After this method is executed, it cannot be revoked(command+z) to the state before expansion.How can solve this problem?

flattenOutlines is only being used on export. So undo is disabled on purpose. What do you need it for?

i need batch to expanded for selected glyphs.

The menu command PathRemove Overlap (⇧⌘O) works with all selected glyphs, both in Font View and Edit View.

i want to batch expand path,not removelap.

What exactly do you try to expand?