|
POST
|
Hi Nattawut, Can you use IUnknownPtr in your application? If no, check is comdef.h is included in your project
... View more
07-03-2018
04:14 AM
|
0
|
1
|
1824
|
|
POST
|
Hi Brian, I have not read carefully your question. I thought that you asking about Project properties. Application properties you can access using : BackStage_PropertyPage.Properties.Settings settings = BackStage_PropertyPage.Properties.Settings.Default; bool bGeneral = settings.GeneralSetting; It works from add-in button in the same project.
... View more
06-27-2018
11:50 PM
|
0
|
0
|
1278
|
|
POST
|
Hi Brian, Open settings module class file (in BackStage_PropertyPage sample Module1.cs) and find internal Dictionary<string, string> Settings Replace internal with public Add reference of settings module to your tool project if it separate project. From your other tool find module with settings: Module1 modOwner = Module1.Current; Use module Settings property to access your settings: modOwner.Settings.
... View more
06-26-2018
11:58 PM
|
1
|
2
|
1278
|
|
POST
|
Hi Michael, You can use IDataGraphT object to show your object as graph. It will work for one object only. You need to create a table on hard disk with min 2 column for X and Y axis information. X axis could be distance between vertexes, Y axis - your measurements. Now you are ready to create template with ArcMap View->Graphs->Create Graph. When you have template, you are ready to use it as legend for your graph created from code. From your code you need to create the same structure table as described above. It could be created in scratch workspace. Fill table with information about your polyline object.
... View more
04-23-2018
11:52 PM
|
1
|
2
|
1096
|
|
POST
|
Hi, The problem will be with ESRIRegASM.exe.config file. It is located in the same folder as ESRIRegASM.exe. Open it and check binding redirection part of ArcGIS libraries. It must be like this: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="ESRI.ArcGIS.ADF.Local" culture="" publicKeyToken="8fc3cc631e44ad86"/> <bindingRedirect oldVersion="9.3.0.0-10.5.1.0" newVersion="10.6.0.0"/> </dependentAssembly> </assemblyBinding>
... View more
03-12-2018
01:47 AM
|
1
|
0
|
978
|
|
POST
|
Hi Chris, You need to use CreateChainedOperation() if you want to do additional editing in the same operation. More info you will find here: https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Editing
... View more
03-04-2018
10:57 PM
|
0
|
0
|
1242
|
|
POST
|
Hi Rene, You can use spatial filter on MCT thread: // execute the select on the MCT QueuedTask.Run(() => { foreach(FeatureLayer pItem in pointLayers) { // define the spatial query filter var spatialQuery = new SpatialQueryFilter() { FilterGeometry = geometry, SpatialRelationship = SpatialRelationship.Contains }; // gather the selection var pointSelection = pItem.Select(spatialQuery); } } If you want to do selection from the tool then you need to override OnSketchCompleteAsync event protected override Task<bool> OnSketchCompleteAsync(Geometry geometry) { } and add code above inside.
... View more
02-27-2018
12:02 AM
|
0
|
1
|
5743
|
|
POST
|
Hi, Have you tried ITransactions interface? It works without StartEditing fine on big quantities data with file or personal geodatabases. I have not tried it on SDE
... View more
02-20-2018
12:11 AM
|
0
|
0
|
1869
|
|
POST
|
Hi, You can make property in your module class to set combo box. On startup you need from combo box class to set that property to combo box itself. When you need to update combo box content you will find your module and read combobox property and call "UpdateCombo" method. public class MyModule : Module { private static MyModule _this = null; private MyComboBox _combo = null; internal MyModule() { _this = this; } /// <summary> /// Retrieve the singleton instance to this module here /// </summary> public static MyModule Current { get { return _this ?? (_this = (MyModule)FrameworkApplication.FindModule("My_Module")); } } public MyComboBox PolygonCombo { get { return _combo; } set { _combo = value; _combo.UpdateCombo(); } } } public class MyComboBox : ComboBox { /// <summary> /// Constructor to initialize the ComboBox /// </summary> public MyComboBox() { MyModule modOwner = MyModule.Current; if (modOwner == null) return; modOwner.PolygonCombo = this; } } Another way is to use some kind of messaging. I use that approach in my applications: https://stackoverflow.com/questions/23798425/wpf-mvvm-communication-between-view-model
... View more
02-12-2018
01:08 AM
|
2
|
2
|
1847
|
|
POST
|
Hi, I have attached printscreen of Tableviewpane and Add field button structure. More detailed information you can find using tools described earlier.
... View more
02-08-2018
05:03 AM
|
0
|
0
|
3888
|
|
POST
|
Hi, You can use WPF Snoop or WPF Inspector to inspect ESRI styling. You will find which WPF objects ESRI uses and what are property values, events and etc. The same situation was with Docking panel tab controls. You can find more info on another thread.
... View more
02-07-2018
04:39 AM
|
0
|
0
|
3888
|
|
POST
|
Hi Mitch, You need to use QueuedTask.Run. https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-MapAuthoring
... View more
02-05-2018
01:18 AM
|
2
|
0
|
5715
|
|
POST
|
Hi Jana, I have found that some functionality is available only using MFC environment: https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#IOleFrame_CreateOleClientItem.htm So you need to create VC++ library which can create you IElement of IOLEFrame type. How to do that you could find on GitHub sample: https://github.com/Microsoft/VCSamples/tree/master/VC2010Samples/MFC/ole/MFCBind It uses the same Insert object dialog as ArcMap does.
... View more
01-18-2018
01:46 AM
|
0
|
1
|
3644
|
|
POST
|
Hi Khamille, Look at tis thread: https://community.esri.com/thread/204673-arcgis-pro-tab-control
... View more
01-02-2018
12:03 AM
|
1
|
1
|
1489
|
|
POST
|
Hi Thomas, FeatureClass has method GetCount(). FeatureClass pFeatClass = featLayer.GetFeatureClass(); int nCount = pFeatClass.GetCount();
... View more
12-08-2017
05:07 AM
|
0
|
1
|
4281
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM | |
| 1 | 02-27-2026 10:33 AM | |
| 1 | 01-07-2026 10:44 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|