Hi @clutsa. Which version of Inventor are you using, because when I look at the online help page (2022 help) for the ValueTypeEnum, I see 5 variations available, and one of them is kBooleanType (14597). And I still see it that same way for 2018 & 2019 online help.
@Cris-Ideas
However, I just tried assigning a Boolean type attribute to one of my test files that I have already assigned a bunch of named entities in, and also got an error. It's just one of those "The parameter is incorrect." error messages though, and just points to the line where I am attempting to add the attribute, with no further explanation. I can assign other attributes to the selected face, within the same attribute set, like Double type, but when I try to add a Boolean type attribute, it fails for some reason. I even tried using a predefined Boolean type variable as the value, instead of True or False directly, but that did not make any difference. I'm still not sure why though. There is no documentation on the AttributeSet.Add method's online help page about not being able to create Boolean type attributes. But there is a page called "Introduction to Attributes and AttributeSets", which talks about them, and on that page it mentions all the other 4 types, but not the Boolean type. If we can't create boolean type attributes, they should update the Add method's web page to indicate that, and maybe add something to the pop-up help text to help avoid similar issues in the future. I do know that the ValueTypeEnum is used in several places, so that type may just be available to other situations where it is used.
Wesley Crihfield

(Not an Autodesk Employee)