I know this is possible through the Pro UX, but i'm trying to write it in python. From what I see in the geoprocessing help, the tool only accepts one input
Hi Cyrus,
I believe you will need to create a Group Layer ahead of time. You can add the layers to the Group, then create the layer file from the Group. However, from what I could find there is no way to create a Group Layer via python.
Interesting that you can add a layer to a group but not create one.... AddLayerToGroup—Help | ArcGIS Desktop
Ya, unfortunately that doesn't help. I need to sort through a list of ~1000 buildings, create a group for each combining 5 layers, and export the group to a .lyrx.
Odd that the functionality is included through manually selecting the layers-->right clicking-->share as layer file but NOT through arcpy.
You can just create one empty group layer file and use it as a template, i.e., add 5 layers to the empty group layer and save it, rinse, repeat.