I am having inconsistent behavior between the distributed geodatabase toolbar 'create replica' tool and the Create Replica (data management) geoprocessing tool.
As it currently stands, the toolbar provides the functionality I am after.
Any query or selection is honoured by both tools with regards to the checked-out geometries / features.
The distributed geodatabase toolbar create replica tool will check out ONLY the attachments that correspond to the selection.
Result = 5 features, 5 attachments. - this is what I want
The create replica geoprocessing tool will check out ALL the attachments but ONLY the selected features.
Result = 5 features, 21000 attachments.
GP tool params:
inputs are layers from the table of contents - referencing a specific version
replicating to a file geodatabase
The same issue is experienced when using an extent instead of a selection.##
Maybe its better if you report this to Esri Tech Support and let them try and reproduce the behavior.
For future reference, this was resolved with USE_DEFAULTS as the expand feature classes and tables optional parameter.