|
POST
|
One last thought. Is it possible that you did not enable runtime on your GPK? Can you upload your GPK for further inspection?
... View more
07-24-2015
01:13 PM
|
0
|
1
|
1049
|
|
POST
|
License your app—ArcGIS Runtime SDK for .NET | ArcGIS for Developers The first error shouldn't stop you but not having a basic license is why you would get that error. See licensing sheet linked above.
... View more
07-24-2015
12:32 PM
|
1
|
0
|
1049
|
|
POST
|
If I was you, I would skip making a file picker using TKinter and use the pythonaddins module to select the files. This will automatically group the common file types together and might be able to provide a little more control. import pythonaddins
pythonaddins.OpenDialog() More documentation on this can be found here: ArcGIS Help 10.1 I hope this helps!
... View more
07-24-2015
12:05 PM
|
2
|
4
|
1919
|
|
POST
|
I had the same issue a little while ago and repairing the .NET Framework helped resolve the issue for me.
... View more
07-09-2015
11:54 AM
|
1
|
3
|
8085
|
|
POST
|
I would wipe out the underscores from your model and then provide a second argument to your import toolbox statement and then use that when calling the tool. That is: Change DeleteTempHolding_GLE_BIS to DeleteTempHoldingGLEBIS then arcpy.ImportToolbox("F:/GIS/Python_Scripts/GLE_BIS_Silverlight_Overwrite/GLE_BIS.tbx", "myTbx") Then call your tool: arcpy.DeleteTempHoldingGLEBIS_myTbx()
... View more
07-02-2015
12:55 PM
|
0
|
1
|
1822
|
|
POST
|
This should do it. Quick sample, only tested with one feature layer in the document so I am not sure how it will react to basemaps or other layer types. using System;
using System.Collections.Generic;
using System.Text;
using ESRI.ArcGIS.ArcMapUI;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.esriSystem;
namespace MXDFonts
{
class Program
{
private static LicenseInitializer m_AOLicenseInitializer = new MXDFonts.LicenseInitializer();
private static string pathToMXD = @"C:\Users\alex7370\Desktop\mxdFont.mxd";
[STAThread()]
static void Main(string[] args)
{
//ESRI License Initializer generated code.
m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeBasic },
new esriLicenseExtensionCode[] { esriLicenseExtensionCode.esriLicenseExtensionCodeMLE });
//ESRI License Initializer generated code.
IMapDocument map = new MapDocumentClass();
map.Open(pathToMXD, "");
for (int i = 0; i < map.MapCount; i++)
{
for (int j = 0; j < map.Map.LayerCount; j++)
{
var layer = map.Map.Layer ;
try
{
if (layer is IGroupLayer)
{
for (int z = 0; z < ((ICompositeLayer)layer).Count; z++)
{
ILayer xLayer = ((ICompositeLayer) layer).Layer ;
layerFont(xLayer);
}
}
else
{
layerFont(layer);
}
}
catch (Exception)
{
Console.WriteLine("Not a feature layer or does not have a layer associated with it.");
}
}
}
//Do not make any call to ArcObjects after ShutDownApplication()
m_AOLicenseInitializer.ShutdownApplication();
}
static void layerFont(ILayer layer)
{
IFeatureLayer fl = ((IFeatureLayer)layer);
Console.WriteLine(fl.Name);
ILayerDrawingDescriptionFactory flDescription = new FeatureLayerDrawingDescriptionFactoryClass();
ILayerDrawingDescription drawingDescription = flDescription.CreateLayerDrawingDescription(fl);
for (int k = 0;
k < ((IFeatureLayerDrawingDescription2)drawingDescription).LabelingDescription
.LabelClassDescriptions.Count;
k++)
{
Console.WriteLine(
((IFeatureLayerDrawingDescription2)drawingDescription).LabelingDescription
.LabelClassDescriptions.Element .Symbol.Font.Name);
}
}
}
} Written in C#. Hope this helps!
... View more
06-24-2015
10:29 AM
|
1
|
4
|
1455
|
|
POST
|
Have you tried changing line 11 in your config.xml to: <Target name="Desktop" version="10.3" /> This would reflect the current release that you are on. What is the exact problem that you are having with your addin? Is it just not loading or something else?
... View more
06-08-2015
11:55 AM
|
0
|
0
|
1240
|
|
POST
|
Hey Nathaniel Roth, I was playing with your script here and got it to work when I cast newfldname to a string: (Line 52 in the Github script) nparray2 = rfn.append_fields(nparray, str(newfldname), out, usemask = False) I hope this helps! Update: I did a little more digging and found that when you get the in_field from the tool GUI, that it is passed as type unicode. That might be why it was failing as a python toolbox tool rather than when you hard code the data or run it in an IDE. Also, I made a pull request to your repo on GitHub.
... View more
06-03-2015
12:04 PM
|
2
|
0
|
5868
|
|
POST
|
Is the extension still checked on in the extensions menu when you reload the app?
... View more
06-01-2015
02:23 PM
|
0
|
2
|
2650
|
|
POST
|
I can't reproduce with a clean 10.1 install using the same code provided to you earlier.
... View more
06-01-2015
01:38 PM
|
0
|
4
|
2650
|
|
POST
|
What I wrote works for me at 10.3. I might be able to test on 10.1 a little later today. Do you have any service packs installed or any other components installed?
... View more
06-01-2015
11:27 AM
|
0
|
7
|
2650
|
|
POST
|
Hi David, It looks above that you are trying to fire the method. I was able to get this to work by doing the following: using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Windows.Forms;
using ESRI.ArcGIS.ArcMapUI;
using ESRI.ArcGIS.Framework;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Carto;
namespace selChanged
{
public class Extension1 : ESRI.ArcGIS.Desktop.AddIns.Extension
{
private static IActiveViewEvents_Event Events { get { return ArcMap.Document.ActiveView as IActiveViewEvents_Event; } }
public Extension1()
{
}
protected override void OnStartup()
{
Events.SelectionChanged += Events_SelectionChanged;
}
void Events_SelectionChanged()
{
MessageBox.Show("Selection Changed");
}
}
} Let me know if this works for you Thanks
... View more
06-01-2015
09:29 AM
|
0
|
9
|
2650
|
|
POST
|
I believe that you are looking for the following help documentation: Create Enterprise Geodatase (Data management) Create Enterprise Geodatabase—Help | ArcGIS for Desktop
... View more
05-18-2015
12:58 PM
|
1
|
5
|
3080
|
|
POST
|
Hello Yinghong Li, What I would do is go into ArcMap and make sure that they do not have the addin listed as installed in the Add-In manager. The next step that I would do is also make sure that the folder that is loading the add-ins is the correct network folder. I hope this helps!
... View more
05-18-2015
11:14 AM
|
1
|
0
|
776
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-15-2014 03:16 PM | |
| 1 | 01-06-2015 03:33 PM | |
| 1 | 12-02-2014 10:47 AM | |
| 1 | 07-15-2014 03:31 PM | |
| 1 | 09-23-2014 03:59 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|