12 - Turning our script into an ArcGIS Tool - ArcMap Scripting with Python and Arcpy

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 39

  • @Roberta4133
    @Roberta4133 3 года назад +1

    These videos are great! All the previous ones made lots of sense now that you showed how to build the "fancy looking" toolbox. Thanks a lot! It has been really helpful :)

    • @Franchyze923
      @Franchyze923  3 года назад

      You’re welcome! Thanks for watching

  • @paulonevescoelho699
    @paulonevescoelho699 4 года назад +2

    Thank you Fran, great video, very helpful. It is very clear, even for a lawyer! Keep going! Greetings from Portugal

    • @Franchyze923
      @Franchyze923  4 года назад

      You're welcome! Thanks for watching!

  • @ChipWeir-tb7qp
    @ChipWeir-tb7qp Год назад

    nice! still valid 6 years later. I had to adapt some things here and there since I'm using ArcPro, but the video was still helpful. Thanks!

    • @Franchyze923
      @Franchyze923  Год назад

      Sweet! Glad it's still helpful. I've also got some ArcPro videos too - ruclips.net/p/PLO6KswO64zVt8YCuKIOdCsJvlUivXETGu

  • @mannedsoldier99
    @mannedsoldier99 3 года назад +1

    Thank you for this man, I'm currently going through your tutorial and will jump to the Arcgispro version next. You sir are a legend

  • @julstooo3271
    @julstooo3271 5 лет назад +1

    Hey, you are explaining this really good. Thanks so much!
    Greetings from Germany

    • @Franchyze923
      @Franchyze923  4 года назад

      You're welcome! Thanks for watching

  • @juancarlosastrozaoyanguren4839
    @juancarlosastrozaoyanguren4839 2 года назад

    any idea why I'm getting this error in the loop for the last 5 videos??
    Traceback (most recent call last):
    File "Z:/Users/juanastroza/Documents/GIS_projects_data/tutorial_ArcMap_Python/Scripts/11_adding_IF_selectbylocation_searchcursor.py", line 28, in
    print "{} didn't meet the criteria".format(x[1])
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xe3' in position 1: ordinal not in range(128)

    • @Franchyze923
      @Franchyze923  2 года назад

      Try adding .encode('utf-8'), someone else ran into this issue. Check the comments on video 11 of this playlist, there is a comment with more detail. Hopefully that helps.

  • @brauliocarraha8914
    @brauliocarraha8914 4 года назад +2

    thanks!
    best part.. "for the shit.. city..." hehe
    Greetings from Chile

  • @fish2222223222222
    @fish2222223222222 4 года назад +1

    This was very helpful! The link to this video should be included in the help documentation

    • @Franchyze923
      @Franchyze923  4 года назад +1

      Thanks for watching ! Glad it was helpful

  • @yaminichoutukuri6245
    @yaminichoutukuri6245 2 года назад

    can someone help me why am i getting this error
    Traceback (most recent call last):
    File "E:/Project on Arcpy/Script/Conditional Statement_IF.py", line 25, in
    arcpy.MakeFeatureLayer_management(countries, 'countries_layer', """ "FID" = {} """.format(x[0]) )
    File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 6495, in MakeFeatureLayer
    raise e
    arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
    ERROR 000725: Output Layer: Dataset countries_layer already exists.
    Failed to execute (MakeFeatureLayer).

    • @Franchyze923
      @Franchyze923  2 года назад

      hmm that's kinda strange, can you share your code?

  • @luizafreitas2475
    @luizafreitas2475 4 года назад +1

    This is really helpful, thank you!

  • @kostadin121
    @kostadin121 3 года назад

    Why do I get this when I run it I can't figure out the problem can I get some help?
    Traceback (most recent call last):
    File "C:/Users/Koce/Desktop/Softverski/Zadaca/Scripts/Skripta3.py", line 13, in
    arcpy.MakeFeatureLayer_management(points, 'points_layer')
    File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\management.py", line 6965, in MakeFeatureLayer
    raise e
    arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
    ERROR 000735: Input Features: Value is required
    Failed to execute (MakeFeatureLayer).

    • @Franchyze923
      @Franchyze923  3 года назад +1

      can you share your code?

    • @kostadin121
      @kostadin121 3 года назад

      @@Franchyze923 I don't know why but my comments aren't showing when I put the link of the code on here...
      It's the code from your GiftHub page in the folder scripts named gis_script_vid_12.py

    • @Franchyze923
      @Franchyze923  3 года назад

      @@kostadin121 is the code exactly the same as what is on github? It's complaining about line 13 which is arcpy.MakeFeatureLayer_management(points, 'points_layer'). What are you setting your points variable to in line 5?
      points = arcpy.GetParameterAsText(0) ? I would make sure that exists, and you can view that file in arcmap.

    • @kostadin121
      @kostadin121 3 года назад

      @@Franchyze923 I used the same code from the GiftHub page and it's the same and I can't run it as a tool says "failed to execute"

    • @Franchyze923
      @Franchyze923  3 года назад

      @@kostadin121 double check line 5
      points = arcpy.GetParameterAsText(0). And check whatever points layer you're trying to use.

  • @kaylam4022
    @kaylam4022 3 года назад

    Thanks for sharing! Helped me a lot

    • @Franchyze923
      @Franchyze923  3 года назад

      You're welcome! Glad it was helpful

  • @ArsenBeglarian
    @ArsenBeglarian 4 года назад +1

    Thank you so much, great tutorial.

    • @Franchyze923
      @Franchyze923  4 года назад

      You're welcome! Glad it was helpful

  • @rahulkoley9447
    @rahulkoley9447 4 года назад

    Hello Sir your ide background is totally black, code are not visible can you share me the code !!
    Thank You

    • @Franchyze923
      @Franchyze923  3 года назад

      Just added the code to GitHub
      github.com/franchyze923/Code_From_Tutorials/tree/master/Arcgis%20Scripting%20with%20Python%20Arcpy

  • @neelanateshs619
    @neelanateshs619 4 года назад

    I'm not getting your 22nd line of code, can you explain me

    • @Franchyze923
      @Franchyze923  3 года назад +2

      We had to rename the output file because it contained parenthesis () and was causing an error. If you watch video 8, that is when we first do it and I explain it a little better. ruclips.net/video/6ZgvoGNPVwQ/видео.html

  • @CessTenn
    @CessTenn 3 года назад

    Amazing! It worked for me. Also, I'm sure there is a way to input the fields that we want to loop through :)

  • @jimivie
    @jimivie 2 года назад

    I'm over here just making toolboxes...