POST
|
You need to put that value in the "Start extrenal program:" textbox instead. "Command line arguments:" passes whatever you have typed in the box to your application, so in this case is passing the application path.
... View more
05-07-2010
05:40 AM
|
0
|
0
|
224
|
POST
|
Try looking into MapControl.OcxState That may help you out.
... View more
05-05-2010
05:17 AM
|
0
|
0
|
212
|
POST
|
With some experimentation, I was able to get some use of .net 4.0 with 9.3.1. I changed arcmap.exe.config to the following: <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" /> <supportedRuntime version="v2.0.50727" /> </startup> </configuration> which allows debugging in vs2010. I upgraded a project from 2008 to 2010 and everything works targeting 4.0 Framework (make sure it isn't targeting 4.0 Framework Client Profile). However, I haven't managed to get the ESRI assemblies to show up in the references dialog box or the items in the project templates...it's getting there though.
... View more
05-04-2010
10:50 AM
|
0
|
0
|
211
|
POST
|
The InMemoryWorkSpaceFactory was exactly what I needed. Thank you for the responses, it has helped me move forward and I have some new tricks at my disposal 😄
... View more
05-03-2010
05:04 AM
|
0
|
0
|
211
|
POST
|
I have a program written in Visual Basic through ArcGIS 9.3 which has worked fine for a few years and now suddenly I get an error every time I try to run it. I have not updated my programs in the recent past and the programming language seems sound to me. My other programs seem to work. Can anyone look at this and help me figure out what might be causing a problem. I get Run-Time error '91' Object variable or With Block variable not set. I have posted the code below, the code I have provided is supposed to go through each layer in my .mxd until it finds one with features selected in it. I get an error on the very last line If pSelSet.Count > 0 Then Exit Do and I can't figure it out. Have you checked to see if pLayer.Selectable is true? I'm not sure if that has an effect on the SelectionSet, but that would be something to check.
... View more
04-29-2010
07:30 AM
|
0
|
0
|
484
|
POST
|
Hi all, first let me describe my situation as there may be a better way of handling it. I am working with ArcEngine 9.3.1 with C#. I have a search form that allows the user to query for data in any field and display the results. I have a second form that can be displayed at that point to display a colored layer over the results. I want to be able to color in the results with different colors based on sub queries. I thought of using a uniquevaluerenderer for this as it would give me the layer layout that I need (color coded categories), but unfortunately with it needing unique values, I can't use wildcards to grab multiple polygons. I decided then that I would create my own featureclass on-the-fly and populate it with my results and adding a field to indicate what records belonged to what color group, that way I could use the uniquevaluerenderer. An Example: I query for all parcel numbers that start 074 With those results, I would like to color code them in the following way: 074A = Red 074B = Yellow 074C = Green etc I dug around and finally figured out how to add a featureclass and can populate it the way I want, but now the problem is...I can't delete it. I really don't want to leave my featureclass in the geodatabase after the query results have been displayed. When I try to delete the featureclass (using DeleteByName() from IFeatureWorkspaceManage), I get the error message "The application is not licensed to perform this operation". Why would I be licensed to create but not to delete? Any help on this would be much appreciated
... View more
04-29-2010
05:54 AM
|
0
|
3
|
927
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|