POST
|
Do filegeodatabase support the ORDER BY function? They didn't used to in ArcGIS 9 - not sure whether they do or not in 10. From http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//003n00000032000000: File geodatabases do not support all the features and functions available for personal geodatabases. At ArcGIS 9.2, the most commonly used functions not supported by file geodatabases include DISTINCT, GROUP BY, and ORDER BY, and the set functions AVG, COUNT, MIN, MAX, and SUM are not supported outside subqueries. Support for some of these is likely to be added in future releases.
... View more
11-16-2012
06:44 AM
|
0
|
0
|
643
|
POST
|
Cast your polyline to an IPointCollection. Then you should be able to enumerate over the vertices.
... View more
11-16-2012
06:15 AM
|
0
|
0
|
279
|
POST
|
Hi What problem are you having? Converting vba to c#, or something else? Regards Andy
... View more
05-03-2011
01:10 AM
|
0
|
0
|
150
|
POST
|
Hi I've used a mixture of NUnit and Microsoft unit tests. They both seemed to do the job so I wouldn't recommend one approach over the over. I've looked around in the past to try and find details of how to mock Arcobjects but with very little success. There's an interesting post here: http://gis.stackexchange.com/questions/1393/how-to-unit-test-arcobjects-with-mocking Basically ArcObjects is such a huge object model that your time is best spent improving the design of your system in order to reduce the amount of mocking you need to do - rather than putting all your efforts into the actual mocking.
... View more
09-16-2010
12:44 AM
|
0
|
0
|
779
|
POST
|
This link seems to state that .net 3.5 is the required target version - but then it doesn't specifically rule out .net 4.0 either. http://resources.arcgis.com/content/arcgissdks/10.0/system-requirements I've used wpf fairly extensively and not hit any issues with its use in ArcDesktop. If you're used to WindowsForms then interfacing with wpf forms is not much different - in the end you're just displaying a form, and it doesn't really matter whether it's a windows form or wpf one. With this kind of model the interface between ArcDesktop and your wpf code is fairly simple so there's not much that can go wrong. I've read it's possible to embed wpf controls directly onto windows forms but this isn't something I've tried. If you're going down that route then you're more likely to hit issues - but then you're going to end up with a slightly odd looking application so this probably isn't something I'd recommend. I think the biggest strength of using wpf is using the MVVM (Model-View-View-Model) design pattern (seee http://msdn.microsoft.com/en-us/magazine/dd419663.aspx), especially with regards to unit testing. Definitely worth investing the time to learn about. Regards
... View more
08-26-2010
02:21 AM
|
0
|
0
|
310
|
POST
|
Sorry, ignore the first example. I was copying from C#. Try this instead: If (TypeOf (firstLayer) Is ESRI.ArcGIS.Carto.IFeatureLayer) Then In the second example you're getting an error because you're not setting firstLayer to anything. In the VB6 code you posted firstLayer is never assigned a value - I assume in your application this isn't the case though?
... View more
08-25-2010
11:42 PM
|
0
|
0
|
482
|
POST
|
I would be suprised if you couldn't use VS2010 Express as long as you make sure you are targetting the .net 3.5 framework rather than .net 4.0 with your project. I've not tried it so can't make any guarantees. There is a way to debug using VS Express, see http://forums.arcgis.com/threads/11414-Express-Edition-gt-cannot-debug-DLLs for details.
... View more
08-25-2010
06:24 AM
|
0
|
0
|
358
|
POST
|
Hi There's lots of ways you can do this - though that doesn't always make it any easier to find a solution... Try If firstLayer.GetType().Equals(typeof(ESRI.ArcGIS.Carto.IFeatureLayer)) Then or If firstLayer.GetType().ToString().Equals("ESRI.ArcGIS.Carto.IFeatureLayer") Then Basically GetType is used on an instance of an object (such as firstLayer in your example), and typeof is used when you don't have an instance of the object (e.g. IFeatureLayer interface). Hope this helps.
... View more
08-25-2010
01:21 AM
|
0
|
0
|
482
|
POST
|
Hi I see what the problem is now. There's a couple of things you could try, though I've not got a copy of VS Express on my machine to test these on. First is to start Arc and then in VS go to Tools->Attach to process. Select the ArcDesktop process and click Attach. This should then allow you to debug the dll. The other thing to try is to manually edit the vbproj file (or it might be the vbproj.user file if you've got one). You need to add the lines in the bold below: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <StartAction>Program</StartAction> <StartProgram>C:\Program Files\ArcGIS\Bin\Arcmap.exe</StartProgram> </PropertyGroup> You'll probably need to do this in a few places in the file. Then hopefully VS Express will be able to pick this up and start Arc when you start debugging. You can also add the following line if you want to add arguments <StartArguments>C:\MyFolder\MyFile.mxd</StartArguments> Hope these work for you. There might well other (better) ways to do this though. Regards
... View more
08-23-2010
07:39 AM
|
0
|
0
|
468
|
POST
|
Is this of any use? http://arcscripts.esri.com/details.asp?dbid=16580
... View more
08-23-2010
05:26 AM
|
0
|
0
|
129
|
POST
|
Yes, it's possible. What information are you trying to get about the feature and its table? And what language are you using vba/.net/java?
... View more
08-23-2010
02:13 AM
|
0
|
0
|
360
|
POST
|
Try System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); This should give you the folder the currently running dll is in.
... View more
08-23-2010
12:25 AM
|
0
|
0
|
155
|
POST
|
What dlls are you trying to debug? You can certainly debug your own code with Express so it's far from usless.
... View more
08-23-2010
12:19 AM
|
0
|
0
|
468
|
POST
|
If FindLayerByName doesn't find a matching layer then it will return Nothing. So you just need to check for this after calling the function: if not pFeatLayer = nothing then Set pDispTable = pFeatLayer Set pFCLayer = pDispTable.DisplayTable Set pTLayer = pFCLayer else ' No matching layer end if Regards
... View more
08-20-2010
04:42 AM
|
0
|
0
|
149
|
POST
|
I don't think .net 4 is supported yet. What are you trying to do with WPF? I've displayed wpf forms in ArcDesktop - what are you trying to do beyond that? The only issue I've found is performance as the WPF forms can take a little while to load initially. Andy
... View more
08-20-2010
04:11 AM
|
0
|
0
|
310
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|