New Tool/Model
#1
Posted 21 February 2011 - 02:22 PM
I want to make a model and leave a couple parameters open so it runs more like a tool where I have to set a couple parameters before it runs.
I'm running, over and over, a couple tools in a row but each time one of the parameters has to change. I know I can run the model, change the one parameter and run it again over and over. I'm curious if there is a different way I don't know of. It seems like new tools that tie other tools together would be something you can do.
#2
Posted 21 February 2011 - 03:52 PM
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
#3
Posted 21 February 2011 - 06:14 PM
Laura
#4
Posted 21 February 2011 - 11:47 PM
HTH,
David
#5
Posted 22 February 2011 - 09:59 AM
If you are using ArcGIS, then I would skip creating anything new in VBA. It won't be supported after 10, and even then requires a separate install. You should be able to accomplish this with Modelbuilder and Python. If you need something more, then .NET. Unfortunately, there isn't anything in between now that VBA is going away.
HTH,
David
I've heard that VBA is going away. The GIS program I took just two years ago was very VBA-intensive. Wish they'd spent more time on Python instead!
Laura
#6
Posted 22 February 2011 - 10:25 AM
I've heard that VBA is going away. The GIS program I took just two years ago was very VBA-intensive. Wish they'd spent more time on Python instead!
Laura
Yeah, it's frustrating that they are getting rid of VBA, especially since there are so many scripts available. Probably how it felt when they got rid of Avenue and AML.
If you know some VBA, getting transitioned to using VB.NET shouldn't be too difficult. Or, I learned a bit of python simply by taking models and exporting them out to a python script then manipulating it. Almost each help page for each geoprocessing tool has an example python script at the bottom. Hopefully they'll just stick with something for longer than two software iterations.
#7
Posted 22 February 2011 - 10:09 PM
Alternatively create your model and export it to python. Then add in code to input the new parameters on each iteration. You could write it in VB.Net but python will be quicker.
Hi,
I want to make a model and leave a couple parameters open so it runs more like a tool where I have to set a couple parameters before it runs.
I'm running, over and over, a couple tools in a row but each time one of the parameters has to change. I know I can run the model, change the one parameter and run it again over and over. I'm curious if there is a different way I don't know of. It seems like new tools that tie other tools together would be something you can do.
#8
Posted 23 February 2011 - 05:06 PM
Try making a smaller version of the model, one or two iterations. Then export to python or some other script. View that script and once you are familiar with the pattern, copy and past that lines and change the variables.Hi,
I want to make a model and leave a couple parameters open so it runs more like a tool where I have to set a couple parameters before it runs.
I'm running, over and over, a couple tools in a row but each time one of the parameters has to change. I know I can run the model, change the one parameter and run it again over and over. I'm curious if there is a different way I don't know of. It seems like new tools that tie other tools together would be something you can do.
"We may not be big, but we're slow."
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account
United States
Back to top
Netherlands
Canada
New Zealand








