8,536 reputation
1028
bio website tydlevidle.cz
location Prague, Czech Republic
age 30
visits member for 4 years, 3 months
seen Oct 9 at 20:44

Jun
4
comment can arcpy detect whether it's running in Desktop or Server?
Can you post what the result is on Server? Could be useful for future reference.
Jun
4
comment How to access and send coordinates from third party application to the current running instance of ArcMap?
The benefit of wrapping it inside an extension is that the cross-process communication is less chatty and thus faster and more reliable.
Jun
4
comment can arcpy detect whether it's running in Desktop or Server?
RuntimeManager is .NET, not a COM object.
Jun
4
comment How to access and send coordinates from third party application to the current running instance of ArcMap?
I've done this by implementing an ArcMap extension, exposing a COM interface with methods I wanted to perform cross-process. Then, through AppROT, which gives you reference to the running ArcMap instance (IApplication), I access my extension and call methods on the defined interface. These calls are marshalled via the message loop.
May
29
comment How to add individual layer of WMS group layer to ArcMap?
Are you able to add that layer (and that layer only) through the ArcMap user interface?
May
29
answered How to add an existing feature class to a new feature dataset
May
29
comment Loading an extension-related mxd in ArcMap by double clicking it
Did you ever actually try to run ArcMap without the extension to see if the crash occurs?
May
29
comment Loading an extension-related mxd in ArcMap by double clicking it
In my opinion, you don't need to radically change anything. It is perfectly ok to use both in one project. If the documentation doesn't explain the persistence mechanism, then I'm afraid I can't either.
May
29
comment Loading an extension-related mxd in ArcMap by double clicking it
The two are related but not the same. I think you misunderstand some of the core concepts around application extensions, as well as the persistence framework in ArcGIS. See Creating an application extension and Implementing persistence
May
28
answered Loading an extension-related mxd in ArcMap by double clicking it
May
28
comment Loading an extension-related mxd in ArcMap by double clicking it
Sorry, not sure if I am able to be clearer than that. Do you know how to configure ArcMap so that it runs without your extension?
May
28
comment Loading an extension-related mxd in ArcMap by double clicking it
That's ok, the registration methods are called by EsriRegAsm.exe/RegAsm.exe (or not at all when you implement the extension in an addin). My point was, does the crash happen without the extension being present??
May
28
comment Loading an extension-related mxd in ArcMap by double clicking it
Does the crash occur when you unregister your extension?
May
28
comment Loading an extension-related mxd in ArcMap by double clicking it
In the IPersistVariant implementation (implemented by the extension), you are responsible for saving and loading your extension-specific data. E.g. IVariantStream.Save should use the passed stream to save your OurSolver instance, which will result in IPersistStream.Save (implemented by OurSolver) being called. Analogically, you implement IVariantStream.Load in the same way.
May
28
comment Loading an extension-related mxd in ArcMap by double clicking it
Well, still not clear to me. Can you post a skeleton of how the extension class and the persistence implementation is organized?
May
28
comment Loading an extension-related mxd in ArcMap by double clicking it
Are you basically saying that IPersistStream.Load implemented on your extension is not being called when opening the document by double-clicking?
May
27
answered ArcGIS desktop extension and prevent attribute editing
May
24
answered How to write table blob field to file using ArcObjects?
May
24
answered Object does not exist in the namespace “http://schemas.esri.com/arcgis/client/2009”
May
22
comment ArcObjects: Custom GP tools: GPCompositeDataType and DataType
Seems like a bug. You can always check what type the resulting IGPValue is by querying for implemented interfaces, such as IDEFeatureClass or IDEWorkspace3 . Will that do the trick?