Python Tools for Visual Studio ??? Beta2: Intellisense

5136
5
06-05-2011 12:30 AM
MarcHoogerwerf
Occasional Contributor
Hi there,

Is there anyone out there who found out how to get Intellisense working for arcpy in PTVS?

I succesfully installed PTVS, Intellisense support is available for all the ordinary Python libs. I selected the option Generate built-in and standard library under Generate Completion database (Tools/Options/Python Tools/Interpreter Options).The menu informs me that building the completion database will take a couple of minutes, but no results after half an hour. The interpreter is pointing at the ArcGIS10 Python installation (c:\Python26\ArcGIS10.0\python.exe)

regards,

Marc
Tags (2)
0 Kudos
5 Replies
LoganPugh
Occasional Contributor III
I was able to get this working using the instructions here: http://www.redtrails.com/blog/?p=878#comment-5

It even works with the free Visual Studio Shell: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=8e5aa7b6-8436-43f0-b778-00c3bca733d3&dis...
0 Kudos
MichalBeniak
New Contributor

hello, is there a way how to get the instructions from http://www.redtrails.com/blog/?p=878#comment-5  ? Cause this link is no more online... Can u pls describe the process how to use arcpy in VS? Thank. mb.

0 Kudos
SebastiánVega
New Contributor

can you help me with the link? is out

i have VS 2013 and i want to configurate for do my py applications from here and connect with Arcgis.

what i need to do, the python env is set, but "import arcpy" doesnt work

0 Kudos
SebastiánVega
New Contributor

now it's working!

0 Kudos
MeToo
by
New Contributor

Sebastian (or anybody else!),

Could you describe what you did to enable full Intellisense support?

In the following sample code from the ArcGIS help system, adding a dot after df shows "No Completions" instead of the properties and functions of dataframes.

Thanks

import arcpy

mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd")

for df in arcpy.mapping.ListDataFrames(mxd, "t*"😞

     if df.name.lower == "transportation":

          df.scale = 24000

          df.rotation = 5.5

mxd.saveACopy(r"C:\Project\Project2.mxd")

del mxd

0 Kudos