POST
|
I haven't found any info on this particular problem so let me try here. My job is to migrate a 9.3 desktop extention to 10.3, keeping the app in the original COM-based format (not an add-in). During debugging in Visual Studio 2010, I had to enable 'make assembly COM visible' for it to be registered to ArcGIS, otherwise it didn't show. After setting up the windows setup project en building in release with the right setting it succesfully finished the installation, included and installed all the depencies in the correct directory and was visible in my installed programs list. The thing is, it DID show up correctly on my machine (even after fully cleaning the solution and unistalling dev or previous builds), but NOT on any other machine with version 10.3.0/1. What I had tried so far: making sure the application installation folder was correctly set in the setup project and the installation was being done there. made a new setup project with the same settings (there was an old version checked in to the repo) correct .NET version (3.5) as installation prerequisite, same as all the projects/class libraries in the solution enabled/disable the options 'register for COM interop' and 'make COM visible' for the main project built main project in x86 explicitly instead of anyCPU checked if Register property on the main projects assembly was set to 'vsdrfCOM' Now I found out that the dll does get registered but there is some kind of safety check that doesn't add it to ArcMap upon registration. If it is not in the 'ESRI mx extension category' (C:\Program Files (x86)\ArcGIS\Desktop10.3\bin\Categories.exe) then it will never be visible in ArcMap!! But it appears that you can add it manually by opening the category importer, as shown below Does anyone have more info on this problem? I don't seem to find much on ''arcgis category importer" or the message... And why does it say it's been registered with a previous version of ArcGIS? I'm on windows 10 btw, the other test machines are on 8 and 10 Hope you can help, Thanks in advance
... View more
05-25-2016
10:00 AM
|
0
|
2
|
2507
|
POST
|
As ArcGIS is a 32bit application you have to change the target platform to x86 for the project that checks out the license; Go to project properties > build > platform target > change anyCPU or whatever this says to x86
... View more
05-20-2016
04:55 AM
|
0
|
0
|
450
|
POST
|
That would indeed normally fix it if you are running a standalone app. Totally forgot to initialize my license in my unit test.
... View more
04-15-2016
05:03 AM
|
0
|
0
|
1517
|
POST
|
I'm having the same issue with the select by location tool, and repair geom didn't do the trick -selected layer is a line feature layer from an oracle spatial table -selecting layer is a query layer from oracle spatial point table, layer containing only 1 point resulting form query => saved to disk with the copy features tool -relation is intersect, with a radius of 50m ArcgGIS version is 10.1 fyi No sde used What am I missing here?? I first thought it was due to differences in the geometry fields, because I had the same error with a self-drawn point feature class. Weird thing is that it DOES work with a previously exported point form the database, which has exactly the same schema as the one I'm querying now... Should I try a different export tool to materialize the query layer? Would love some help on this! 🙂 Thanks!
... View more
02-15-2016
04:01 PM
|
0
|
0
|
3159
|
POST
|
While having some more experience with the geoprocessors, I can suggest it's better to use an IGPProcess as the first argument of Execute(), the second arg is some default TrackCancel object that you first have to set up. So it's better to use the overloaded function with 2 arguments. So it would look something like this (example with another tool) STEPS: 1) Initalize tool object, set properties Dim copyraster As New CopyRaster With copyraster .in_raster = inputpath .out_rasterdataset = outputPath .pixel_type = FrameworkConstants.RASTER_PIXEL_TYPE End With 2) Intialize the Geoprocessor Dim gp2 As ESRI.ArcGIS.Geoprocessor.Geoprocessor = New ESRI.ArcGIS.Geoprocessor.Geoprocessor() gp2.OverwriteOutput = True gp2.AddOutputsToMap = False 3) Create IGPProcess and TrackCancel object Dim result2 As ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult = Nothing Dim pGPProcess2 As IGPProcess = DirectCast(copyraster, IGPProcess) Dim pTrackCancel As ITrackCancel = GetDefaultCancelTracker() 4) Execute and cast to IGeProcessorResult result2 = DirectCast(gp2.Execute(pGPProcess2, pTrackCancel), ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult) 5) Check if object is filled and status is correct If (result2 Is Nothing) OrElse (result2.Status <> esriJobStatus.esriJobSucceeded) Then Throw New GeoProcessingException(GetFullToolName(copyraster), gp2) End If If this doesn't work, you could sail a slightly different course and use Map Algebra instead, I prefer using this if I want to do a raster calculation Help: ArcObjects Help for .NET developers
... View more
08-24-2015
02:21 AM
|
1
|
0
|
910
|
POST
|
Hi, I've been struggeling with this as well the last few days, this is the only specific proposition around, but is doesn't work for me. First of all my geoprocessor.Execute() takes 3 arguments instead of 2, I dont know why because I've used it with 2 args in the past... For the ToolRasterCalc arg, the Execute doesn't accept this type RasterCalculator, it wants name as string Maybe I am using the wrong Geoprocessor, I thought there were 2, a 'GeoProcessor' and a 'Geoprocessor', but that's in c# and vb is case insensitive.. I used your code like this: Public Sub RasterCalculator(ByVal outputRasterPath As String, ByVal expression As String) Dim gp As New ESRI.ArcGIS.Geoprocessor.Geoprocessor Dim toolRasterCalc As New RasterCalculator(expression, outputRasterPath) gp.OverwriteOutput = True Dim gpResult As IGeoProcessorResult = New GeoProcessorResult gpResult = gp.Execute(toolRasterCalc.ToolboxName, Nothing, Nothing) End Sub I keep getting a nullreference exception at the gp.Execute line but I don't know why... any help here?
... View more
06-22-2015
12:43 AM
|
1
|
1
|
910
|
Title | Kudos | Posted |
---|---|---|
1 | 06-22-2015 12:43 AM | |
1 | 08-24-2015 02:21 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|