Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is it possible to use the functions from ArcMap's main menu (for example Add Data, Start Editing) in my model? I can not find a way to add any other functions except Toolboxes.

share|improve this question
    
What functions do you want to use from ArcMap menu? Main idea of ModelBuilder is to apply some processing tasks (geoprocessing) to input data and receive output. –  Alex Markov May 31 '12 at 10:15
    
Tools that support edit sessions piggyback onto the existing edit session. It is not possible without using ArcObjects to start/stop an edit session programmatically. –  blah238 Jun 4 '12 at 3:35
add comment

2 Answers

There is actually one hacky method. To use COM objects in Python and in this way to communicate with ArcObjects.

There was already such topic here: How do I access ArcObjects from Python?.

Read also this presentation: Using ArcObjects in Python.

and this thread on Esri forum: ArcMap 10, ArcObjects, and Python: very cool, but help with a couple of problems?

share|improve this answer
add comment

ArcToolbox tools or standalone Python scripts are the only entry points available to ModelBuilder. Access to other tools or ArcObjects entry points are currently not supported.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.