How to add layers from modelbuilder into spesific TOC grouplayers??

2992
1
05-06-2014 04:54 AM
Milenavon_Zabern
New Contributor
Hello,

From a Model I have several output-layers which I want to move to their respective group layer. I usually select the layers in the TOC and drag them itto the group layer. How can I archive this effect with Model Builder?

I would be very thankful for your help!

Milena
0 Kudos
1 Reply
markdenil
Occasional Contributor III
To do that as part of your model,
you would likly have to build a custom script tool in arcpy
and add it to your model.

Alternitivly, you can run the model from an enclosing script that
slots the output into your mxd.

The arcpy script will use the arcpy.mapping functions to work with the mxd;
particulary AddLayerToGroup (data_frame, target_group_layer, add_layer, {add_position})
0 Kudos