How to change GP parameter value type dynamically?

495
0
01-16-2017 10:45 PM
MaxMax2
Occasional Contributor II

Hi,

I'm building custom geoprocessing tool where output value can be feature class or table with GPFeatureSchema as default schema. But the type of an output dataset depends on some option. In tool's UpdateParameters method I change schema of the output parameter to GPTableSchema or to GPFeatureSchema. But in Model Builder any tool after the my one always thinks that my tool produces feature classes. Is it possible to dynamically change type of schema so chained tools get right output information from my tool?

0 Kudos
0 Replies