4

I see arcpy.ddd referenced in 3D Analyst code, but I don't see it documented anywhere. What is this module and how does it relate to 3D Analyst?
For example:

Stack Profile

# Execute StackProfile
arcpy.ddd.StackProfile(profileLine, profileTargets, profileTable, graphName)
# Execute SaveGraph
arcpy.management.SaveGraph(graphName, outGraph)
2
  • 1
    In addition to @artwork21 answer, if you're asking why ddd instead of 3d, my best guess is its generally bad form to start variables, classes, methods, etc with a number. Thus, three letter 'd' = 3d. (best guess as this was created well before I joined esri)
    – KHibma
    Nov 8, 2016 at 21:03
  • 1
    It looks like a similar answer is here: link
    – Rex
    Nov 8, 2016 at 22:21

1 Answer 1

5

When you type arcpy.ddd into the python console in ArcMap or ArcCatalog it notes arcpy.ddd is:

arcpy.ddd The 3D Analyst toolbox provides a collection of geoprocessing tools that enable a wide variety of analytical, data management, and data conversion operations on surface models and three-dimensional vector data. The toolbox is conveniently organized into toolsets which define the scope of tasks accomplished by the tools therein.

I'm guessing it is a class that holds the related 3D geoprocessing methods.

1
  • 1
    Yup, the same as "management" in the code sample, or "na" for network tools.
    – KHibma
    Nov 8, 2016 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.