Skip to main content

Questions tagged [python-add-in]

A python extension to a software program that performs a custom task.

1 vote
0 answers
50 views

Python Add-in Shows up as Missing then Works after Logging in Again Through Citrix

I have created a Python Add-in that works well when installing it through the add-in installer or when adding the add-in directory folder to the registry string (Computer\HKEY_LOCAL_MACHINE\SOFTWARE\...
kShort's user avatar
  • 83
1 vote
2 answers
156 views

How to start a Python script from a ArcGIS Pro AddIn?

I use C# for creating an AddIn for ArcGIS Pro 3.1. I got a feature request to start a python script (which is part of a toolbox) and pass some arguments. Unfortunately I found only descriptions about ...
Gener4tor's user avatar
  • 175
0 votes
0 answers
28 views

ArcMap stops working when I click on add-in ArcMap [duplicate]

First creating the form with a tkinter. as in the code below. # -*- coding: utf-8 -*- import tkinter as tk import tkinter.font as tkFont from tkinter.ttk import Combobox class RestServis: def ...
Cnrgrsc's user avatar
1 vote
1 answer
500 views

Query error cannot concatenate 'str' and 'Result' objects

I wrote a simple script that iterates trough selected polygons and cuts the points of other layers, and export shapes and txt to different folders according to the zones defined by the polygons. The ...
nanunga's user avatar
  • 543
0 votes
0 answers
68 views

Python Addin Script not working

I have a python script which runs fine. I am creating toolbar and button. When I copy my script into the addin python file. it does not run. import arcpy import pythonaddins class ButtonClass1(object)...
Shrek's user avatar
  • 1
0 votes
0 answers
246 views

Realizing arcpy.mapping.MapDocument("CURRENT")

I am curious as to how arcpy.mapping.MapDocument("CURRENT") works. I used to execute highlight in the sub thread, but didn't work. Does it only work in the main thread (including arcpy....
Bill Shen's user avatar
0 votes
1 answer
197 views

Why geoprocessing changes output spatial reference, when input is geometry object?

I am trying to write an ArcMap 10.6 Python add-in, which cuts narrow places of polygons. In the script I work with geometry objects. Testing my add-in I noticed, when I use geoprocessing tools with ...
user avatar
0 votes
0 answers
111 views

arcpy.mapping.MapDocument("CURRENT") not working in sub thread

I want to create a customize tool in ArcMap by Python Add-in wizards.I found that arcpy.mapping.MapDocument("CURRENT") does not work in the sub thread. How can I call main thread to execute ...
Bill Shen's user avatar
2 votes
1 answer
491 views

arcpy Layer.setSelectionSet() not working in Python add-in

Using ArcGIS 10.8 (Desktop), I use a few lines of Python to set the selection in a layer called 'HNVKartierung' in a dataframe called 'HNVDaten' to a certain OID in order to then zoom to the selected ...
Daniel Fuchs's user avatar
0 votes
0 answers
29 views

Copying an object with attachments from a distributed database to a distributed one

I wrote a addins to transfer selected objects from one distributed database to another. Each layer participates in a geographic service (MapService). The program works successfully sometimes, and ...
Lora's user avatar
  • 45
1 vote
1 answer
365 views

Adding message error box when parameters do not satisfy some conditions

I have 3 parameters in my tool, including para0, para1, para2. These parameters will be the user's inputs. I would like to display a message box if para0>para1 or para1>para2 or para2>para3. ...
user30985's user avatar
  • 379
0 votes
0 answers
46 views

How to add a save and load button in a Python-addin ArcGIS?

I would like to generate a tool in Python-Addin ArcGIS as the image attached. I also like to generate the save and load button in the tool. My purpose is that when the user chooses the range ...
user30985's user avatar
  • 379
-1 votes
1 answer
73 views

Converting ArcMap to ArcGlobe code using ArcPy [duplicate]

I have a code that should read the mouse coordinates, but it only works in ArcMap, can I somehow translate it into code for ArcGlobe, otherwise it gives an error: CreateObject cannot open map document....
easyfreeze's user avatar
-2 votes
1 answer
188 views

Obtaining XY coordinate when clicking on globe using ArcGlobe

Work in ArcGlobe and I want to calculate the coordinates of the globe latitude and longitude, but the coordinates from the mouse click is read from the screen, not the globe, because when I clicked on ...
easyfreeze's user avatar
0 votes
1 answer
127 views

Measuring distance in ArcGlobe using Python AddIn

I want to make a Python script that will calculate the distance of the line I drew and output it in a special form, but I can't figure out what I'm doing wrong. import arcpy import pythonaddins class ...
easyfreeze's user avatar

15 30 50 per page
1
2 3 4 5
19