Tag Info

New answers tagged

0

A few hours ago, I came in this page with the same problem about printer page. And now, I guess I could summit a final answer. As you might think about, you need to solve this problem with Windows paper size constants. My solution is to create a function using "switch" to convert the property of esripageFormID into the proper papersize index found in ...


0

Here's something I put together from the link you posted and another link that you will see commented out in the code. When you click on the map it will draw a square 10x10 map units from where you clicked. I work in metres so this draws a reasonably sized graphic. Create an add-in with a tool and add this to the class. protected override void ...


2

The following code fixed it for me. Change this: Message msgForm = new Message(); msgForm.lbl.Text = message; msgForm.ShowDialog(); To this: MessageBox.Show(message);


1

I don't program in C# so may be what I am going to suggest is actually valid syntax for c#? I think the problem is this line: if (mxdoc.SelectedLayer == layer) If VB .net one would not compare two layer objects this way. If this was me using VB I would have done it this way: if mxdoc.SelectLayer.Name = layer.Name then msgbox "same!" end if


0

Forgot to answer this question: The GDAL geotransform matrix lacks the possibility to shift x/y directions (only scaling and rotation can be done). The solution was to create a custom geomtransform in ArcObjects, which adds additional transformation parameters to the aux.xml file. The grid then rotated/shifted/scaled as dersired. Unfortunately I don't ...


0

I found why. While in the old API the previous code works, here you have to add data attributes to your layers as indicate in the "Render graphics layer" example of the documentation in this page: https://developers.arcgis.com/net/desktop/guide/add-graphics-and-text.htm In order to do that Define a UniqueValueRenderer for a GraphicsLayer using code, ...


2

They also have instructions for using .NET 4.0 or 4.5 if you wish to take advantage of the new language features: .NET 4.0 and 4.5 support for ArcGIS 10.2 Desktop and Engine developers The only change you need to make is to edit ArcMap.exe.config (or the relevant .exe.config for the application you are extending) and changing: <startup> ...


3

ESRI recommends to use the Microsoft .NET Framework 3.5 Service Pack 1 for version 10 and higher: ArcObjects SDK System Requirements for 10.1 ArcObjects SDK System Requirements for 10.2 So as you can see in this post What are the correct version numbers for C#? you should learn C# 3.0.


0

To me (Illustrator 16.0.0) i select as below If you are with Ai Version <=5 then you can try the plugin


1

So, I've solved this question myself. The requirement was to send the annotation data to an annotation feature class within a GDB. Whilst I am yet to be able to create GDB and FCs with ArcObjects, I created these manually and then created the pointer variables that accepted the annotation data. Consequently, ArcMap did not fall over and produced the desired ...


0

Finally figured this out. It was indeed a spatial domain problem. I now set the "extent" geoprocessing environment variable to the envelope of the input feature class on every call. This works! It's strange because this is very old code that has worked for a long time, but it fails in this one case.


0

This arcgis desktop Addin may be helpful with your problem, Link


2

MapControl is an engine component to create your own window to display map contents. I've looked before and never found a way to get a reference to the ArcMap MapControl. ArcMap may not even use a MapControl for its display, it may use some other internal class. Two options: 1) var ave = ActiveView as IActiveViewEvents; ave.AfterDraw += onAfterDraw; ...


0

I have to post as an answer rather than a comment. I also cannot find percent min / max clip fields in ArcObjects, however they are present in the XML obtained by serializing the layer's RasterRenderer. Here's the code to serialize, for anyone interested (straight from ESRI snippets) IWorkspaceFactory wf = new RasterWorkspaceFactory(); IWorkspace wsrd = ...


1

Since you say you have some experience in Python, I believe what you are trying to do could be accomplished with a Python Add-In (I'm not well versed in ArcObjects and C#). I have a jankety workaround function that I call in other scripts that will generate annotation feature classes (always for a soils data set) based on a project boundary. The way this ...


7

I am not very strong in this area either, but I have modified the Snippets module and have made a couple wrappers for very simple tasks. I have an example of just adding line elements. The example at under the main block forms a triangle to the layout view just outside the document. I use this script in conjunction with another and arcpy search cursors ...


0

COGO is not a format I have ever used but a quick look at the ArcObjects API documentation threw up this interface ICadastralCogoImporter. May be this is what you need along with the ICadastralImporter interface? I would be surprised if arcpy expose these specialized interfaces. Maybe someone else reading this has more experience?


4

It is a replacement ArcGIS Pro .NET SDK: The Road Ahead – SDK and API No need for “external” PIAs (primary interop assembly) like with Arcobjects. Simply install ArcGIS Pro. This is the fully fledged 64-bit version that will use more than 4GB of RAM for processing a long drawback of ESRI - welcome to the 21st century Still limited At Final Release: ...



Top 50 recent answers are included