|
POST
|
Bruce? Who is this Bruce? I'm Duncan! 😄 I've created a COM Class and exposed a method called StartEditing. So in Access I create an instance of this and call the method, passing in the IApplication object. In this method code it gets a handle on the Editor and starts the Edit session for the specified workspace: pEditor.StartEditing(pWorkspace) I have an Extension that is listening for edit events and writes an ID which was written to a dockable window to the feature. So all the editing is done in ArcMap I "just" intercept the edit event. I have to test if I am actually in an MXD with the required layers or just a new blank mxd that a user happened to open up. So my Visual studio solution contains two projects, one that is the AddIn extension and another project that creates my DLL with my COM Class, it's this one I reference in Access.
... View more
05-23-2014
05:43 AM
|
0
|
0
|
1635
|
|
POST
|
I am working on a project where Acccess drives ArcMap and vice versa. My code in Access starts a session of ArcMap (sounds like you have done that) and zooms to a feature. I have an extension that listens out for edit events. I created a COM object which compiles to a DLL and is referenced by Access which starts the edit session so this is how I pass an ID to the application. It's important to realise this is not an AddIn but a COM class. Another (and probably easier) method is in your other application you write your information to a specified location and your edit event looks there. As for best practise, that to me is the one that works first and is easiest to develop so hopefully easy to maintain...
... View more
05-23-2014
03:14 AM
|
0
|
0
|
1635
|
|
POST
|
Evan, I just tried to replicate your problem in VBA and it returns Nothing, which leads me to think you have discovered a bug. I thought the approached discussed here may work but that returns Nothing to. I reckon ESRI have broken this interface as this thread I link to has no discussion about the Messages object. Duncan
... View more
05-23-2014
02:48 AM
|
0
|
0
|
1041
|
|
POST
|
All, I was just asked if it was possible to add another folder to the display with a set of "approved" coordinate systems. The favourites folder is not enough as other coordinate systems could creep in to it. I've had a look at the help file and can see no way of hooking into this dialog, is it even exposed? [ATTACH=CONFIG]34031[/ATTACH] Duncan
... View more
05-23-2014
02:22 AM
|
0
|
2
|
1460
|