<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why boolean Attribute does not work? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/10884977#M85641</link>
    <description>&lt;P&gt;Your suggestion about using Integer type and either 1 or 0 is definitely the next logical alternative to the Boolean type, when Boolean type is not available.&amp;nbsp; Similar functionality is observed within some of the import/export translator methods' options.&amp;nbsp; Sometimes they use real Boolean value, and other times they use the Binary type value of zero or 1.&amp;nbsp; I'm sure they had their reasons for using one vs the other.&amp;nbsp; Since we are able to create &amp;amp; use both iProperties &amp;amp; Parameters with normal Boolean values and functionality, it is just expected that we would have the same functionality in the Attributes system, but it has not been enough of a priority or something.&amp;nbsp; This might make a good entry in the Inventor Ideas system.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2022 14:26:36 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2022-01-17T14:26:36Z</dc:date>
    <item>
      <title>Why boolean Attribute does not work?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/8193817#M85636</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have another problem with attributes.&lt;/P&gt;&lt;P&gt;Fore some reason attempt to add boolean attribute fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This line brings up an exception&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;occAttributeSet.Add("_0003Associative", ValueTypeEnum.kBooleanType, True)&lt;/PRE&gt;&lt;P&gt;because of he attribute type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why boolean attribute does not work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cris.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 04:18:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/8193817#M85636</guid>
      <dc:creator>Cris-Ideas</dc:creator>
      <dc:date>2018-08-12T04:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why boolean Attribute does not work?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/8201116#M85637</link>
      <description>&lt;P&gt;Object model looks like ".Add(AttributeName As String, ValueType As ValueTypeEnum, Value) As Attribute" and ValueTypeEnum only has {kByteArrayType, kDoubleType, kIntegerType, kStringType} so set as an integer with value 1 for true and 0 for false and a boolean variable should be able to read/convert/use that just fine.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 13:31:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/8201116#M85637</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2018-08-15T13:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why boolean Attribute does not work?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/10880056#M85638</link>
      <description>&lt;P&gt;Thanks. Saved me some time. It seems that in this case reading official API was a wrong way to go.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 15:13:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/10880056#M85638</guid>
      <dc:creator>tomasz.sztejka</dc:creator>
      <dc:date>2022-01-14T15:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why boolean Attribute does not work?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/10884880#M85639</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5352440"&gt;@clutsa&lt;/a&gt;.&amp;nbsp; Which version of Inventor are you using, because when I look at the online help page (2022 help) for the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-258F4BE3-3110-46D9-BBAC-9230BBE2803A" target="_blank" rel="noopener"&gt;ValueTypeEnum&lt;/A&gt;, I see 5 variations available, and one of them is kBooleanType (14597).&amp;nbsp; And I still see it that same way for 2018 &amp;amp; 2019 online help.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3494258"&gt;@Cris-Ideas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp; 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.&amp;nbsp; 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.&amp;nbsp; 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.&amp;nbsp; I'm still not sure why though.&amp;nbsp; There is no documentation on the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-4071E4E7-604E-4C55-B61D-C8327AEFF9CE" target="_blank" rel="noopener"&gt;AttributeSet.Add&lt;/A&gt; method's online help page about not being able to create Boolean type attributes.&amp;nbsp; But there is a page called "&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-E06575AE-56CF-4229-8C93-64B95DB4831C" target="_blank" rel="noopener"&gt;Introduction to Attributes and AttributeSets&lt;/A&gt;", which talks about them, and on that page it mentions all the other 4 types, but not the Boolean type.&amp;nbsp; 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.&amp;nbsp; 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.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 13:49:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/10884880#M85639</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-01-17T13:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why boolean Attribute does not work?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/10884910#M85640</link>
      <description>&lt;P&gt;I don't know what version I was using ~3.5 years ago.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_savoring_food:"&gt;😋&lt;/span&gt; My guess is 2018 but we could have still been on 2016 at that point. The question was never accepted as a solution so it's possible I was wrong. Did you try what I suggested to see if it worked?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 14:03:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/10884910#M85640</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2022-01-17T14:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why boolean Attribute does not work?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/10884977#M85641</link>
      <description>&lt;P&gt;Your suggestion about using Integer type and either 1 or 0 is definitely the next logical alternative to the Boolean type, when Boolean type is not available.&amp;nbsp; Similar functionality is observed within some of the import/export translator methods' options.&amp;nbsp; Sometimes they use real Boolean value, and other times they use the Binary type value of zero or 1.&amp;nbsp; I'm sure they had their reasons for using one vs the other.&amp;nbsp; Since we are able to create &amp;amp; use both iProperties &amp;amp; Parameters with normal Boolean values and functionality, it is just expected that we would have the same functionality in the Attributes system, but it has not been enough of a priority or something.&amp;nbsp; This might make a good entry in the Inventor Ideas system.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 14:26:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/10884977#M85641</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-01-17T14:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why boolean Attribute does not work?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/10885083#M85642</link>
      <description>&lt;P&gt;I see what you mean. The help page does list five values but the Object Browser still only lists four. When adding iLogic code I'm prompted that kBooleanType is an option but when adding VBA code I'm not. That does seem like error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ValueTypeEnum.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1012249iCAC9075656598C6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ValueTypeEnum.png" alt="ValueTypeEnum.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ValueTypeEnumHelp.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1012250i1C2079884A6662B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ValueTypeEnumHelp.png" alt="ValueTypeEnumHelp.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ValueTypeEnumILogic.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1012265i8ECA6676887E11CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ValueTypeEnumILogic.png" alt="ValueTypeEnumILogic.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ValueTypeEnumVBA.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1012264iEE9BE48936947506/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ValueTypeEnumVBA.png" alt="ValueTypeEnumVBA.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 15:01:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/10885083#M85642</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2022-01-17T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why boolean Attribute does not work?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/13969885#M178864</link>
      <description>&lt;P&gt;I just ran into this problem today. I hope they get the API fixed to support kBooleanType in AttributeSets.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 21:12:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/13969885#M178864</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2026-01-08T21:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why boolean Attribute does not work?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/13970698#M178877</link>
      <description>&lt;P&gt;I mentioned this in Message 4 above, but I know they also use that&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=ValueTypeEnum" target="_blank" rel="noopener"&gt;ValueTypeEnum&lt;/A&gt;&amp;nbsp;in other situations also.&amp;nbsp; Below are all of the Links I found where it is being used within the 2026 online API help documentation.&lt;/P&gt;
