Select to view content in your preferred language

Python script tool - Select Fields

880
4
09-28-2010 01:48 AM
AdrianHughes
Emerging Contributor
I'm developing a python script tool that converts values in an attribute table to raster

I want the user to be able to select a feature class then then cherry pick which fields they want to convert. I know this field selection is possible as I have seen it in Arctoolbox tools but I need to know how to implement it in my onw python script tool.

An example of what I'm after is provided by the Dissolve tool in data managment

I'm using 9.3
0 Kudos
4 Replies
sangeethaunni
Emerging Contributor
Hi,

hope u r the rite person to ask my doubt ,
I have some polylines for connecting roads of highways.
now wants to merge all these  small polylines into one line with some attributs are from first polyline & rest fields r from the last input polyline.
Can we do it ?
my data is from Navtech.
0 Kudos
sangeethaunni
Emerging Contributor
thanks for the reply
I have copied Code A into an Python new applicaiton.
please do let meknow how to take a new form in Python? i m new to python .
i have added code A &B direclty in to one file..
how do i run it?
0 Kudos
DaleHoneycutt
Deactivated User
When you create the script tool, set your field parameter "Obtained From" property to the feature class.  See the section on "Obtained From" in http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Setting_script_tool_parameters
0 Kudos
AdrianHughes
Emerging Contributor
I came across the obtained from method. An easy solution in the end! Thanks to all who replied.
0 Kudos