POST
|
Hi Tabraiz, I think you want JTran's solution from here: c# - Zoom to selected features with ArcObjects - Geographic Information Systems Stack Exchange IDocument d = ArcMap.Document as IDocument; IUID ud = new UIDClass(); ud.Value = "esriArcMapUI.ZoomToSelectedCommand"; ICommandItem ci = d.CommandBars.Find(ud); ci.Execute(); Cheerio! -Nav.
... View more
01-27-2016
09:42 PM
|
0
|
1
|
188
|
POST
|
Hello, I'm experiencing strange behaviour in ArcGIS v10.3 Adding layout graphic elements to all 4 corners of our map will result in a full refresh every time a point feature is moved. Things that I've noticed are: a) If I delete the graphic elements, ArcMap will perform a partial refresh using the extents of the feature being moved, which in my case is a point feature with a tiny extent so the refresh is super fast. b) If we only have 2 graphic elements (1 in corner, 1 in center), ArcMap will create a bounding box between these graphic elements and refresh that area, regardless of where my point feature is (ie a partial refresh will occur around my point feature as well as the bounding box between the graphic elements) Has anyone else come across and/or fixed this issue? Cheers, -Nav.
... View more
01-27-2016
08:50 PM
|
0
|
0
|
1911
|
POST
|
So, there was some code leading up to the original snippet that was the actual cause of problem. I originally had: (m_frame.Map as IActiveView).Extent = extent; which I changed to the following and it's not crashing anymore: (m_frame.Map as IActiveView).Extent = extent;
m_frame.MapBounds = extent; Thanks to Walter at support for picking this up. -nav.
... View more
03-13-2012
08:18 PM
|
0
|
0
|
173
|
POST
|
I think you'll want to take a look at: http://resources.arcgis.com/content/arcsde/10.0/sql-server-system-requirements Cheers, -nav.
... View more
03-08-2012
01:01 PM
|
0
|
0
|
126
|
POST
|
Hello, Does anyone know why the following code crashes ArcMap v10? if you attempt to view Data Frame properties after running it - bupbow! But it works perfect in v9.3.1 also - is there a way of getting around it? I need this functionality to migrate our Production environment to v10. Many thanks, -nav.
public override void OnClick()
{
IApplication application = m_hookHelper.Hook as IApplication;
IMxDocument mxdDoc = application.Document as IMxDocument;
IMap map = mxdDoc.ActiveView.FocusMap;
IGraphicsContainer graphicsContainer = mxdDoc.PageLayout as IGraphicsContainer;
IFrameElement frameElement = graphicsContainer.FindFrame(map);
IMapFrame mapFrame = frameElement as IMapFrame;
// this line crashes in ArcGIS v10
mapFrame.ExtentType = esriExtentTypeEnum.esriExtentBounds;
// this line also crashes in ArcGIS v10
//mapFrame.ExtentType = esriExtentTypeEnum.esriAutoExtentBounds;
}
... View more
03-08-2012
12:24 PM
|
0
|
1
|
402
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|