POST
|
What ESRI tools/api-s are available to create/update administrative feature classes (Suburb, County) from ESRI Parcel Fabric? Details: We have an ESRI Parcel Fabric that contains continuous coverage: Lots, Water features, Roads etc Can we have administrative polygons generated/updated as result of geometry change in, for example, Lots? Does ESRI have it built-in in a ESRI Parcel Fabric in ArcGIS Pro?
... View more
09-12-2021
07:26 PM
|
0
|
1
|
519
|
POST
|
Hi, We have an AddIn that using some our DLL .Net libraries. The libraries are updated from time to time. To make sure AddIn uses the updated DLL's assembly version, both (AddIn and DLL) are using .Net strong name signing. How to enable .Net strong name verification properly? Whatever steps to enable are, should it be on developer's machine? on user's machine? on both? In fact, we added "Signing" in VisualStudio. It appears not working when updating DLL. AddIn continues to load a DLL with "wrong" version number. Environment VisualStudio 2017 .Net 4.7.0 ArcObjects 10.6.1
... View more
05-21-2020
09:00 PM
|
0
|
1
|
688
|
POST
|
This may solve the issue IFeature pNewAnnoFeature = pFeatureClass.CreateFeature(); if (CopyAttributes(pOldFeature, ref pNewAnnoFeature, out outErrMsg) == false) { MessageBox.Show(outErrMsg); return; } IClone pFirstAnnotation = (IClone)(pOldFeature as IAnnotationFeature).Annotation; IElement pSecondElement = pFirstAnnotation.Clone() as IElement; ITextElement pSecondTextElement = pSecondElement as ITextElement; try { //ensure the alignment of the cloned text is lower left ISymbolCollectionElement txtSymElemTwo = (ISymbolCollectionElement)pSecondTextElement; txtSymElemTwo.HorizontalAlignment = esriTextHorizontalAlignment.esriTHALeft; txtSymElemTwo.VerticalAlignment = esriTextVerticalAlignment.esriTVABottom; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } ITransform2D pTransform2D = (pSecondTextElement as ITransform2D); pTransform2D.Move(100, 100); (pNewAnnoFeature as IAnnotationFeature).Annotation = pSecondElement; pNewAnnoFeature.Store();
... View more
01-07-2020
09:09 PM
|
0
|
0
|
1665
|
POST
|
Hi, We have a problem working with a view. The view is created in ArcCatalog - right click on a database connection - create a View - use SQL "select x0.objectid as f1, x0.any_field as f2 from TABLE_NAME x0" Both fields are Long Integer. Looking to the properties of the view crashes ArcCatalog without any error message. ArcGIS 10.6.1 Informix 12.1
... View more
01-07-2020
04:18 PM
|
0
|
1
|
503
|
POST
|
Hi, We need to find a way to catch an OnClose() event of a custom dockable window in ArcMap. OnVisibleChanged() does not have an updated base.Visible property (it is every time "true"). C# ArcMap 10.6.1
... View more
08-27-2019
09:31 PM
|
0
|
0
|
492
|
POST
|
We need to copy an annotation feature (not feature linked) and move 10 metres. Two issues: A new annotation is drawn behind old one A new annotation is not moved IFeatureClass pFeatCls = pSourceAnnotationFeature.Class as IFeatureClass; IFeature pNewAnnoFeature = pFeatCls.CreateFeature(); CopyAttributes(pSourceAnnotationFeature, ref pNewAnnoFeature); IClone pCloneGeometry = (IClone)pSourceAnnotationFeature.Shape; IGeometry pShapeCopyGeometry = (IGeometry)pCloneGeometry.Clone(); ITransform2D pTransform2D = pShapeCopyGeometry as ITransform2D; pTransform2D.Move( 10, 0); pNewAnnoFeature.Shape = pShapeCopyGeometry; (pNewAnnoFeature as IAnnotationFeature).Annotation.Geometry = pShapeCopyGeometry; pNewAnnoFeature.Store(); ArcMap.Document.ActiveView.Refresh();
... View more
08-15-2019
08:33 PM
|
0
|
2
|
2125
|
POST
|
Thanks Fayaz Baig The link you provided did not helped. Let do questions: 1. Is it possible to convert COM class: public class clsCustomEditTask : ESRI.ArcGIS.Editor.IEditTask to AddIn? 2. Please send example (of an AddIn that contains IEditTask).
... View more
07-29-2019
05:20 PM
|
0
|
0
|
1289
|
POST
|
Hi, We convert old custom COM tools to custom AddIns and have a question - how to get it as IEditTask on runtime? We need to set Application.CurrentTask with ESRI.ArcGIS.Editor.IEditTask, so the question is how to create an object with type IEditTask? Old COM class: public class clsCustomEditTask : ESRI.ArcGIS.Editor.IEditTask New AddIn class: public class clsCustomEditorExtension : ESRI.ArcGIS.Desktop.AddIns.Extension The help says we cannot deploy (register) tasks in AddIn See ArcObjects Help for .NET developers ArcMap 10.6.1, C#
... View more
07-29-2019
12:41 AM
|
0
|
4
|
1477
|
POST
|
Hi, We need to export a feature dataset (including number of feature classes) and, not in the dataset, number of tables, to a file geodatabase (FGDB). The source is some data in memory (not in memory feature class) on runtime. The target - a FGDB created programmatically. And the schema must be taken from a current enterprise database (meaning we only export what current schema contains) We cannot use a FGDB template. Is any ArcObjects API able to do it? Something like 1) Exporting a geodatabase schema to an XML workspace document 2) Importing a geodatabase schema from an XML workspace document 3) ... Any other ideas will be appreciated. C#, ArcGIS 10.6.1, no Python
... View more
05-05-2019
05:50 PM
|
0
|
2
|
1716
|
POST
|
When changes are made to an add-in, and the new version of the add-in is installed in ArcMap, the new version is displayed in the Add-In Manager. However, the changes might not get updated in the dynamic link libraries (DLLs) located in the AssemblyCache folder, and the previous version of the add-in might remain. Problem: Changes are not made to updated versions of an add-in installed in ArcMap So, my question is "Is it wrong to clean (remove all subfolders recursively) AssemblyCache folder?" Programmatically, X seconds after ArcMap was closed. There are no other user-installed add-ins on user machine. ArcMap 10.6.1 C#
... View more
04-14-2019
09:47 PM
|
0
|
0
|
524
|
POST
|
Hi, We have to convert two COM registered command buttons to Add-in buttons. When any button clicked, a message appears and both buttons should be disabled. It worked "anonymously" in COM. In "COM" code we have private static void DisableButtons(string progId, bool isEnabled) { UID pUID = new UID(); pUID.Value = progId; ICommandItem pItem = ArcMap.Application.Document.CommandBars.Find(pUID, false, false); IComponentAvailable pAvailable = pItem.Command as FirstButton.IComponentAvailable; pAvailable.IsEnabled = isEnabled; } In "Add-in" code we need to have AddIn.FromID() method public static class AddIn { public static T FromID<T>(string id) where T : class; } e.g. AddIn.FromID<FirstButtonClass>(progId); which means we must explicitly use reference to a Class Name (FirstButtonClass, SecondButtonClass). It will create a circular reference and will not work on Bamboo deployment (However, it builds ok on a local machine) case "Test_FirstButton": pAvailable = AddIn.FromID<FirstButtonClass>(progId); break; case "Test_SecondButton": pAvailable = AddIn.FromID<SecondButtonClass>(progId); // WE SHOULD NOT USE "SecondButtonClass" here. It will raise circular dependency error on aBamboo deployment break; Question: can we use another ArcObjects API to disable buttons? We cannot change the architecture. Each button exists in its own .Net solution. See the attached simple projects. C#, ArcObjects 10.6.1
... View more
03-10-2019
07:07 PM
|
0
|
0
|
621
|
POST
|
Is it possible to get a DefaultConnectionInfo? There is an ISetDefaultConnectionInfo interface, could we have a "get"? http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#c778d2bb-eb36-4793-9c89-20795811c5eb.htm ArcObjects C#, ArcMap 10.6.1
... View more
02-26-2019
07:03 PM
|
0
|
0
|
354
|
POST
|
We are deploying a number of AddIns for ArcMap. Should be ESRI.ArcGIS.Desktop.AddIns.dll included in every *.esriAddIn? For development, C:\Program Files (x86)\ArcGIS\DeveloperKit10.6\bin\ESRI.ArcGIS.Desktop.AddIns.dll is used. C#, ArcMap 10.6.1
... View more
02-13-2019
05:03 PM
|
1
|
0
|
879
|
Title | Kudos | Posted |
---|---|---|
1 | 09-14-2017 10:40 PM | |
1 | 02-13-2019 05:03 PM | |
1 | 04-12-2017 09:41 PM | |
1 | 11-30-2017 04:01 PM | |
1 | 11-14-2017 06:00 PM |
Online Status |
Offline
|
Date Last Visited |
09-13-2021
09:41 PM
|