|
POST
|
Diego, I'm not a C# developer so I find all the curly brackets confusing as hell! Anyway if I have understood your logic you first kill off all existing processes? Then you call the GetActiveObject("Excel.Application") line and you get your COM exception error. Well reading the help on that it does say it returns a com Exception error if nothing exists, and that's not surprising as your first bit of the code killed off everything! So your com exception is your "Null reference", I guess you simply create an instance in the catch section? Duncan
... View more
06-14-2014
10:55 AM
|
0
|
0
|
1285
|
|
POST
|
Sophia, This forum is specifically for ArcObjects but your question is related to Python and ArcPy, you want to be posting such questions in this section of the forum and not here. Having said that your error is due to a simple syntax mistake. You wrote: arcpy.CreateFileGDB_Management(root_directory, terminal_db) what you should have written is: arcpy.CreateFileGDB_management(root_directory, terminal_db) So this error can be fixed by changing exactly 1 character! Duncan
... View more
06-14-2014
10:32 AM
|
0
|
0
|
1687
|
|
POST
|
Neil/Sean/Others, I just can't seem to hook into the AddinImpl class of my Dockable Window in the AddIn from within my COM Class in MS Access. Even if I add a reference to the AddIn I am not successful. 😞 As always there is usually an alternate way and what I have done works because I have a static folder location which I need to create files in as this is how Access picks up on any selection that the user has made in ArcMap. I've discovered the rather nifty FileSystemWatcher and so I dropped this component on my dockable window form and set the Changed/Created event to monitor the creation and update of a text file which holds an ID number created by Access. As this file only ever changes when the user does something in Access then the dockable window reacts and updates the text box. 🙂 I mention this here if people are having problems connecting to controls in AddIns from COM classes being called in VBA... Duncan
... View more
06-09-2014
08:47 AM
|
0
|
0
|
1484
|
|
POST
|
Hi Neil, Many thanks for your advice. I am going to be at a training course for the next few days so when I am back I will have ago at what you suggested, unless someone swoops in with the killer answer! Either way I will report back on this thread as I think there is very little help on this subject. Come on esri put some examples in the help file showing how to use userdata!
... View more
06-03-2014
12:32 PM
|
0
|
0
|
1484
|
|
POST
|
ESRI/ArcObject Gurus. I have developed a dockable window as an AddIn using VB .Net. When you use the Wizard to create the AddIn it creates a UserControl which one populates with drop downs, text boxes etc. This all works fine. I have created a COM object so this compiles to a separate DLL which is referenced by MS Access. This COM object starts an instance of ArcMap and needs to pass a value from an Access form to a textbox on the Dockable Window. I can get a handle on the window using the IDockableWindowManager.GetDockableWindow Method but I can't figure out how to drill down to the Textbox. Presumably its via the UserData property? If I get the object returned by this property and run it through TypeName function it simply says its IUnknown. Various threads on the forum and searches point to this blog. But this method requires you to be able to access the AddIn so you are running code within the ArcMap framework. The Addin is a file only understood by ArcMap and not something that MS Access can reference. So my question is what is the object returned by UserData property, the help page on this topic is decidedly unhelpful? Has anyone worked out how to cast what ever it returns into a usercontrol where you can drill down to the various controls on it? I very much look forward to any advice on this as I have hit the "wall".
... View more
06-03-2014
09:53 AM
|
0
|
4
|
1883
|
|
POST
|
I agree with Greg, what you describe is not happening in 10.2.1 using the standard line construct tool. Have you got some custom extension intercepting the edit and converting them into segments? Are you actually using the Line construct tool? I can get something equivalent to what you are describing if I use the construct 2-point line tool on the COGO toolbar.
... View more
05-29-2014
05:58 AM
|
0
|
0
|
2550
|
|
POST
|
I'm suggesting you call the summary statistics geo-processing tool. There are several ways to do this one method is discussed here but I prefer this approach where you create an array of parameters and feed that into the chosen tool. It's what ever you find easiest.
... View more
05-29-2014
01:11 AM
|
0
|
0
|
1824
|
|
POST
|
If your scenario is something like this: [ATTACH=CONFIG]34135[/ATTACH] Then I would first use the Feature Vertices to points to extract one end of the line this can then be used to do a spatial join with your polygons. Having assigned the polygon ID to the point you spatial join that back to the polyline. This guarantees the correct ID for the line. You use that to quality control your output. Then its just an intersect tool with output set to LINE. If your line ID's are duplicated then you must be passing out/into the polygon.
... View more
05-28-2014
08:58 AM
|
0
|
0
|
2644
|
|
POST
|
Eric, You say you create 2 random points in each polygon then create line between them. Under what scenario would that line actually be outside the polygon? I could see a scenario of a line partially in a polygon (e.g. donut polygon) but both ends would be in the polygon. Can you upload a sketch of what of a true and false scenario you are trying to test? It's not clear what you asking as your pseudo code appears to contradict your description? Duncan
... View more
05-28-2014
08:31 AM
|
0
|
0
|
2644
|
|
POST
|
What are your fPath and fName variables, what do they contain?
... View more
05-26-2014
07:15 AM
|
0
|
0
|
1145
|
|
POST
|
My dockable window has drop downs/buttons to control what the user needs to do. I can get a handle on it and write the ID infomation to it. The editor event captures the onCreate of feature and then goes searching for the dockable window. You can expose some public properties of your extension?
... View more
05-23-2014
04:44 PM
|
0
|
0
|
1652
|
|
POST
|
Your sub-model Input Riparian Point- is it your intention to "spit out" a single FeatureClass at a time or a bunch of FeatureClasses based upon your wild card. If it is meant to be a single FeatureClass I see no reason for it to be a sub model unless its doing some other complex stuff so you could probably do away with the collects tool. Normally the collects tool is the output parameter of a sub-model which you would link directly to the append tool. Have a look at this question I answered. Try tweaking these first?
... View more
05-23-2014
10:16 AM
|
0
|
0
|
3209
|
|
POST
|
Clint, To add a topic into the desktop help file you would need to edit the original document (probably unwise). I use a very good help documentation software called HelpNDoc. This software allows you to import existing CHM files. At that point you could edit it then export it back out. I've just tried this and it works but I would hesitate on this as HelpNDoc may for example loose anchors which ArcMap is relying on. I'm not saying it will but editing the definitive Help for ArcMap just sounds like its going to go wrong. I would suggest some serious testing if you do that just make sure you have not broken it. An alternative and what most would do is to create a separate CHM file and supply that with your custom tool. I've not used WPF but I do hook into my custom help file by using the HelpProvider component, you set the name space to be your chm file and your topic. Then by putting focus on the control a user can simply press F1. Duncan
... View more
05-23-2014
09:43 AM
|
0
|
0
|
911
|
|
POST
|
Brett, When you say "model searches for a featureclass" are you using an Iterator? If you use a FeatureClass iterator that will return all the FeatureClasses in a workspace, so missing ones are never an issue. Have a look at that, if that is not how you are searching for FeatureClasses the I suggest you upload an image of your model for us to understand. Duncan
... View more
05-23-2014
09:28 AM
|
0
|
0
|
3209
|
|
POST
|
Melita, I have created a folder with some prj files and placed that it the favourites folder (C:\Users\hornbydd\AppData\Roaming\ESRI\Desktop10.2\ArcMap\Coordinate Systems). When I expand Favourites in the Coordinate System tab I can see it! Great but... Your description also seems to suggest I can add to the tree structure in coordinate system tab a folder with prj files from another location. So I create a folder called c:\temp\Approved with some prj files, I add a folder connection through the Catalog window then go to the import button on the Coordinate System tab and select my folder. Nothing appears to happen. I am using ArcGIS 10.2.1 on Windows 7. I think your first solution will work for the person in question. Thanks for your help. Duncan
... View more
05-23-2014
09:19 AM
|
0
|
0
|
1221
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-03-2026 07:31 AM | |
| 3 | 06-29-2026 05:17 AM | |
| 1 | 02-15-2023 05:45 AM | |
| 1 | 06-16-2026 02:37 AM | |
| 1 | 06-15-2026 08:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-07-2026
10:17 AM
|