Select to view content in your preferred language

Inport .skp into ArcGIS Pro

5111
4
04-08-2016 04:56 AM
changyao-shin
Deactivated User

I'm the beginner of Arcgis pro.

Where is the code wrong ?

arcpy.env.workspace = "C:\Projecct\SketchUp"

arcpy.Import3DFiles_3d("geo.skp", "Test.gdb/AddisSheraton", 'ONE_FILE_ONE_FEATURE','' , 'Z_IS_UP', 'SKP' )

Runtime error

Traceback (most recent call last):

  File "<string>", line 2, in <module>

  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\ddd.py", line 1008, in Import3DFiles

    raise e

  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\ddd.py", line 1005, in Import3DFiles

    retval = convertArcObjectToPythonObject(gp.Import3DFiles_3d(*gp_fixargs((in_files, out_featureClass, root_per_feature, spatial_reference, y_is_up, file_suffix, in_featureClass, symbol_field), True)))

  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 500, in <lambda>

    return lambda *args: val(*gp_fixargs(args, True))

arcgisscripting.ExecuteError: ERROR 050038: No Valid Files

CreateFeatureClassName: The workspace Test.gdb does not exist.

Failed to execute (Import3DFiles).

Tags (2)
0 Kudos
4 Replies
DanPatterson_Retired
MVP Emeritus

to remove the obvious

this .... "C:\Projecct\SketchUp"

should be this .... r"C:\Projecct\SketchUp"

or this .... "C:\\Projecct\\SketchUp"

or this .... "C:/Projecct/SketchUp"

since python requires raw notation or the use of forward slashes or double backslashes

changyao-shin
Deactivated User

Dear Patterson

thanks for you help

but after compiled , I could saw the result but couldn't saw the shp I want on the screem.

How can I add the shp which I compile ?


					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
0 Kudos
DanPatterson_Retired
MVP Emeritus

that is a result object Result—Help | ArcGIS for Desktop

This tool just adds it to a multipatch Import 3D Files—Help | ArcGIS for Desktop do you then have to add it to manually? it is isn't clear, but you go no error message so either it worked or it worked but does nothing.

changyao-shin
Deactivated User

It seen not the reason

I found it show add the "Symbol field"

But I cant understant what should I fill in this option.

0 Kudos