Skip to main content
replaced http://gis.stackexchange.com/ with https://gis.stackexchange.com/
Source Link

You could request this as an ArcGIS Idea but so far, at least for me, requirements like this have been easy to meet by just opening a new MapDocument object so I suspect it would not attract a lot of votes.

For example, when Selecting predefined ArcMap template using ArcPy?Selecting predefined ArcMap template using ArcPy? means a "predefined template" to be an MXD located in a Map template folder inside an ArcGIS installation directory, it should just need:

mxd = arcpy.mapping.MapDocument(r"Current")

(although there is no need for the r before "Current" above)

to be replaced with:

mxd = arcpy.mapping.MapDocument(r"<path>\<template>.mxd")

You could request this as an ArcGIS Idea but so far, at least for me, requirements like this have been easy to meet by just opening a new MapDocument object so I suspect it would not attract a lot of votes.

For example, when Selecting predefined ArcMap template using ArcPy? means a "predefined template" to be an MXD located in a Map template folder inside an ArcGIS installation directory, it should just need:

mxd = arcpy.mapping.MapDocument(r"Current")

(although there is no need for the r before "Current" above)

to be replaced with:

mxd = arcpy.mapping.MapDocument(r"<path>\<template>.mxd")

You could request this as an ArcGIS Idea but so far, at least for me, requirements like this have been easy to meet by just opening a new MapDocument object so I suspect it would not attract a lot of votes.

For example, when Selecting predefined ArcMap template using ArcPy? means a "predefined template" to be an MXD located in a Map template folder inside an ArcGIS installation directory, it should just need:

mxd = arcpy.mapping.MapDocument(r"Current")

(although there is no need for the r before "Current" above)

to be replaced with:

mxd = arcpy.mapping.MapDocument(r"<path>\<template>.mxd")
Improving to account for merged questions
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Assuming thatYou could request this as an ArcGIS Idea but so far, at least for me, requirements like this have been easy to meet by just opening a new MapDocument object so I suspect it would not attract a lot of votes.

For example, when Selecting predefined ArcMap template using ArcPy? means a "predefined template" you meanto be an MXD located in youra Map template folder inside youran ArcGIS installation directory, youit should simplyjust need to replace:

mxd = arcpy.mapping.MapDocument(r"Current")

(although there is no need for the r before "Current" above)

to be replaced with:

mxd = arcpy.mapping.MapDocument(r"<path>\<template>.mxd")

Assuming that by "predefined template" you mean an MXD located in your Map template folder inside your ArcGIS installation directory, you should simply need to replace:

mxd = arcpy.mapping.MapDocument(r"Current")

(although there is no need for the r before "Current" above)

with:

mxd = arcpy.mapping.MapDocument(r"<path>\<template>.mxd")

You could request this as an ArcGIS Idea but so far, at least for me, requirements like this have been easy to meet by just opening a new MapDocument object so I suspect it would not attract a lot of votes.

For example, when Selecting predefined ArcMap template using ArcPy? means a "predefined template" to be an MXD located in a Map template folder inside an ArcGIS installation directory, it should just need:

mxd = arcpy.mapping.MapDocument(r"Current")

(although there is no need for the r before "Current" above)

to be replaced with:

mxd = arcpy.mapping.MapDocument(r"<path>\<template>.mxd")
Post Merged (destination) from gis.stackexchange.com/questions/178011/…
deleted 7 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Assuming that by "predefined template" you simply mean an MXD located in your Map template folder inside your ArcGIS installation directory, you should simply need to replace:

mxd = arcpy.mapping.MapDocument(r"Current")

(although there is no need for the r before "Current" above)

with:

mxd = arcpy.mapping.MapDocument(r"<path>\<template>.mxd")

Assuming that by "predefined template" you simply mean an MXD located in your Map template folder inside your ArcGIS installation directory, you should simply need to replace:

mxd = arcpy.mapping.MapDocument(r"Current")

(although there is no need for the r before "Current" above)

with:

mxd = arcpy.mapping.MapDocument(r"<path>\<template>.mxd")

Assuming that by "predefined template" you mean an MXD located in your Map template folder inside your ArcGIS installation directory, you should simply need to replace:

mxd = arcpy.mapping.MapDocument(r"Current")

(although there is no need for the r before "Current" above)

with:

mxd = arcpy.mapping.MapDocument(r"<path>\<template>.mxd")
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Loading