Generate pattern ids automatically at creation from the context menu.