<?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 user-defined property InwOaProperty, can it be set as boolean, Point3D etc aka VariantDataType in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/user-defined-property-inwoaproperty-can-it-be-set-as-boolean/m-p/12838097#M444</link>
    <description>&lt;P&gt;For non user-defined category/properties, when accessing them, we get a VariantData that include its type&amp;nbsp;VariantDataType. This includes boolean, Int32, Double, etc..&lt;/P&gt;&lt;P&gt;This provides better storage use, better search etc. than just having strings for all values.&lt;BR /&gt;&lt;BR /&gt;When creating user-defined properties, we use&amp;nbsp;InwOaProperty that has only object value field.&lt;/P&gt;&lt;P&gt;Seems to be working if we pass int, double, string.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Not sure about&amp;nbsp;DoubleLength for example and things like Point3D, which type to pass/how to force this type when adding a property?&lt;BR /&gt;&lt;BR /&gt;Anyone with experience with those?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2024 18:06:42 GMT</pubDate>
    <dc:creator>alexisDVJML</dc:creator>
    <dc:date>2024-06-13T18:06:42Z</dc:date>
    <item>
      <title>user-defined property InwOaProperty, can it be set as boolean, Point3D etc aka VariantDataType</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/user-defined-property-inwoaproperty-can-it-be-set-as-boolean/m-p/12838097#M444</link>
      <description>&lt;P&gt;For non user-defined category/properties, when accessing them, we get a VariantData that include its type&amp;nbsp;VariantDataType. This includes boolean, Int32, Double, etc..&lt;/P&gt;&lt;P&gt;This provides better storage use, better search etc. than just having strings for all values.&lt;BR /&gt;&lt;BR /&gt;When creating user-defined properties, we use&amp;nbsp;InwOaProperty that has only object value field.&lt;/P&gt;&lt;P&gt;Seems to be working if we pass int, double, string.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Not sure about&amp;nbsp;DoubleLength for example and things like Point3D, which type to pass/how to force this type when adding a property?&lt;BR /&gt;&lt;BR /&gt;Anyone with experience with those?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 18:06:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/user-defined-property-inwoaproperty-can-it-be-set-as-boolean/m-p/12838097#M444</guid>
      <dc:creator>alexisDVJML</dc:creator>
      <dc:date>2024-06-13T18:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: user-defined property InwOaProperty, can it be set as boolean, Point3D etc aka VariantDataType</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/user-defined-property-inwoaproperty-can-it-be-set-as-boolean/m-p/12839189#M445</link>
      <description>&lt;P&gt;I have code that adds strings, datetime and decimal. I thought we where limited to the VariantDatatype?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 05:57:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/user-defined-property-inwoaproperty-can-it-be-set-as-boolean/m-p/12839189#M445</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2024-06-14T05:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: user-defined property InwOaProperty, can it be set as boolean, Point3D etc aka VariantDataType</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/user-defined-property-inwoaproperty-can-it-be-set-as-boolean/m-p/12840668#M446</link>
      <description>&lt;P&gt;In addition to string I'm adding for now double and int.&lt;BR /&gt;I tested adding these double/int either as is or converting them to string.&lt;BR /&gt;&lt;BR /&gt;1/ I noticed a difference in behaviour:&lt;BR /&gt;when inserted as int/double, if you try to edit them using Navisworks GUI dialog Edit Property Value (or double click), the dialog prevent entering non integer/double value, so Navisworks is aware of the inserted type, good!&lt;BR /&gt;&lt;BR /&gt;However&lt;BR /&gt;2/ If I inspect these properties using AppInfo provided plugin, these properties are tagged as DisplayString while for non-user defined properties I have in various model, they are tagged correctly aka Int32, Double, etc.&lt;BR /&gt;&lt;BR /&gt;Exemple of correctly tagged property, material:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexisDVJML_1-1718390078065.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1376237i80FD87BC96EE1017/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alexisDVJML_1-1718390078065.png" alt="alexisDVJML_1-1718390078065.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exemple of incorrectly tagged property, our user-defined MTO#:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexisDVJML_0-1718390028526.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1376236i44A1A6A643106436/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alexisDVJML_0-1718390028526.png" alt="alexisDVJML_0-1718390028526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So still very mysterious!!!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5661631"&gt;@naveen.kumar.t&lt;/a&gt; any insider informations/explanations?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 18:35:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/user-defined-property-inwoaproperty-can-it-be-set-as-boolean/m-p/12840668#M446</guid>
      <dc:creator>alexisDVJML</dc:creator>
      <dc:date>2024-06-14T18:35:20Z</dc:date>
    </item>
  </channel>
</rss>

