<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do I programmatically get the position and size of ArcMap's data view? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558216#M15068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm needing to programmatically display a form at the upper left position of ArcMap the data view.&lt;/P&gt;&lt;P&gt;How do I get the X/Y position?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2017 21:26:58 GMT</pubDate>
    <dc:creator>GenaroGarcia</dc:creator>
    <dc:date>2017-03-03T21:26:58Z</dc:date>
    <item>
      <title>How do I programmatically get the position and size of ArcMap's data view?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558216#M15068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm needing to programmatically display a form at the upper left position of ArcMap the data view.&lt;/P&gt;&lt;P&gt;How do I get the X/Y position?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 21:26:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558216#M15068</guid>
      <dc:creator>GenaroGarcia</dc:creator>
      <dc:date>2017-03-03T21:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programmatically get the position and size of ArcMap's data view?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558217#M15069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;examine the properties and the code examples in the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/dataframe-class.htm"&gt;dataframe section in arcpy&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 22:43:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558217#M15069</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-03T22:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programmatically get the position and size of ArcMap's data view?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558218#M15070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working with ArcGIS 10.2.2 version and ArcObjects. I haven't used Python at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 13:16:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558218#M15070</guid>
      <dc:creator>GenaroGarcia</dc:creator>
      <dc:date>2017-03-07T13:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programmatically get the position and size of ArcMap's data view?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558219#M15071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/developers/gis-developers/arcobjects-sdk?sr=search&amp;amp;searchId=69fcc597-3a8f-43cd-ae6d-64d6ea6c2b24&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/developers/gis-developers/arcobjects-sdk?sr=search&amp;amp;searchId=69fcc597-3a8f-43cd-ae6d-64d6ea6c2b24&amp;amp;searchIndex=0&lt;/A&gt;‌ might be a good place to move your thread too... generic gis is probably going to of little help for you especially given the legacy/older version of arcmap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 16:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558219#M15071</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-07T16:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programmatically get the position and size of ArcMap's data view?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558220#M15072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan, I will take that under consideration on future postings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 18:38:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558220#M15072</guid>
      <dc:creator>GenaroGarcia</dc:creator>
      <dc:date>2017-03-07T18:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programmatically get the position and size of ArcMap's data view?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558221#M15073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK... I found some code that got me access to&amp;nbsp;the Standard toolbar within ArcMap.&amp;nbsp; Just a little modifications to obtain the starting location of the toolbar which I can use anchor my form until it's closed.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;' --- Get coordinates of the upper left corner of the Standard Bar (location)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;This will be used to position the Move Post form&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; documentBars &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;ICommandBars&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; = gApplication.Document.CommandBars &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;'app is a reference to IApplication&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; barID &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;UID&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;New&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;UIDClass&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; barID.Value = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"{5DEB1DB8-C2A9-11D1-B9A2-080009EE4E51}"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; bar &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;ICommandItem&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; = documentBars.Find(barID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; windowPos &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;IWindowPosition&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;CType&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;(bar, &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;IWindowPosition&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;'If windowPos.State = esriWindowState.esriWSFloating Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;' MsgBox("Standard toolbar is floating.")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;'Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;' MsgBox("Standard toolbar is docked.")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;'End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;' --- Call create Move Post form&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; gfrmMovePost = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;New&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;MovePost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-size: medium; font-family: Consolas;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: Times New Roman;"&gt;' --- Change the location of the form&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: Times New Roman;"&gt;' &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 8.5pt;"&gt;gfrmMovePost.Top = windowPos.Top&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 8.5pt;"&gt;gfrmMovePost.Left = windowPos.Left&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: Times New Roman;"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: Times New Roman;"&gt;' --- Call form and display it&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: Times New Roman;"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 8.5pt;"&gt;gfrmMovePost.Show()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 18:46:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-programmatically-get-the-position-and/m-p/558221#M15073</guid>
      <dc:creator>GenaroGarcia</dc:creator>
      <dc:date>2017-03-07T18:46:48Z</dc:date>
    </item>
  </channel>
</rss>

