Tag Info

New answers tagged

1

What you are identifying in your image is a ToolPalette not a Button or Menu. So use the AddIn Wizard to create your Buttons that you want to see in the ToolPalette then create the ToolPalette and add the buttons by their ID. Below is some demonstration code to get you going. <ESRI.Configuration xmlns="http://schemas.esri.com/Desktop/AddIns" ...


0

The event may not be wired by default, I don't think this is the case here. I think you have the wrong property, it should be arg.KeyCode == not arg.ModifierKeys ==, modifiers are shift, alt, Ctrl. I think the OnKeyDown is working but not entering the block because the value is None. if (arg.KeyCode == System.Windows.Forms.Keys.Enter) Then check your ...


1

I believe what you're after is IPolycurve.Generalize. This will turn an arc into a series of straight segments approximating the line. This interface is implemented by both polygon and polyline. Use a simple buffer of a point (ITopologicalOperator.Buffer) for a circle (or create a circular arc circle with IConstructCircularArc.ConstructCircle) cast to ...


1

What you are looking for is the circumcircle of a triangle. The circumcircle of a triangle is the circle that passes through all three vertices of the triangle and is unique. Help Although I think you are not looking for the math behind, here, you can find the math to reach to center and radius of a circumcircle from three points (a triangle). The good ...


1

I haven't tested this but I don't there would be any problem. I suggest to simply test the code with two MessageBox: public class Tool1 : ESRI.ArcGIS.Desktop.AddIns.Tool { public Tool1() { } protected override void OnUpdate() { Enabled = ArcMap.Application != null; } protected override void OnMouseDown(MouseEventArgs ...


0

From one of my tools: <Button id="ButtonName" class="Button1" message="Does some stuff." caption="My Button" tip="Does some stuff" category="MyAddin" image="Images\Button1.png" /> As you can see the image has an extension and the XML is properly ...


3

Yes there is (in fact you have a choice of a property or an event to hook into): The IApplicationStatus.Initialized property changes once the application is fully initialized, and the IApplicationStatusEvents.Initialized event fires as well. It is suggested that UI changes from Add-ins only occur after application initialization, so this is just the hook ...


1

To expand on the comment by @Dan Jurgella... Don't forget to check the properties in the System.Globalization.CultureInfo class. There are static properties in that class, DefaultThreadCurrentCultureand DefaultThreadCurrentUICulture, which could help you. Also depending on what you're doing with languages, it probably wouldn't hurt to be familiar with the ...


3

Looks like this is what you are looking for: http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0048000001s1000000 System.Threading.Thread.CurrentThread.CurrentUICulture


1

In order to debug ArcMap 10.3 Add-in with VS2013 in .Net 4.5. I had to attach VS2013 to ArcMap.exe process. This is kinda annoying but it is the only way I got it to work for now. I'm still confused on why this is happening. How to attach process Start ArcMap In VS2013, go to menu "DEBUG" -> "Attach to Process" Select "ArcMap.exe" and click on "Attach" ...



Top 50 recent answers are included