POST
|
Why have you created a setup project to deploy the addIn? You can just doubleclick on the addIn to install it, you don't need a setup project.
... View more
02-24-2016
06:38 AM
|
0
|
0
|
186
|
POST
|
For deploying a custom component using a setup project in Visual Studio 2010, I used the following guideline: ArcObjects Help for .NET developers In Visual Studio 2013, however, this kind of setup project is not supported any more. Instead, InstallShield has to be installed, which works like a plugin in Visual Studio. I did the following steps to create a setup: First of all, InstallShield Express, Premier, or Professional is needed. InstallShield Free Edition is not sufficient. Reason: When unistalling, a custom action can only be invoked after system changes. However, we need this action before the installed dlls are removed (more to custom actions see below). Create a new project that will be an executable. This executable is used to invoke ESRIRegAsm.exe (see also link above). I didn't figure out how InvokeESRIRegAsm.dll could do that so I created an executable. I altered the code from project InvokeESRIRegAsm (see link above). Important: the following lines of code must be used before the process is started: ProcessStartInfo.UseShellExecute = true; ProcessStartInfo.Verb = "runas"; Create a new Setup Project and go through the Project Assistant to add files (and so on) Define a custom action for during Installation (after file transfer) and add the executable created above. Please note: if a path in the Command Line contains blanks, it has to be enclosed in quotation marks. Define a custom action for during Unistallation (before system changes) and add the executable created above. Does anyone have a better solution? If yes, please let me know.
... View more
01-25-2016
04:59 AM
|
0
|
0
|
3112
|
POST
|
Hi Yuan, the symbol types match: I'm using Simple Marker Symbols for both the UniqueValueRenderer and the ClassBreaksRenderer. I have manually set these two renderers in ArcMap and it works.
... View more
01-04-2016
01:27 AM
|
0
|
0
|
339
|
POST
|
I am creating a BiUniqueValueRenderer: IBivariateRenderer bivariateRenderer = new BiUniqueValueRendererClass(); // Assign renderers it to biunique value renderer bivariateRenderer.MainRenderer = (IFeatureRenderer)uniqueValueRend; bivariateRenderer.VariationRenderer = (IFeatureRenderer)classBreaksRend; When I'm assigning the classBreaksRend to the bivariateRenderer, there is following error message: "Value is outside expected range". I have assigned both the uniqueValueRenderer and the ClassBreaksRenderer separately to the layer, and both work fine. Here is the code for creating the ClassBreaksRenderer: IClassBreaksRenderer classBreaksRend = new ClassBreaksRenderer(); // Define the table histogram ITableHistogram tableHistogram = (ITableHistogram) new TableHistogram(); tableHistogram.Field = fieldName; tableHistogram.Table = (ITable)featLayer; IHistogram histogram = (IHistogram) tableHistogram; object doubleArrayValues; object longArrayFequencies; histogram.GetHistogram(out doubleArrayValues, out longArrayFequencies); // Set up classification method IClassifyGEN classifyGen = new EqualInterval(); classifyGen.Classify(doubleArrayValues, longArrayFrequencies, ref numClasses); double[] classBreaks = (double[]) classifyGen.ClassBreaks; // Set renderer properties classBreaksRend.Field = fieldName; classBreaksRend.FieldCount = numClasses; classBreaksRend.MinimumBreak = classBreaks[0]; // Interpolate marker sizes List<double> markerSizes = InterpolateMarkerSizes(numClasses, markerSymbol.Size, maxSymbolSize); // Step through breaks and assign breaks, labels, and symbols for (int i = 0; i < numClasses; i++) { classBreaksRend.set_Break(i, classBreaks[i+1]); classBreaksRend.set_Label(i, classBreaks + " - " + classBreaks[i + 1]); markerSymbol.Size = markerSizes; classBreaksRend.set_Symbol(i, (ISymbol)markerSymbol); } Any help is appreciated!
... View more
12-17-2015
02:33 AM
|
0
|
2
|
2632
|
POST
|
I have found the solution: JavaConfigTool.exe has to be run as an Administrator: ArcObjects Help for Java developers
... View more
11-06-2015
08:44 AM
|
0
|
0
|
214
|
POST
|
I am creating an ArcMap Add-In using Java ArcObjects SDK. I want to attach my code (or debugger) to ArcMap. I have found the following instructions: http://resources.esri.com/help/9.3/arcgisserver/adf/java/help/doc/4ecc7c38-c7d9-4e99-bcf4-de28ab770faa.htm#Tracing When I use the JavaConfigTool.exe (in ARCGISHOME/bin), I always get the following error: "Error, could not create a registry key." Thanks for any help in advance, Barbara
... View more
11-05-2015
06:35 AM
|
0
|
1
|
2263
|
POST
|
Thanks, Chris! IStyleGalleryStorage.AddFile() is used to add a style to Style Manager. IStyleGallery.LoadStyle() is used to load a style from Style Gallery that is already present in Style Manager.
... View more
05-04-2015
01:48 AM
|
0
|
0
|
344
|
POST
|
I would like to add a style to the Style Manager using ArcObjects. I guess this is done using IStyleImporter.Import. However, I haven't found a sample how to get a StyleImporter object. I tried to cocreate it, but it isn't possible. Can anyone help?
... View more
04-30-2015
04:35 AM
|
0
|
2
|
2507
|
POST
|
I need to change the raster layer settings. However, I cannot find IRasterLayerSettings or similar.
... View more
01-26-2015
07:38 AM
|
0
|
0
|
312
|
POST
|
Is there a way to access the ArcMap Options using ArcObjects (In ArcMap select Customize - ArcMap Options)?
... View more
01-26-2015
03:53 AM
|
0
|
3
|
4362
|
POST
|
Hi Jay, thanks for your answer! I still don't understand why the streets are connected in the clipped network, but not in the full network. If it was the other way round (i.e. the streets in the clipped network are not connected because the connecting streets have been clipped off), I would understand it. Barbara
... View more
04-03-2014
06:02 AM
|
0
|
0
|
478
|
POST
|
Hi Jay, when I turn off the hierarchy for the entire network, there are no unreached locations. Barbara
... View more
03-28-2014
02:29 AM
|
0
|
0
|
478
|
POST
|
Hi Jay, I am using hierarchy. I don't understand what you mean with the sentence: "Perhaps the streets in the hierarchy are not connected in the full network causing the network search space to the different." The streets in the hierarchy are connected both in the full network as well as in the clipped network. Is there a way I can define the network search space? Thanks, Barbara
... View more
03-18-2014
07:46 AM
|
0
|
0
|
478
|
Title | Kudos | Posted |
---|---|---|
1 | 08-06-2013 02:56 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|