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.
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).

please help. its important for my thesis work!

share|improve this question
add comment

1 Answer

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
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.