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.

I have a bit of a complex scenario that I'm unsure how to put together into one model or script file. What I'm doing is creating service definition files then uploading these SD files to a server. All my MXDs are housed in folders and subfolders.

I have created a model that iterates through all folders and sub folders and creates the SD files. enter image description here

Then I have created a model that takes the input of the folder where the SD file exists, the server and the server folder and uploads the SD to the server.

enter image description here

These both work independently of each other.

What I would like to do is be able to integrate these together into one model or script. Where the first model will create all the SD files then these will subsequently be uploaded to the server with the second model.

An issue I'm running into is having the Server Folder as a parameter in the second model. I would like to be able to create a new server folder based on the name of the folder that the SD exists in. I'm not sure if this is possible but I am very hopeful!

share|improve this question
1  
Just a note - you can set the folder when you use CreateMapSDDraft. When you call upload just pass 'FROM_SERVICE_DEFINITION' for the folder parameter to use the folder. With this method, it'll be much easier in Python to simply get the folder or set it using whatever logic makes sense and then you dont need to worry about it as a parameter and trying to parse it in the model. –  KHibma Jan 27 at 21:54

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.