Select to view content in your preferred language

PYT: Add tools to multiple categories

229
1
01-24-2024 11:19 AM
AlfredBaldenweck
MVP Regular Contributor

Has anyone had any luck adding a tool to multiple categories in a PYT? So like I could find the exact same tool in the Fire category as the Geology category.

I gave 

self.category = ["Fire", "Geology"]

a shot, but no dice. 

0 Kudos
1 Reply
DavidSolari
Occasional Contributor III

Does subclassing the tool and overriding the category work? You'd have to duplicate things like metadata between both tools but this seems like the lowest cost solution.

0 Kudos