Select to view content in your preferred language

Model builder - cannot export multiple features to chosen database

1322
2
Jump to solution
02-09-2023 08:47 AM
AF2023
by
Occasional Contributor

I have built a model that I wish to distribute to members of my organisation to be able to use. The tool runs as follows: input a boundary, convert feature to point, buffer and then batch clip selected features to the buffer boundary. It works fine and exports layers as Clip%Name%. However, I am unable to work out how to easily allow other members of the organisation to set the geodatabase for the exports to go to. When I run it as a tool, it automatically exports to the geodatabase associated with the project in which I made the model. If I set the output values to be a parameter, it allows me to change the location of where the new layers will be saved, but only one feature from the export actually works, when there should be multiple. I am able to change the geodatabase in the path name, but this isn't user friendly and more than likely will end up with data being exported to the wrong gdb.

I am new to model builder so may have missed something obvious, but I have tried changing the current and scratch workspace environments but it doesn't help. Any help would be greatly appreciated!

0 Kudos
1 Solution

Accepted Solutions
Kepa
by Esri Contributor
Esri Contributor

Hello @AF2023,

I think you can easily accomplish it creating a variable (workspace type). Then set this variable as parameter to allow users to choose the right output. Finally you just need to change the Clip%Name% to %variableName%\Clip%Name%.

Snipaste_2023-02-10_08-05-27.png

Hope that helps!

View solution in original post

2 Replies
Kepa
by Esri Contributor
Esri Contributor

Hello @AF2023,

I think you can easily accomplish it creating a variable (workspace type). Then set this variable as parameter to allow users to choose the right output. Finally you just need to change the Clip%Name% to %variableName%\Clip%Name%.

Snipaste_2023-02-10_08-05-27.png

Hope that helps!

AF2023
by
Occasional Contributor

Brilliant - thank you!

0 Kudos