<?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 Re: this is a code from VBA...since ESRI now abandoned VBA I need it in python! in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270529#M20890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How you describe your process seems simple enough, you shouldn't have too much trouble converting this to arcpy.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;If I was more proficient at arcpy and python i would agree with you&lt;/STRONG&gt;&lt;SPAN&gt;...with that said I would like to ask if I'm running the script from a tool inside a toolbox do i need to import the arcpy, is that &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;always&lt;/SPAN&gt;&lt;SPAN&gt; the first step, and then do i need to import other engines...shuch as sys, or os?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jun 2013 17:53:40 GMT</pubDate>
    <dc:creator>DanielAmrine</dc:creator>
    <dc:date>2013-06-05T17:53:40Z</dc:date>
    <item>
      <title>this is a code from VBA...since ESRI now abandoned VBA I need it in python!</title>
      <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270524#M20885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Attached is .py of the code converted to Python syntax....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;however i need to call in arcpy and then change some more of the syntax to fit the current python language...I'm new to this and i was not very good with VBA....but we need this functionality in our workflow!! So any help is much appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:18:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270524#M20885</guid>
      <dc:creator>DanielAmrine</dc:creator>
      <dc:date>2013-06-05T12:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: this is a code from VBA...since ESRI now abandoned VBA I need it in python!</title>
      <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270525#M20886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;VBA still works in ArcGIS... for now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, you should describe your work flow and how you will be using this code as it is not at all apparent from your code alone.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270525#M20886</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-06-05T12:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: this is a code from VBA...since ESRI now abandoned VBA I need it in python!</title>
      <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270526#M20887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;VBA still works in ArcGIS... for now.&lt;BR /&gt;&lt;BR /&gt;Also, you should describe your work flow and how you will be using this code as it is not at all apparent from your code alone.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) How does VBA still work? I know 10.0 still supports it but you need the VBA extension. (A pain to get the authorization code)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10.1 and beyond no longer supports VBA...supposedly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) It's a complicated process....essentially we need to build rectangles along a polyline that overlap. this code allows you to set this dimensions of the rectangle/overlap then starts from the origin point in the polyine and uses the closest vertices (to the set dimensions) to angle and draw the rectangle. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.) The original VBA code was meant to a be a macro that ran inside a map document referencing the first two layers in the mxd. My goal is to have this be a script tool with a polyline input parameter and polygon input parameter to add the rectangles to. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:45:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270526#M20887</guid>
      <dc:creator>DanielAmrine</dc:creator>
      <dc:date>2013-06-05T12:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: this is a code from VBA...since ESRI now abandoned VBA I need it in python!</title>
      <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270527#M20888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;VBA is supported in the same manner in 10.1 as in 10.0. I'd imagine it is the same for 10.2 though I haven't used it yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How you describe your process seems simple enough, you shouldn't have too much trouble converting this to arcpy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 13:07:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270527#M20888</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-06-05T13:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: this is a code from VBA...since ESRI now abandoned VBA I need it in python!</title>
      <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270528#M20889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;VBA is supported in the same manner in 10.1 as in 10.0. I'd imagine it is the same for 10.2 though I haven't used it yet.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My understanding is that at 10.1 you can only read and run VBA code, but you cannot edit or create new VBA code.&amp;nbsp; At 10.2 it should be gone if ESRI follows through with the game plan they laid out over 3 years ago.&amp;nbsp; VBA is deprecated because Microsoft abandoned it and won't sell any more licenses.&amp;nbsp; ESRI is using up licenses they purchased years ago (probably when they partnered with Microsoft for a time).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 13:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270528#M20889</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-06-05T13:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: this is a code from VBA...since ESRI now abandoned VBA I need it in python!</title>
      <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270529#M20890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How you describe your process seems simple enough, you shouldn't have too much trouble converting this to arcpy.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;If I was more proficient at arcpy and python i would agree with you&lt;/STRONG&gt;&lt;SPAN&gt;...with that said I would like to ask if I'm running the script from a tool inside a toolbox do i need to import the arcpy, is that &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;always&lt;/SPAN&gt;&lt;SPAN&gt; the first step, and then do i need to import other engines...shuch as sys, or os?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 17:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270529#M20890</guid>
      <dc:creator>DanielAmrine</dc:creator>
      <dc:date>2013-06-05T17:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: this is a code from VBA...since ESRI now abandoned VBA I need it in python!</title>
      <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270530#M20891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try going through this tutorial, it covers most of the basics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://training.esri.com/gateway/index.cfm?fa=catalog.webCourseDetail&amp;amp;courseID=1868"&gt;http://training.esri.com/gateway/index.cfm?fa=catalog.webCourseDetail&amp;amp;courseID=1868&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can search for other python seminars/courses in the training catalogue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 19:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270530#M20891</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-06-05T19:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: this is a code from VBA...since ESRI now abandoned VBA I need it in python!</title>
      <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270531#M20892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My understanding is that at 10.1 you can only read and run VBA code, &lt;STRONG&gt;but you cannot edit or create new VBA code&lt;/STRONG&gt;.&amp;nbsp; At 10.2 it should be gone if ESRI follows through with the game plan they laid out over 3 years ago.&amp;nbsp; VBA is deprecated because Microsoft abandoned it and won't sell any more licenses.&amp;nbsp; ESRI is using up licenses they purchased years ago (probably when they partnered with Microsoft for a time).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not true.&amp;nbsp; I am able to create and run VBA code in my 10.1 project.&amp;nbsp; The big difference is that you can no longer store VBA in the Normal.mxt and must be stored in the project itself.&amp;nbsp; (which really sucks as I have some VBA that I like to have available by default.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 20:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270531#M20892</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-06-05T20:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: this is a code from VBA...since ESRI now abandoned VBA I need it in python!</title>
      <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270532#M20893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My understanding is that at 10.1 you can only read and run VBA code, but you cannot edit or create new VBA code.&amp;nbsp; &lt;STRONG&gt;At 10.2 it should be gone if ESRI follows through with the game plan they laid out over 3 years ago.&lt;/STRONG&gt;&amp;nbsp; VBA is deprecated because Microsoft abandoned it and won't sell any more licenses.&amp;nbsp; ESRI is using up licenses they purchased years ago (probably when they partnered with Microsoft for a time).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That plan certainly has changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The recently modified &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/41175"&gt;deprecation plans for ArcGIS&lt;/A&gt;&lt;SPAN&gt; now even explicitly list extension for VBA in 10.2 as the last release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://downloads2.esri.com/support/TechArticles/W26496_W25918_DEPRECATION_PLAN_FOR_ARCGIS_101_and_102_FINAL_050713.pdf"&gt;http://downloads2.esri.com/support/TechArticles/W26496_W25918_DEPRECATION_PLAN_FOR_ARCGIS_101_and_102_FINAL_050713.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"ArcGIS 10.2 will be the last major release including Microsoft Visual Basic for Applications (VBA) compatibility."&lt;BR /&gt;&lt;BR /&gt;"[Correction February 15, 2013] Support for Microsoft VBA has been extended to ArcGIS 10.2"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 20:24:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270532#M20893</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2013-06-05T20:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: this is a code from VBA...since ESRI now abandoned VBA I need it in python!</title>
      <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270533#M20894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Per your original question, your code will require substatial rewrites to make it work via Python... slapping an import arcpy on the top ain't gonna cut it...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It does look somewhat complicated, but the programatic flow is basically already there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This one would take a while to rewrite though, and is probably not as simple as some might think. For example, as far as I know there is no .rotate method property for geometry objects in Python (but I bet ESRI whats to make one!), so you would have to write the code to do that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 20:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270533#M20894</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2013-06-05T20:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: this is a code from VBA...since ESRI now abandoned VBA I need it in python!</title>
      <link>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270534#M20895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1.) How does VBA still work? I know 10.0 still supports it but you need the VBA extension. (&lt;STRONG&gt;A pain to get the authorization code&lt;/STRONG&gt;)...&lt;BR /&gt;10.1 and beyond no longer supports VBA...supposedly.&lt;BR /&gt;&lt;BR /&gt;Dan&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just contacted the customer care center and they authorized the VBA, then downloaded the authorizations from the customer care portal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pretty painless actually,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 20:53:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/this-is-a-code-from-vba-since-esri-now-abandoned/m-p/270534#M20895</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-06-05T20:53:47Z</dc:date>
    </item>
  </channel>
</rss>

