Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "*")[0]
addLayer = arcpy.mapping.Layer(r"F:\project\Final\Ground floor\steps.lyr")
arcpy.mapping.AddLayer(df, addLayer, "BOTTOM")

this code is for adding a layer in arcmap. when i use the same code to add a 3D layer in arcscene i get the following error

cannot open map document

Failed to execute (addlayer).
share|improve this question

Unfortunately, ArcScene has not been opened up to ArcPy like ArcMap has.

There is an ArcGIS Idea to have this functionality added to which you might like to add your name.

share|improve this answer

Your Answer


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.