AnsweredAssumed Answered

How to change GP parameter value type dynamically?

Question asked by maxmaxmaxmaxmax on Jan 16, 2017



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?