![]() Gp. Gp.SaveToLayerFile_management(selectionLyr, outputLyr) Gp.MakeFeatureLayer_management(inputFC, selectionLyr, sqlexp) SelectionLyr = inputBasename + " selection" # need to be removed from the list object) # Select features whose OID value occurs in the random list, generate Inside the yourFileName.exeextracted folder, find the file without any extension. exe and create a folder named yourFileName.exeextracted. Gp.addmessage("Creating the list of randomly selected features") 2 Answers Sorted by: 7 Use pyinstxtractor.py: python pyinstxtractor.py yourFileName.exe This will extract. You can select the conversion format for each individual files, or for all files at once if the CONVERT ALL TO. Select the format you want to convert your files to. The total size of all files must be smaller than 1GB. You can concurrently convert a maximum of 25 files. Gp.addmessage ("Loading all IDs into a list") Select or drop the EXE files you want to convert in the designated area. # Generate a list of all features, and select randomly from this Gp.addmessage("Selecting " + str(numValues) + " random features") NumValues = int(round(totpnts * float(inpct) / 100.0)) InputBasename = os.path.basename(inputFC) The most proven option is to download dedicated software that allows you to convert between the EXE and PY formats. # Ensure that the input percentage is between 1 and 100% EXE to PY - Convert EXE file to PY online How to convert EXE to PY You can convert EXE files to PY format in several ways. InputFC = sys.argv # Feature Class or Feature Layer Set these parameters in ArcToolbox as shown. All Python to exe packers work the same, they are using a special bootloader that unpacks an archive of Python interpreter and scripts in your RAM and executes it. # Specify input featureclass, output *.lyr file and the percentage of Hi Thank You so much for reply and helping me, just to add the model runs completely smooth and how its intended to do, in ArcMap 10.īut here is the script hopefully u guys can help me. If you could post the python script that was included in the model, we could probably help you debug or update it so it can run for 10.0 - 10.2 To convert a Python script to an executable file (.exe) online, you can use a tool called 'PyInstaller. the gp you see is the older version syntax they used. Ah, it seems the python script you included in the model is probably from arcgis 9.3 or prior, which used different syntax for certain tools then what is being used for 10.0 to current.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |