Making tools that can take either layer or feature class as input

714
2
09-07-2011 05:30 AM
CrispinCooper
New Contributor II
When using arc's inbuilt tools (e.g. data management->fields->delete field) it is possible to drag a layer onto the input parameter box, even though the tool may have requested a table or feature class.  This is great for usability 🙂

However, it's not clear to me how to implement this behaviour when writing custom tools.  Are there any examples around?

Thanks!
Tags (2)
0 Kudos
2 Replies
LoganPugh
Occasional Contributor III
Use either a Feature Layer or Table View parameter.
0 Kudos
CrispinCooper
New Contributor II
Thank you! 🙂
0 Kudos