&lt;P&gt;All these are Attribute related:&amp;nbsp;&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=Attribute_ValueType" target="_blank" rel="noopener"&gt;Attribute.ValueType Property&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=AttributeSet_Add" target="_blank" rel="noopener"&gt;AttributeSet.Add Method&lt;/A&gt;&amp;nbsp;, &amp;amp;&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=AttributeSet_AddAttributes" target="_blank" rel="noopener"&gt;AttributeSet.AddAttributes Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are Content Center table column related, and they do use the Boolean one:&amp;nbsp;&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=ContentTableColumn_DataType" target="_blank" rel="noopener"&gt;ContentTableColumn.DataType Property&lt;/A&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=ContentTableColumns_Add" target="_blank" rel="noopener"&gt;ContentTableColumns.Add Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are MiniToobar related, but do not include the Boolean one, just Double &amp;amp; Integer:&amp;nbsp;&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=MiniToolbarSlider_ValueType" target="_blank" rel="noopener"&gt;MiniToolbarSlider.ValueType Property&lt;/A&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=MiniToolbarControls_AddSlider" target="_blank" rel="noopener"&gt;MiniToolbarControls.AddSlider Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, the Boolean variation is being used by the ContentTableColumn, but apparently not by Attributes or that MiniToolbar control.&amp;nbsp; And I know that the ByteArray variation is being used by the Attributes system, for storing internal iLogic rules and iLogic Form specs within the Document.&lt;/P&gt;
&lt;P&gt;In Message 6 above, I mentioned that this would be a good 'idea' to post in the Inventor Ideas board, and so I just did a quick search in that area, and since I did not find one, I just made one myself.&amp;nbsp; I will post the Link to that Inventor Idea post below, so that it is easy for every one to find, and vote for, so that we can hopefully get this ability either fixed, or added sooner.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/attribute-valuetype-allow-enable-kbooleantype-valuetypeenum/idi-p/13970688" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-ideas/attribute-valuetype-allow-enable-kbooleantype-valuetypeenum/idi-p/13970688&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 13:08:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/13970698#M178877</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2026-01-09T13:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why boolean Attribute does not work?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/13971218#M178885</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Great info!&lt;/P&gt;&lt;P&gt;Thanks for the Idea post - I have voted.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 19:09:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-boolean-attribute-does-not-work/m-p/13971218#M178885</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2026-01-09T19:09:04Z</dc:date>
    </item>
  </channel>
</rss>

