POST
|
I have an add-in that adds several values into existing featurelayer. I am calling context.Invalidate(feature) every time a feature gets added, yet the existing layer is not automatically redrawn and the attribute table display does not automatically update. I have been able to have the layer update automatically by using FeatureLayer.ClearDisplayCache(). Is there a similar call for attribute tables? Is there a way to mimic clicking the refresh button on the attribute table within the ArcGIS Pro SDK? Thanks for your help
... View more
03-06-2020
07:08 AM
|
1
|
0
|
222
|
POST
|
What I am trying to do is to take an instance of our custom class that is in a general format as shown below: using System; using ArcGIS.Core.Geometry; using ArcGIS.OtherStuff using SpatialReference = ArcGIS.Core.Geometry.SpatialReference; namespace myNameSpace { public class myClass { private bool _field1; public bool Field1 { get {return _field1;} set { _field1 = value; } } //So SpatialReference of new shapefile needs to come from NewLayerSpatialRef private SpatialReference _newLayerSpatialRef; public SpatialReference NewLayerSpatialRef { get { return _newLayerSpatialRef; } set { _newLayerSpatialRef = value; } } ..........//Other ArcGIS Pro classes ..........//Other non-ArcGIS Pro classes } } Say I create an instance of this class name myInstance and populate it with all necessary properties. I would then like to serialize the instance into a file in order to persist it for future use by doing some LIKE the following: var writer = new StreamWriter(@“c:\temp\myFileForFutureUse.xml”); XmlSerializer serializer = new XmlSerializer(typeof(myClass)); serializer.Serialize(writer, myInstance); I don’t necessarily need to use the XmlSerializer class. Is something like the above possible? Can I serialize an instance of a class that contains instances of ArcGIS Pro classes such as SpatialReference? If so, is there a particular serialization method suggested by Esri such as Xml Serialization or Binary Serialization? Are there any coding examples or white papers? Any guidance on this matter would be appreciated. Thanks!
... View more
01-14-2020
06:42 AM
|
0
|
1
|
1093
|
POST
|
Are there any rules regarding the replacing of dll’s in an esriAddinX? Are there conditions where updating an esriAddinX after its initial build will invalidate it? I had a small project where I replaced the original dll and pdb file with obfuscated versions and the add-in worked fine. I am currently working with a larger Add-in where obfuscating any part of the dll and then updating the esriAddinX with the obfuscated version makes the add-in crash. I understand that there are parts of the code that should not be obfuscated such as anything that inherits from contract. I am not obfuscating those classes. Any help or guidance will be greatly appreciated.
... View more
09-19-2019
10:22 AM
|
1
|
2
|
505
|
POST
|
Is there a way to validate a user entered field name based on whether the datatype is a shapefile or file geodatabase using the Pro API without having to use geoprocessing? I know there is an ArcPy function called ValidateFieldName that I could probably call from the API. But since this is only a function and not a tool, I believe I would have to create a tool in python and add it to the user’s computer in order to access it from my add-in. This is something that I do not want to do. Thanks for your help
... View more
04-25-2019
12:40 PM
|
0
|
0
|
307
|
POST
|
Without resorting to searching the registry, is there a way to obtain the version number of the ArcGIS Pro being used using the API? Thanks
... View more
04-19-2018
09:37 AM
|
0
|
1
|
244
|
POST
|
I have a need to make two versions of my add-in for branding purposes. The captions of some tabs, buttons, etc. would include either the brand1 name or the brand2 name in their captions based upon the version of my add-in. I would like to do this without resorting to two versions of config.daml. I used compiler directives to achieve this when making extensions for ArcMap. Unfortunately it seems that compiler directives can't be used in the config.daml file. It also seems that only hard-coded strings for caption names. I know that you can use the plugin wrapper to change the captions of some controls at run-time, but this requires having the module autoload which goes against the principles of loading only modules that are being used. Also, the plugin wrapper doesn't work on a backstage tab. Has anyone else faced the same problem. If so, I'd be interested in hearing your workaround. Thanks
... View more
03-27-2018
11:26 AM
|
1
|
0
|
224
|
Title | Kudos | Posted |
---|---|---|
1 | 03-06-2020 07:08 AM | |
1 | 09-19-2019 10:22 AM | |
1 | 03-27-2018 11:26 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|