|
POST
|
If might help if you either attach the tool/script you downloaded or include the URL of what you downloaded. Then others could try to see if they are getting the same thing. How are you adding the new tool script? Are you right-clicking on a toolbox you created (ie. that you have read/write access to) and then choosing "Add-> Script" ? Or are you adding it in another way? Are they compatible versions? Just a few things to check. I add my own python scripts to custom toolbars all the time and have not had any issues with the Paramater tab....but I'm still on 10.3.1 for development.
... View more
10-30-2017
11:03 AM
|
1
|
6
|
4385
|
|
POST
|
Although not directly related to your question, I have been working on making some of my custom tools compatible in both ArcCatalog (not Map, that is, no map doc involved) and Pro. In ArcCatalog, it is an addin, but Pro does not allow python addins at lease yet so I will be using tools direct. I have some custom modules that I load into each tool. I found that Python 3.5 has to load them in a different manner than 2.7. Although this is a work in progress (i.e. that is, my tool), and this has some path dependencies to be run from a script (not interactive window), I thought I would share this here. It does seem to help me access which version of python I am using, and then go from there. fwiw. # Import system modules
import time, os
import arcpy
def myMsgs(message):
arcpy.AddMessage(message)
print(message)
# function to see if the masterGDB path is UNC or "local"
def isuncpath(a_path):
return os.path.splitunc(a_path)[0] != ''
# Set the necessary product code
arcpy.SetProduct("ArcInfo")
pathname, scriptname = (os.path.dirname(sys.argv[0]), os.path.basename(sys.argv[0]))
# Check for path to current script...
myMsgs("\n{0}\n {1} \n{0}\n".format(("*" * 38), scriptname))
myMsgs("path = {0}".format(pathname))
myMsgs("scriptname = {0}".format(scriptname))
#myMsgs("full path = {0}".format(os.path.abspath(pathname)))
scriptPath = r"\\<server>\<share>\Users\<user>\_MyPyAddins\dwcUpdateMasterFGDB_Pro\Install\scripts"
scriptPathforVer= (scriptPath.replace("\\", "/"))
myMsgs(scriptPathforVer)
myMsgs("Do both paths exist?\n scriptPath {0}\n scriptPathforVer {1}".format(arcpy.Exists(scriptPath), arcpy.Exists(scriptPathforVer)))
arcpy.env.scriptWorkspace = scriptPathforVer
sys.path.append(scriptPathforVer)
sys.path
pyVer = (sys.version[0:3])
myMsgs("the python version is: {0} ".format(pyVer))
if float(pyVer) == 3.5:
myMsgs("Using Pro, python version {0}".format(pyVer))
setVer = "3.5"
elif float(pyVer) < 3.0:
myMsgs("Using Desktop, python version {0}".format(pyVer))
setVer = "2.x"
else:
myMsgs("Software unknown, but using python version {0}".format(pyVer))
setVer = "other"
if setVer == "3.5":
import importlib.util
adfgUtilsPath = r"\\<server>\<share>\Users\<user>\_MyPyAddins\dwcUpdateMasterFGDB_Pro\Install\scripts\myUtils.py"
arcpy.Exists(adfgUtilsPath)
mymodList = ["myUtils", "gpdecorators", "StatusCheck", "sdeconnUtil"]
for mymod in mymodList:
try:
spec = importlib.util.spec_from_file_location(mymod, adfgUtilsPath)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
myMsgs("Successfully loaded {0}".format(mymod))
except:
myMsgs("-> Unable to load {0}".format(mymod))
elif setVer == "2.x":
from myUtils import *
from gpdecorators import *
from StatusCheck import *
from sdeconnUtil import *
scriptPath = sys.path[0]
arcpy.AddMessage("the scriptPath is: {0} ".format(scriptPath))
print("the scriptPath is: {0} ".format(scriptPath))
... View more
10-30-2017
10:20 AM
|
1
|
0
|
3702
|
|
POST
|
Glad you were able to resolve you issue. A couple things....it would be good to give a summary of what you did instead of just that you found it. It may help others with the same issue in the future. Also, you can at least mark this as "assumed answer" so the thread is closed. Also, you may want to try https://community.esri.com/docs/DOC-2258?sr=search&searchId=6278fc22-7189-4944-a4bb-fdebaae73f0a&searchIndex=3 to move this thread to the https://community.esri.com/groups/web-app-builder-custom-widgets?sr=search&searchId=59acc976-f8eb-4abc-b4a4-99831e0b1dde&searchIndex=0 (developer or custom widgets) or https://community.esri.com/community/gis/web-gis/web-appbuilder?sr=search&searchId=59acc976-f8eb-4abc-b4a4-99831e0b1dde&searchIndex=1 (more general WAB, including online). For tagging others groups for more exposure (as I did above), if you use the @ and the space name, it shows up there too. For WAB related questions, those locations will get more views than the Configurable Apps (which covers a lot of other apps too). Just some suggestions (for you or others), and a good blog to read thru https://community.esri.com/community/help-and-feedback/blog/2016/08/15/community-news-and-tips-how-to-ask-questions-and-get-answers?sr=search&searchId=831212e3-3e5d-43a4-b1dc-afb9b586a60e&searchIndex=0
... View more
10-30-2017
09:56 AM
|
1
|
0
|
1474
|
|
POST
|
Shauna-Rae Brown Just an fyi, looking thru the Table of Contents for the one-day, instructor lead class "Configuring Web Apps Using Web AppBuilder for ArcGIS" Although the majority of the class looks to be for WAB Online, it looks like they do touch on the developer edition in Section 5. Also take a look a the class reources. https://community.esri.com/groups/esri-training/blog/2017/06/30/configuring-web-apps-using-web-appbuilder-course-links Although this would definitely get you started and help you decide whether you need the Dev Edition or not, I second Ken Buja 's suggestion of the recent proceedings and the videos from both the Dev Summit(s) and the UCs. They are short, focused and free to watch...something that you can do now, before a class. Esri 2017 Developer Summit Tech Sessions - YouTube or E360 Video Search | Esri Videos search for "Web Appbuilder"
... View more
10-30-2017
09:44 AM
|
0
|
0
|
2087
|
|
POST
|
MMSD_GIS Q: are you adding them to the Trusted Sites for your enterprise AGOL, or something local (e.g. IIS)? Wasn't 100% sure what "here at the district" referred to. Thanks.
... View more
10-30-2017
09:22 AM
|
0
|
2
|
2304
|
|
POST
|
Have you looked thru the website ArcGIS Solutions there are many types of "solutions" but many, if not all of these use an enterprise ArcGIS Online account (that is, I don't think a personal or free account will work). You can find out more about online, and see pricing ArcGIS Online It you haven't played with online at all yet, I would suggest getting a free account and giving it a try. Then, as Xander asked, maybe you can provide more details on what you are trying to do.
... View more
10-27-2017
07:10 PM
|
1
|
0
|
1084
|
|
DOC
|
You should add this same information to your document page https://community.esri.com/docs/DOC-10878-savesession1017zip if you can. That would give users direct access to the .zip and the info above. For now, I added a link to the above comment in the /blogs/myAlaskaGIS/2017/03/04/web-appbuilder-the-custom-widgets-list-332017?sr=search&searchId=c4b04ecb-b2b3-4d61-889a-5085c7632a19&searchIndex=2 Thanks.
... View more
10-26-2017
12:02 PM
|
0
|
0
|
18318
|
|
DOC
|
baluweston It would be helpful if you added a description and possibly some screen shots (if applicable) rather than just uploading the file by itself. My guess would be that it is a "Table of Contents" script? But for what software, what is it used for, etc. You may have a readme in the .zip. If you do, that would be helpful to see too. Thanks.
... View more
10-26-2017
07:41 AM
|
0
|
0
|
1534
|
|
POST
|
If it was working, an just started acting up, always try https://community.esri.com/docs/DOC-2121?sr=search&searchId=a81cda47-f449-42b7-bf59-209991618a8a&searchIndex=4 as the first step. (After a reboot of course).
... View more
10-25-2017
06:56 PM
|
2
|
1
|
2190
|
|
POST
|
Trying to rename a file or folder even in windows explorer will have issues and not change. A work around of course is to change it two times. Something like Total_Mdollars to Total_MDollars1 then Total_Mdollars1 to Total_MDollars Not ideal, but at least workable.
... View more
10-25-2017
12:13 PM
|
1
|
0
|
2716
|
|
BLOG
|
Derek, can you provide the full path? Our IT is blocking the whitepaper external link. Is it a Geonet/Community blog?
... View more
10-25-2017
10:18 AM
|
0
|
0
|
2970
|
|
POST
|
Also, don't overlook other free resources available online, including 10-90 minute tech sessions and webinars that focus on a single topic, from beginner level to advanced. Two sources: - Esri Videos | E360 Videos: GIS, Events, ArcGIS Products & Industries - Esri Events - YouTube And other free training can be found https://www.esri.com/training/catalog/search/ and clicking the Free button. Also the only help is very good and has some free tutorials. Although, as mentioned, you do need to talk with your local distributor, if for personal use (not for profit or business) and for learning purposes, there is a ArcGIS for Personal Use Program | ArcGIS for Desktop Advanced for Personal Use But I am not sure if it is available in your area. And if you want to dig in deeper and develop, there are other options at ArcGIS for Developers but again, there are some restrictions on use (i.e. for development only, not production). You can also get a free developer license with limited (development/testing) ArcGIS Online use.
... View more
10-25-2017
07:21 AM
|
1
|
0
|
1326
|
|
POST
|
I have many of the resources for training listed /blogs/myAlaskaGIS/2016/04/04/web-appbuilder-developer-edition-help-and-training-links You can start there.
... View more
10-24-2017
02:14 PM
|
0
|
0
|
2087
|
|
POST
|
Interesting, I hadn't noticed (or paid attention) to that before, but you are correct that Wing can use either. But the Python tab/window in ArcCatalog (10.3.1) does not acknowledge arcpy.AddMessage I use both Wing and the Python tab for testing and debugging. Since I want it to work in either, I use a function so it will print, but I have notices that it prints twice in Wing (but just accepted it). # shows messages for python window or tool def myMsgs(message): arcpy.AddMessage(message) print(message) fwiw.
... View more
10-24-2017
09:21 AM
|
1
|
0
|
2474
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-08-2018 08:21 AM | |
| 1 | 10-07-2015 09:48 AM | |
| 1 | 10-25-2015 12:23 PM | |
| 1 | 11-02-2017 09:00 AM | |
| 1 | 11-04-2016 02:11 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-31-2025
04:56 PM
|