Print "There are no feature classes in " + env.workspace + ". Print "There are no multipatch shapefiles in " + env.workspace + "." # Specify the feature attribute used to name Collada filesĪrcpy.MultipatchToCollada(fc, outDir, prepend, fldName) # 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 # Obtain a license for the 3D Analyst extension I would provide more information, but SketchUp does not provide anything other than ‘Failed’. The importing of Collada files would appear to be broken. # MultipatchToCollada tool to convert all multipatch shapefiles Using SketchUp Light I am having an issue importing Collada. Saya telah mengubahnya menjadi multi patch menggunakan Layer 3D ke Feature Class dan sekarang saya mahu menerapkan tekstur pada bangunan-bangunan di Sketchup. # Description: The following stand-alone script demonstrates how to use the The following stand-alone script demonstrates how to use the MultipatchToCollada function. Note that this process will not use a datum transformation, which may result in positional discrepancies when viewing the KML. If the exported multipatch is in a projected coordinate system, such as a building stored in a UTM zone, then a KML file containing the coordinates as WGS84 will also be created in the output folder. 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 the exported multipatch features, set the destination directory to an empty or new folder and choose a filename field that is unique for each feature. A GP message is also generated for any features that fail to export-for example, if the output location is read-only, or the disk is full. ![]() When this happens, a warning message is given stating which files were overwritten with a new file during the export process. ![]() This tool automatically overwrites any existing COLLADA files with the same filename. Texture files are stored in an images subdirectory, below the COLLADA file. This allows easier identification of which feature was exported to which COLLADA file and also provides the methodology for defining unique names when exporting multiple features to the same directory. The tool uses a field value from each feature-by default this is the Object ID-to define the output filenames. 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. COLLADA files are an XML representation of a 3D object that can reference additional image files that act as textures draped onto the 3D geometry.
0 Comments
Leave a Reply. |