


# Specify that collada file is prefixed by source name OutDir = arcpy.CreateUniqueName('collada_dir') # Determine if feature class is a multipatch # Determine if the list contained any feature classes # Create list of feature classes in workspace InWorkspace = arcpy.GetParameterAsText(0) This process does not use a datum transformation, which may result in positional discrepancies when viewing the KML. kml file containing the coordinates as WGS84 will also be created in the output folder. If the exported multipatch is in a projected coordinate system, such as a building stored in a UTM zone, a. This will keep a single file on disk for that feature, representing the most up-to-date state of the 3D object. When iteratively updating a multipatch feature by exporting it to COLLADA and making changes outside of ArcGIS, export the feature to the same location each time. Exporting two features with the same attribute value will result in the second exported feature overwriting the COLLADA file of the first. To ensure a new COLLADA file is created for all exported multipatch features, set the destination directory to an empty or new folder and choose a file name field that is unique for each feature. Notes: When the level of detail view is turned on, surfaces may not be exported correctly. On the Export and View page, you can click View to view the exported file. A geoprocessing message is also generated for features that fail to export-for example, if the output location is read-only or the disk is full. On the File page, specify the file name, location, and file extension. When this occurs, a warning message appears stating the files that were overwritten with a new file during the export process. This tool automatically overwrites existing COLLADA files with the same file name. To minimize the total export file size, textures that are used in multiple COLLADA files-such as a repeated brick or window texture-are only exported once and are referenced by the applicable. Texture files are stored in the same directory as the COLLADA file. This allows the identification of which feature was exported to which COLLADA file and provides the methodology for defining unique names when exporting multiple features to the same directory.

We might now want to think about styling, texturing or editing. With the 3D Analyst extension, we can export this to a multipatch (3D feature class) to save the three-dimensional enclosed mass(es) to file. The tool uses a field value from each feature-by default, this is the Object ID-to define the output file names. At this point, we are still working with a polygon feature class, it’s just that it’s being displayed in three dimensions. This tool creates one COLLADA representation for each multipatch feature that it exports. dae file containing the XML representation of the 3D object and one or more image files (for example, a. This means that exporting a multipatch feature to COLLADA can result in the creation of several files-a. A COLLADA file is an XML representation of a 3D object that can reference additional image files that act as textures draped onto the 3D geometry.
