POST
|
Hey Leo, Thanks, that did it!!! From there i was able to get what I needed to center the form!!! Thanks again, Kevin Orcutt
... View more
02-20-2013
04:43 AM
|
0
|
0
|
3
|
POST
|
Hello Leo, getting there, but not quite, sorry. I figured that I would have to do something along those lines, but getting the application height and width among other things are escaping my grasp... The KEY thing that I'm trying to get is the application's location on the desktop. That way I can place the form over it when it comes up. As mentioned, this is particular to when ArcMap is on the second monitor or beyond. I want the form to appear over ArcMap, not back on the first monitor. So the location is Key... Any other ideas??? Kevin O.
... View more
02-19-2013
12:33 PM
|
0
|
0
|
3
|
POST
|
Hello All, I'm sure this one's been covered, but for the life of me, i can't find a solution in either the forum or the docs :confused: ... I'm building an Add-In in Visual BASIC for a Desktop environment (Arcmap 10.1). I have a simple tool that the user selects a feature, and then I want a simple form to come up to show some attributes and other things... This is not a dockable window or anything like that, just a simple form... I am trying to bring up a custom form after the user "Uses/clicks" my Add-In tool... I can presenty get the form to come up, that's NO problem... It's the location of that form that's causing me grief :mad:. I am trying to center the form on the ArcMap application window... NO GO! I can't figure out a way of getting the form to come up over/centered on the ArcMap application. This is particularly important when the user has multiple monitors and has ArcMap on the second or beyond monitor... Is there a way of getting the desktop (Windows Desktop) location of the running ArcMap application and using that to locate said form??? I'm pretty sure this should be an easy one to solve,, just pulling my hair out trying to figure out! 😞 I'm figuring I should start with My.ArcMap.( something goes here :)) Thanks in Advance, Slightly Frustrated, Kevin Orcutt
... View more
02-19-2013
11:44 AM
|
0
|
7
|
474
|
POST
|
Yes, there is an "OnClick" sub for a tool. if you use the ArcGIS|Extending ArcObjects|Base Tool template, there will be a provided "OnClick" sub for you to fill out with all of your appropriate code. Hope this helps, Kevin Orcutt GIS Developer/Consultant City of Cincinnati - Cincinnati Area GIS (CAGIS) (513) 850-1335 (cell) Kevin.Orcutt@cincinnati-oh.gov www.cagis.org
... View more
09-07-2012
12:28 PM
|
0
|
0
|
6
|
POST
|
This might be overkill, but here is a quick snapshot with slight modifications of some code that I use to get a centroid of a polygon feature... Private Function GetPolygonFeatureCentroid(ByVal PolygonFeatureLayer As IFeatureLayer) as IPoint Dim PolygonFeatureClass As IFeatureClass PolygonFeatureClass = PolygonFeatureLayer.FeatureClass Dim PolygonFeatureSelection As IFeatureSelection = PolygonFeatureLayer Dim PolygonFeatureSelectionSet As ISelectionSet = PolygonFeatureSelection.SelectionSet Dim PolygonFeatureCursor As IFeatureCursor Dim newPolygonFeature As IFeature Dim newPolygonArea As IArea Dim newPolygonFeatureCentroid As IPoint Dim queryFilter As IQueryFilter = New QueryFilterClass() 'ToDo: Setup the where clause here to select the feature that you want... or skip altogether if you already have that feature! PolygonFeatureFSelectionSet = PolygonFeatureClass.Select(queryFilter, esriSelectionType.esriSelectionTypeSnapshot, esriSelectionOption.esriSelectionOptionNormal, Nothing) PolygonFeatureCursor = PolygonFeatureClass.Search(queryFilter, False) If PolygonFeatureFSelectionSet.Count > 0 Then newPolygonFeature = PolygonFeatureFCursor.NextFeature newPolygonArea = newPolygonFeature.ShapeCopy newPolygonFeatureCentroid = TryCast(newPolygonArea.Centroid, IPoint) End If Return newPolygonFeatureCentroid End Function I left out the specific where clause for the query filter used, I figured that you would have that already, or already have the particular feature that you want the centroid of... Hope this helps. Kevin Orcutt GIS Developer/Consultant City of Cincinnati - Cincinnati Area GIS (CAGIS) (513) 850-1335 (cell) Kevin.Orcutt@cincinnati-oh.gov www.cagis.org
... View more
09-07-2012
11:49 AM
|
0
|
0
|
32
|
POST
|
Howdy All, I'm trying to find the GUID or the command name (i.e. "esriEditorExt.ConstructCommand" ) for the topology Split Polygons command. The icon for the command is: [ATTACH=CONFIG]16219[/ATTACH] I'm trying to use this command inside an vb.net project that is a command added to an extension that I've created... Any Ideas??? I've looked through the arcmap commands listing, but i didn't see anything that might match. Thanks in advance, Kevin Orcutt GIS Developer/Consultant City of Cincinnati - Cincinnati Area GIS (CAGIS) (513) 850-1335 (cell) Kevin.Orcutt@cincinnati-oh.gov www.cagis.org
... View more
07-18-2012
02:00 PM
|
0
|
2
|
281
|
POST
|
Howdy All, I'm running into a problem with the ITopologicalOperator.Intersect function. I am working with two features from the same geodatabase that are polylines. I am trying to find the point at which the two line intersect. I happen to know that the intersect by visually inspecting the corner. I'm sure there's some test that I should do before trying the Intersect function. I am getting a "COMException was unhandled by user code" error on the line I call the Intersect function. Here is the code, including the calling line to my function: 'Calling line here... PointResult = GetIntersectionPoint(CenterlineToSplitFeature.ShapeCopy, IntersectingFeature.ShapeCopy) 'Function code here... Function GetIntersectionPoint(Line1 As IGeometry, Line2 As IGeometry) As IPoint Dim pGeom As IGeometry Dim pTopo As ITopologicalOperator pTopo = Line1 'Here's the line in which I get the error... pGeom = pTopo.Intersect(Line2, esriGeometryDimension.esriGeometryNoDimension) Dim ppoints As IPointCollection Dim ppoint As IPoint ppoints = pGeom If ppoints.PointCount > 0 Then ppoint = ppoints.Point(0) Return ppoint Else Return Nothing End If End Function The particular ErrorCode I get is: -2147220971 Any clues as to what I'm doing wrong, or better yet as to how I might fix this... More particulars: VB .Net - Visual Studio 2010 ArcMap 10.x, sp 4 Windows 7 - 32-bit Here's a snapshot of the actual intesection: The lines dDO intersect, but not at any vertice on either line. Also both line do have "arc"/curve sections in themselves, if that has anything to do with it... [ATTACH=CONFIG]13182[/ATTACH] Thanks in advance, Kevin Orcutt GIS Developer/Consultant City of Cincinnati - Cincinnati Area GIS (CAGIS) (513) 850-1335 (cell) Kevin.Orcutt@cincinnati-oh.gov www.cagis.org
... View more
04-02-2012
07:24 AM
|
0
|
1
|
296
|
POST
|
Howdy All, I'm using ArcGIS 10 and Visio 2003. I'm trying to create a Geodatabase poster. I found the updated version of the ArcGIS Diagrammer for ArcGIS 10. However, I think I'm missing something in the use of it... I was looking at the website: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Documenting_your_geodatabase_design/003n00000012000000/ and towards the end of that page it mentioned using the Diagrammer found out on the arcscripts site to create these type of diagrams... I've snapped a picture from that site to give an example of what i'm trying to create: [ATTACH=CONFIG]11819[/ATTACH] and the second picture is a thumbnail version of an overall poster that we're after...[ATTACH=CONFIG]11820[/ATTACH] From what I can tell, the Diagrammer tool for ArcGIS 10 is NOT the same tool as the older versions. in as it does NOT create these types of diagrams, it creates something new. I also did NOT find any sort of template/stencil for Visio in the installed folders. I DID find two templates/stencils for Visio in an older version for ArcGIS 9.x The two templates are: GeodatabaseDiagrammerPS and GeodatabaseDiagrammerTT .vss and .vst files. These templates/stencils appear to have SOME but NOT all of the various elements that make up a geodatabase. So my questions are: 1) Is there such a tool for ArcGIS 10 to create the older style of poster info using Visio or something that can go into Visio? 2) How much difficulty is there in getting the older diagrammer to work with ArcGIS 10? 3) Is there any sort of plans of bringing the older visio templates/stencils into the newer Diagrammer tool? 4) Is there any plans for updating these Templates/Stencils to include more element types in a Geodatabase, such as Topology, Layers and so on...? Hope this all makes sense! If not reply back and I'll try and straighten out. Thanks in advance, Kevin Orcutt GIS Developer/Consultant City of Cincinnati - Cincinnati Area GIS (CAGIS) (513) 850-1335 (cell) Kevin.Orcutt@cincinnati-oh.gov www.cagis.org
... View more
02-08-2012
01:00 PM
|
0
|
1
|
2488
|
POST
|
Ok, Do I need to set the spatial filter's geometry to something??? In most cases I'll have two or three street centerline features selected to use in the filter... Kevin
... View more
01-25-2012
08:30 AM
|
0
|
0
|
0
|
POST
|
Howdy All, I've progressed down my problems path to my next challenge... I have two feature layers that both have multiple features selected in them... One is street centerlines (polylines) and the other is a polygon layer, some of which intersect/cover the street centerline layer... I need to remove from the polygon selection those polygons that DO intersect/cover the street centerlines. There are multiple polygons in the original selection not all of which intersect the streets, and there are multiple street centerlines in the street centerline original selection. I need a programmatic solution to this, I can manually perform what I need by using the "Select by Location" tool and in there specify "remove from the currently selected features in" selection method... OK That's great, but I need to automate this via code... I think i need to use a Spatial Filter and use the "SelectFeatures" method in the polygon layer's Selection object... I just can't figure out how to setup the spatial filter to do this... My stumbling block is getting the multiple line geometries into the ONE geometry of the Spatial filter... And had to specify to subtract the features from the selection... maybe I'm going down the wrong path here... If so, please enlighten me as to the best path to travel!!! 🙂 I'm pretty sure this is an easy one, but I'm just having one of those days where my brain just isn't firing on all cylinders! Thanks in advance, Kevin Orcutt GIS Developer/Consultant City of Cincinnati - Cincinnati Area GIS (CAGIS) (513) 850-1335 (cell) Kevin.Orcutt@cincinnati-oh.gov www.cagis.org
... View more
01-25-2012
06:51 AM
|
0
|
3
|
239
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|