POST
|
Thanks Sean, It worked. Appreciate your help. Below is my code.
string keyPath = @"Software\ESRI\Desktop10.2\ArcMap\Settings\GettingStarted";
keyForGettingStartedDialog = Registry.CurrentUser.OpenSubKey(keyPath, true);
keyForGettingStartedDialog.SetValue("ShowStartup", "0");
S.
... View more
03-18-2014
09:04 PM
|
0
|
0
|
179
|
POST
|
Hi, I want to uncheck the "Show Getting Started Dialog" chekcbox ( screen shot is attached here ).So that Getting Started Dialog box does not appear when the ArcMap starts. For this my guess is, I have to use IStartupDialogSettings interface.If this is the case, I am not getting how to use this interface.So, any help is appreciated on this. Thanks in advance. S.
... View more
03-18-2014
06:52 AM
|
0
|
2
|
1494
|
POST
|
Hello, I have tested this issue in 10.2.1 also and found that it is not fixed.The �??esriCustomizationEvent.esriCEInvokeCommand�?? event does not get fired when a toolbar is requested by right clicking on the grey area on the ArcMap. Any help on this is appreciated. Thanks.
... View more
03-05-2014
08:58 PM
|
0
|
0
|
453
|
POST
|
Hello David, Thanks for letting me know. I appreciate it. Thanks, S.
... View more
01-21-2014
04:10 AM
|
0
|
0
|
453
|
POST
|
Swapna, Thank you for the reply and your help. I tried these UIDs however they did not work. Those windows are just there in the ArcMap. Just to be more clear, I have attached the screen shots of the windows I want to remove from the ArcMap. Please view them and let me know how can I remove this windows from the ArcMap. Or else, if I could remove the buttons which open these windows, that will also be fine. I am on ArcGIS 10.2 P.S. Please ignore the third screen shot, i.e. Tools Context Menu. Thanks once again. S.
... View more
01-21-2014
03:58 AM
|
0
|
0
|
237
|
POST
|
Hello, We are developing an ArcMap Extension in which we are removing few built-in tools and commands using interface ICustomizationFilter and ICommandItem::delete. I have been successful for most of them but not for removing the Toolbar Context Menu which appears after right clicking grey toolbar area in the ArcMap. Basically, we do not want our users to add/remove toolbars using this context menu, so want to lock the customization. So, I am really stuck on this. I have tried a lot but no success so far. The UID which I have been using for this Toolbar Context menu "{2AE639DD-1C2F-11D2-94B6-080009EEBECB}". So, any help on this problem will be appreciated. The screen shot for this context menu is attached for more clarity. Thanks, S.
... View more
01-16-2014
02:31 AM
|
0
|
4
|
2609
|
POST
|
You might want to look at this code. You can call ChangeVersion(pMxDoc, pOldWorkspace as IFeatureWorkspace, pVersion as IFeatureWorkspace); method after the line //update the layers in the mxdoc in my earlier post. This is the same method name, so you can change the old method name to something like "ChangeVersionByName".
public void ChangeVersionByName(IMxDocument MxDoc, IFeatureWorkspace OldWorkspace, string versionName)
{
try
{
//blah blah....
//update the layers in the mxdoc
ChangeVersion(pMxDoc, pOldWorkspace as IFeatureWorkspace, pVersion as IFeatureWorkspace);
}
catch (Exception ex)
{
}
}
This new "ChangeVersion" method will start to update your map, tables, relationships making them point to the new version . hope this helps. S.
... View more
01-15-2014
10:59 PM
|
0
|
0
|
83
|
POST
|
Hello, I am developing an extension for the ArcMap in which, I will be removing the native tools and commands in the ArcMap. I am doing this in the Startup method of the extension when application framework in initialized. I have been able to remove most of then however, stuck on the few things mentioned below. 1. Remove the Catalog and Search buttons that appear on the right hand side of the ArcMap ( screen shot attached) 2. Customize context menu. 3. Context menu for Table of contents screen shot attached ( screen shot attached) I would appreciate any help on this since I am not being able to figure this out. Thanks in advance. S.
... View more
01-14-2014
06:00 AM
|
0
|
2
|
2451
|
POST
|
Swapna, Thanks for reply. I fixed the issue today only based on similar logic but a bit different. Basically, I wanted to control this property in some later stage of the application. So, I overrode this property. Below is my code :
public override void OnClick()
{
//some code for onclick handler.
}
public override bool Enabled
{
get
{
//if editing is started, then enable the command.
return Common.GlobalConfig.IsEditingStarted;
}
}
Thanks once again.
... View more
01-09-2014
05:59 AM
|
0
|
0
|
265
|
POST
|
Fixed the issue. For anyone who is interested, I am posting the solution. The problem was the way I was retrieving the source and target versions. I needed two versions, the source and target. I was connecting to the SDE workspace twice, one for each versions and so I had reference to different workspaces. We modified the code as below to get the version. public IVersion GetVersionByName(string versionName) { try { IDocumentDatasets doc = pMxDoc as IDocumentDatasets; IVersionedWorkspace ver_ws = doc.Datasets.Next().Workspace as IVersionedWorkspace; return ver_ws.FindVersion(versionName); } catch (Exception ex) { return null; } }
... View more
01-05-2014
08:30 AM
|
0
|
0
|
163
|
POST
|
Hi, I am using IVersionChangesWindow to display the version changes between two specified versions. The window for VersionChange is getting displayed, however it is not showing changes in the two versions. Below is my code to initialize and show the window. public void ShowVersionChangesWindow(string sourceVersionName, string targetVersionName) { try { UtilityMethods utilMethods = new UtilityMethods(); IVersion sourceVersion = utilMethods.GetVersionByName(sourceVersionName); IVersion targetVersion = utilMethods.GetVersionByName(targetVersionName); IMap pMap = (Common.GlobalFunction.Instance.G_PApps.Document as IMxDocument).FocusMap; IActiveView pActiveView = pMap as IActiveView; ITrackCancel trackCancel = new CancelTrackerClass(); IVersionChangesWindow pVersionChngesWin = new VersionChangesWindow(); pVersionChngesWin.Initialize(Common.GlobalFunction.Instance.G_PApps.hWnd, pMap, sourceVersion, targetVersion, pActiveView.FullExtent, trackCancel); pVersionChngesWin.Visible = true; } catch (Exception ex) { } } AS explained above, I am passing in the two version names which definitely have changes between them. If I use the built in Version Change window in the ArcMap, I can see the changes. So, I assume, I might have missed some thing obvious that is causing this issue. I have checked the values of all arguments to Initialize method and they all are fine. Any help on this issue, is appreciated. Thanks and regards.
... View more
12-30-2013
05:03 AM
|
0
|
1
|
501
|
POST
|
Glad your issue is fixed and thanks for posting the solution.
... View more
12-29-2013
07:34 PM
|
0
|
0
|
294
|
POST
|
You can try using IMxDocument.OperationStack . The documentation says; If your tool edits features and rows, you can use IEditor::StartOperation, and IEditor::StopOperation and the actions in between will be automatically added to the OperationStack as a single operation. Stopping an edit session clears the OperationStack.
... View more
12-29-2013
04:10 AM
|
0
|
0
|
93
|
POST
|
INALayer is implemented by NALayerClass class. This class also implements ILayer and other interfaces but not IFeatureLayer. This could be the reason. Can you try to get ILayer from INALayer and then IFeatureLayer from ILayer? HTH.
... View more
12-29-2013
04:04 AM
|
0
|
0
|
294
|
POST
|
So, do you get false when you execute following line?
if ( naLayer is IFeatureLayer)
{
}
... View more
12-29-2013
03:56 AM
|
0
|
0
|
294
|
Title | Kudos | Posted |
---|---|---|
1 | 01-18-2015 10:19 PM | |
2 | 02-03-2015 05:38 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|