Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
Geoprocessing
ArcGIS Experience Builder
ArcGIS Web AppBuilder
ArcGIS Dashboards
ArcGIS Field Maps
ArcGIS Spatial Analyst
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Public Safety
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcObjects SDK
ArcGIS Pro SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
Game Engine Maps SDKs
File Geodatabase API
All Developers Communities
Global
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
Esri Italia Community
Comunidad GEOTEC
Europe
Asia Pacific
All Global Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Global
Events
Learning
Networks
ArcGIS Topics
Products
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
Community Ideas
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Products
:
Geoprocessing
:
Geoprocessing Questions
:
Re: code to attach the resulting feature layer in ...
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
Select to view content in your preferred language
Translate Now
code to attach the resulting feature layer in python
Subscribe
657
3
06-14-2010 02:27 AM
by
MoinMalik
Emerging Contributor
06-14-2010
02:27 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Hi,
Why a feature layer (SHP file) created from ArcTool automatically attaches in the ArcMap TOC, while same don't if created from Python script ?
In other words, what could be the code to attach the resulting feature layer in python.
Cheers
Moin
Tags
(3)
Tags:
_geoprocessing
analysis
gp
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
3 Replies
by
StefanHaglund1
Esri Contributor
06-14-2010
11:22 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Hi Moin,
The easiest way to do that would be to create a script tool from your Python script and run it inside ArcMap.
See:
http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=An_overview_of_creating_script_tools
for an overview and
http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Adding_a_script_tool
for info on how to attach your script to a tool in ArcToolbox.
Reply
0
Kudos
by
MoinMalik
Emerging Contributor
06-15-2010
02:48 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Thanks Nooski for your advise.
However, I have already attached my script in the ArcTool and runs it inside the ArcMap. Actually my script splits large feature into smaller set of features. I want all the resultant feature files to attach automatically in ArcMap.
Regards
Moin:)
Reply
0
Kudos
by
ChrisMathers
Deactivated User
06-15-2010
09:38 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
I have been curious about the same thing. I think we may have to wait for arcpy in Arc10 to add files to an open map from python.
Reply
0
Kudos
Post Reply