Jump to content
  • Announcements

    • EmperoR

      Dear Guests   12/24/2016

      Welcome to the GIS-AREA. like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of GIS-AREA by signing in or creating an account here. Once you have created your account and have introduced yourself to our community, you can start new topics, reply to others, subscribe interesting threads, get your customize profiles, make news friends, and others nice stuff. To make your stay as pleasant and constructive as possible, please don't forget to read through our pinned forum rules and board guidelines in each section before you do anything else.
Sign in to follow this  

Problem with an Arcpy code

5 posts in this topic Last Reply

Recommended Posts

Hi everybody,

This is my first time to this forum and I have a little problem with arcpy code:


#Current map document

mxd = arcpy.mapping.MapDocument("CURRENT")



x = raw_input("Insert the Name please ")




what is wrong with this code, I need your help Please.


Share this post

Link to post
Share on other sites

try with full path befor inputing the name of jpg, i should work



Share this post

Link to post
Share on other sites

import arcpy
from arcpy import mapping as ma

path_original = arcpy.GetParameterAsText(0)
newtitle = arcpy.GetParameterAsText(1)
path_expotert = arcpy.GetParameterAsText(2)

mappa = ma.MapDocument(path_original)
ma.ExportToJPEG(mappa,path_expotert +'/' + newtitle + '.jpg')

  • Like 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

By using this site, you agree to our Terms of Use.