POST
|
I usually implement something like that in an extension. But you are not going down that path. What about embedding VBA code into your document to hook into the document event? The downside is you now have to distribute that map document to all your users.
... View more
03-16-2011
03:40 PM
|
0
|
0
|
269
|
POST
|
Try a "Try Catch" block to catch exception. I like to also use a boolean variable to let me know if I am in an edit operation or not. That way if my "Try Catch" encounters an exception then I can decided how to clean up the edit. Ususally involves stopping the edit operation and not saving any changes.
... View more
03-16-2011
03:22 PM
|
0
|
0
|
370
|
POST
|
Not sure why you're doing it but one way you could implment this is through document events. On document open go to a location for authentication (Windows, XML, or DB), return the results, if user is ok then you're done otherwise inform user and close down document.
... View more
03-15-2011
04:15 PM
|
0
|
0
|
269
|
POST
|
There are some overhead with opening and closing workspace. You program might take longer to execute depending on how many times you're doing this. I like to open and close one time and get what I need to memory for further processing. The same applies to AOInitialize because you're hitting the license server so more overhead. You can probably tell I am in the camp of doing these only once 🙂
... View more
03-04-2011
11:40 AM
|
0
|
0
|
134
|
POST
|
You are likely looking at some kind of customization in ArcGIS for what you want to do. If you are using an enterprise DBMS (Oracle/SQL server) then you might want to look into setting up triggers on the DB level as an alternative.
... View more
03-03-2011
03:23 PM
|
0
|
0
|
351
|
POST
|
Look at IFeatureSelection interface in the documentations. There are sample code that your can use. Basically, you want to make your selection in your featurelayer and trigger the SelectionChanged method in IFeatureSelection.
... View more
02-15-2011
12:19 PM
|
0
|
0
|
367
|
POST
|
Not sure exactly what are the requirements but IFeatureDataConverter2 has a method, ConvertTable, that might do similar thing that you are describing without recreating the table and loading row by row. Another alternative you can look into. Steve
... View more
02-09-2011
10:45 AM
|
0
|
0
|
227
|
POST
|
IMxDocument is not the same as IApplication, they are in two different co-classes. The document is derived from the application so you can't cast a document as application but you can cast the parent of the document as application because the parent of a document is the application. Hopefully that explanation helps.
... View more
02-09-2011
10:31 AM
|
0
|
0
|
191
|
POST
|
Your spatial filter is not set up properly. You need three pieces of information. Geometry - the shape of the selected RoadPolygon feature GeometryField - the name of the shape field in your RoadPolygon, usually "SHAPE" SpatialRel - whatever you have in your code Try that and see if it works... Steve
... View more
02-09-2011
10:04 AM
|
0
|
0
|
367
|
POST
|
Hey Cale, how's it going? Nice to bump into you on the forum. Steve
... View more
01-18-2011
09:33 AM
|
0
|
0
|
319
|
POST
|
You code looks fine from a initial glance. However, I noticed you have a space in your geodatabase. Not sure if it's intentional. You really don't need the second PFieldsEdit = PFields. Other than that, I can't see anything wrong.
... View more
01-13-2011
12:40 PM
|
0
|
0
|
305
|
POST
|
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000066000000 It explains commands and tool and how to use them. Right below that section is a section on toolbar. You would need to implement ITool in a new class, try using basetool so you don't have to type so much. But the documentation explains it all. Good luck.
... View more
12-15-2010
08:08 PM
|
0
|
0
|
1104
|
POST
|
Your StNum variable is declared as integer yet in your queryfilter you are searching for a sting. Is your street number field a numeric or string field? If numeric then remove the single quote from your whereclause. Plus your street name field in your code is "Street Na me". I don't if you intend to have a space or not. Maybe your code is not working due to nothing returning from the search.
... View more
12-15-2010
02:50 PM
|
0
|
0
|
577
|
POST
|
In your class that is implementing the ITool interface, one of the event is "OnMouseDown". Basically, that is fired when a user clicks on the map in your application. Two of the parameters are X and Y. Basically, they are XY of the click on the screen. You need to take these two parameters to get XY in map units. Do something like, Dim pPnt as Ipoint = Nothing Dim pActiveView as IActiveView pActiveView = "Your Map Object" pPnt = pActiveView.ScreeDisplay.Displaytransformation.ToMapPoint(x, y) pPnt is a point with XY coordinate in map units that correspond to your screen click.
... View more
12-15-2010
02:28 PM
|
0
|
0
|
1104
|
POST
|
What errors are you encountering in Visual Studio debugger?
... View more
12-15-2010
02:11 PM
|
0
|
0
|
577
|
Title | Kudos | Posted |
---|---|---|
1 | 01-23-2013 03:31 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|