<?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: How to read custom properties from navisworks file. in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/10003384#M2448</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10035043"&gt;@sampath.jeedigam&lt;/a&gt;&amp;nbsp;,&amp;nbsp;@Anonymous&amp;nbsp;, my apology for the late jumping into.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a test with DataTool (Excel) and AppInfo plugin, I also tried with CodeRun with the code of &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/656821"&gt;@ulski1&lt;/a&gt;&amp;nbsp;, it looks it can be found by display name. Note: display name is language sensitive, while it looks you are in English environment, it should be fine with English words(same to what are seen in UI).&amp;nbsp; Navivsworks version 2020, Excel is 16.0 (64bits)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;even if FindbyDisplayName cannot work, could you try with FindbyName or FindByCombinedName?&amp;nbsp; If none of them work, we will need to have your demo models and excel file to diagnose.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;special thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/656821"&gt;@ulski1&lt;/a&gt;&amp;nbsp;for the inputing and helping!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-01-15 at 3.15.46 PM.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/866671iC523831E0E378D30/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-01-15 at 3.15.46 PM.png" alt="Screen Shot 2021-01-15 at 3.15.46 PM.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="Screen Shot 2021-01-15 at 2.41.19 PM.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/866659i81E3A782BA9FA79B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-01-15 at 2.41.19 PM.png" alt="Screen Shot 2021-01-15 at 2.41.19 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-01-15 at 2.39.37 PM.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/866660iC4C1A3AD5BFD3FB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-01-15 at 2.39.37 PM.png" alt="Screen Shot 2021-01-15 at 2.39.37 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-01-15 at 2.41.06 PM.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/866661i786E11C766D7B261/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-01-15 at 2.41.06 PM.png" alt="Screen Shot 2021-01-15 at 2.41.06 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 07:21:18 GMT</pubDate>
    <dc:creator>xiaodong_liang</dc:creator>
    <dc:date>2021-01-15T07:21:18Z</dc:date>
    <item>
      <title>How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9906190#M2424</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User is adding additional properties (custom properties) using Navisworks Data Tools. When i am reading the properties from navisworks file using the API's, the API is returning all the properties under "Item", "Material", "Timeliner", "Entity Handle", "Autoplant Component", "Autocad" tabs. But this navisworks file has one more property node called "XYZ"(example, this is user defined name) and this property node has multiple properties user has entered. But the API is not reading these properties. So, the question is how to read Custom or user defined properties from navisworks file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the piece of code to read the properties i have in my project.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;GetValue(oModelItem, null)).GetEnumerator();&lt;BR /&gt;&lt;BR /&gt;while (ePropertyCatIterator.MoveNext())&lt;BR /&gt;{&lt;BR /&gt;object oPropCatIter = ePropertyCatIterator.Current;&lt;BR /&gt;string sCategory = Convert.ToString(oPropCatIter.GetType().GetProperty("DisplayName").GetValue(oPropCatIter, null));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;IEnumerator&amp;lt;Object&amp;gt; ePropertyIterator = ((IEnumerable&amp;lt;Object&amp;gt;)oPropCatIter.GetType().GetProperty("Properties").&lt;BR /&gt;GetValue(oPropCatIter, null)).GetEnumerator();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; while (ePropertyIterator.MoveNext())&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; object oPropIter = ePropertyIterator.Current;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string sValue = Convert.ToString(oPropIter.GetType().GetProperty("Value").GetValue(oPropIter, null));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string sName = Convert.ToString(oPropIter.GetType().GetProperty("DisplayName").GetValue(oPropIter,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; null));&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sampath&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:14:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9906190#M2424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-01T07:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9914592#M2425</link>
      <description>&lt;P&gt;Is there a way to read the properties using API's which are added by Data Tools. Though these additional properties which are added by data tools in navisworks file, is shown in navisworks software, when i try to fetch them using the API call as below, i dont get the property categroy which is being added by data tools..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IEnumerator&amp;lt;Object&amp;gt; ePropertyCatIterator =((IEnumerable&amp;lt;Object&amp;gt;)oModelItem.GetType().GetProperty("PropertyCategories").&lt;BR /&gt;GetValue(oModelItem, null)).GetEnumerator();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/823624"&gt;@xiaodong_liang&lt;/a&gt;&amp;nbsp;Any help is much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 07:10:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9914592#M2425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-04T07:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9914594#M2426</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/823624"&gt;@xiaodong_liang&lt;/a&gt;&amp;nbsp; Please let me know if you have any idea on this topic..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 07:09:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9914594#M2426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-04T07:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9914624#M2427</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;the user data that can be added to objects by end users or by code is in a category called&amp;nbsp;LcOaPropOverrideCat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Ulrik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 07:33:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9914624#M2427</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2020-12-04T07:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9914741#M2428</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/656821"&gt;@ulski1&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/823624"&gt;@xiaodong_liang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how to read those properties is the question. All the other properties are being read by my above piece of code except the category that user added using data tools. Why is the API not returning those properties?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sampath&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 08:53:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9914741#M2428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-04T08:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9914773#M2429</link>
      <description>&lt;P&gt;These properties need to be handled differently&lt;/P&gt;&lt;P&gt;what I use is a scan of categories via the search object. Look at this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/navisworks-api/list-all-of-the-categories-in-the-model/td-p/3620658" target="_blank"&gt;List all of the Categories in the Model - Autodesk Community - Navisworks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 09:05:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9914773#M2429</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2020-12-04T09:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9920390#M2430</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/656821"&gt;@ulski1&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried with following piece of code, but still those properties were not getting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var miPath = ComApiBridge.ToInwOaPath(item);&lt;BR /&gt;var PropertiesCategories = (InwGUIPropertyNode2)state.GetGUIPropertyNode(miPath, true);&lt;BR /&gt;int index = 0, i = 0;&lt;BR /&gt;foreach (InwGUIAttribute2 propertyCategory in PropertiesCategories.GUIAttributes())&lt;BR /&gt;{&lt;BR /&gt;if (propertyCategory.UserDefined)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do we called those properties which are added through Data tool? Are they UserDefined properties?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above piece of code is correct to get the new category user added through Data Tool?&lt;/P&gt;&lt;P&gt;Can you share any sample code if you dont mind.?&lt;/P&gt;&lt;P&gt;Do we need to specify the name of the category user added through Data Tools to read it or the API will retrun all the categories?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 10:18:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9920390#M2430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-07T10:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9920980#M2431</link>
      <description>&lt;P&gt;did you try it the way it was show in this article:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/aec/2012/05/navisworks-net-api-properties.html" target="_blank"&gt;Navisworks .NET API Properties - AEC DevBlog (typepad.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 14:53:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9920980#M2431</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2020-12-07T14:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9921121#M2432</link>
      <description>&lt;P&gt;Yes i tried the same way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;foreach (PropertyCategory oPc in modelItem.PropertyCategories)&lt;BR /&gt;{&lt;BR /&gt;string DisplayName = oPc.DisplayName;&lt;BR /&gt;string Name = oPc.Name;&lt;BR /&gt;foreach (DataProperty oDp in oPc.Properties)&lt;BR /&gt;{&lt;BR /&gt;if (oDp.Value.IsDisplayString)&lt;BR /&gt;{&lt;BR /&gt;DisplayName = oDp.DisplayName;&lt;BR /&gt;string Value = oDp.Name;&lt;BR /&gt;string hh = oDp.Value.ToString();&lt;BR /&gt;}&lt;BR /&gt;if (oDp.Value.IsDouble)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the above piece of code i am getting all the categories like "Item", "Material", "Autocad", "Geomerty" "Entity Handle" etc. But the category which user added through data tools is not getting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 15:49:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9921121#M2432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-07T15:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9922884#M2433</link>
      <description>&lt;P&gt;Repeating my work flow one more time for more clarity. Please see the attached image. You can observe a new category called "Safety Properties" added through data tools by below procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A name is given to the new DataTools Link. This name will become the name of the properties tab in&lt;BR /&gt;Navisworks that includes all of the properties identified in the “Fields” area.&lt;BR /&gt;2. Using an ODBC Driver connection, a link is made between the Excel file and the Navisworks file. Upon&lt;BR /&gt;selecting the file in Setup. The mapping of the two files is automatically generated.&lt;BR /&gt;3. An SQL String needs to be written in order to link the information in the Excel file to the applicable&lt;BR /&gt;graphics in the Navisworks file. This is executed by mapping the specific equipment name, known as&lt;BR /&gt;“Item Name” in Navisworks, to the “Item Name” column in Excel. The SQL String reads as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Select * From [S.I. Exports$] where "Item Name" = %Prop ("Item", "Name")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.User needs to input the Field Name they wish to see under the new developed “Safety Properties” tab.&lt;BR /&gt;For this example, the “Name” of the piece of equipment and the added “Environment Decibel Level”&lt;BR /&gt;property will be mapped to the graphics. Only properties that have values will be transferred to individual&lt;BR /&gt;graphics. Fig. 14 presents the added safety properties in the newly developed “Safety Properties” tab for&lt;BR /&gt;the electrical panel upon the execution of the DataTools process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally the new category and the properties were added to the navisworks file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when reading categories, "Safety Properties" is not coming for me but the other properties like "Item", "Autocad" etc are coming.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Datatools.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/853379i00E1D3CB633EEAF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Datatools.png" alt="Datatools.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 08:03:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9922884#M2433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-08T08:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923717#M2434</link>
      <description>&lt;P&gt;one way of reading values from user added properties is to get the property via&amp;nbsp;FindPropertyByDisplayName&lt;/P&gt;&lt;P&gt;like so:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using Nw = Autodesk.Navisworks.Api;
//MI is your Nw.ModelItem object containing the property
using (Nw.DataProperty MyDataProperty = MI.PropertyCategories.FindPropertyByDisplayName(MyCategory, MyProp))
                    {
                        if (MyDataProperty != null)
                        {
                            mystr =MyDataProperty.Value.ToString().Replace(MyDataProperty.Value.DataType.ToString() + ":", "");                  
                        }
                    }&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Dec 2020 14:30:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923717#M2434</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2020-12-08T14:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923772#M2435</link>
      <description>&lt;P&gt;No luck. I tried this but still unable to read that category.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DataProperty cat = modelItem.PropertyCategories.FindPropertyByDisplayName("Safety Properties","Name");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its surprising that no where i am finding the information about this and no one is responding too. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sampath.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 14:47:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923772#M2435</guid>
      <dc:creator>sampath.jeedigam</dc:creator>
      <dc:date>2020-12-08T14:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923811#M2436</link>
      <description>&lt;P&gt;this code is in production and working here - so you are doing something wrong.&amp;nbsp;I suggest at you hold down shift as you open the options editor, then open Interface-&amp;gt;Developer and enable "show property internal names". Then please confirm that you see "Mycategoryname" (LcOaPropOverrideCat) on the objects in question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 14:58:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923811#M2436</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2020-12-08T14:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923898#M2437</link>
      <description>&lt;P&gt;Thank you for your quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After following the below suggested workflow, i see the internal name of the user added category as "LcOdpDBDatabaseReadLink"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Sampath.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 15:26:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923898#M2437</guid>
      <dc:creator>sampath.jeedigam</dc:creator>
      <dc:date>2020-12-08T15:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923927#M2438</link>
      <description>&lt;P&gt;this means the data comes in via a link to a database (or other odbc source). The code suggestions you have been given is for the user data&amp;nbsp;&lt;SPAN&gt;LcOaPropOverrideCat type attribute data so that is perhaps why things are not working&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 15:34:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923927#M2438</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2020-12-08T15:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923941#M2439</link>
      <description>&lt;P&gt;Yes, that is the reason i have mentioned the procedure how we added the properties to NWD File in one of my previous post (&lt;SPAN&gt;Using an ODBC Driver connection).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, is there an API to get those properties? Actually all the critical properties lies in that category.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sampath.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 15:39:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9923941#M2439</guid>
      <dc:creator>sampath.jeedigam</dc:creator>
      <dc:date>2020-12-08T15:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9926526#M2440</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we really have an API in navisworks to read those properties?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 13:10:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9926526#M2440</guid>
      <dc:creator>sampath.jeedigam</dc:creator>
      <dc:date>2020-12-09T13:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9927059#M2441</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/656821"&gt;@ulski1&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/823624"&gt;@xiaodong_liang&lt;/a&gt;&amp;nbsp; Any help ??&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 15:49:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9927059#M2441</guid>
      <dc:creator>sampath.jeedigam</dc:creator>
      <dc:date>2020-12-09T15:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9927584#M2442</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Now I have done the following to help you:&lt;/P&gt;&lt;P&gt;build coderun and appinfo tools from the API to test.&lt;/P&gt;&lt;P&gt;created a navisworks model linked to a datalink&lt;/P&gt;&lt;P&gt;written code in coderun that could read the data - more or less the same code I showed above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the code:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using System;
using System.Linq;

namespace CScript
{
    public class CScript
    {
        static public void Main()
        {
            string MyCategory = "MainEquipment";
            string MyProp = "LOCATION_CODE";
            string retval = "Test:";
            try
            {
                if (!Autodesk.Navisworks.Api.Application.ActiveDocument.CurrentSelection.IsEmpty)
                {
                    using (Autodesk.Navisworks.Api.ModelItem MI = Autodesk.Navisworks.Api.Application.ActiveDocument.CurrentSelection.SelectedItems.First)
                    {
                        if (MI != null)
                        {
                            Autodesk.Navisworks.Api.ModelItemEnumerableCollection MeAndMyAncestors = MI.AncestorsAndSelf;
                            foreach (Autodesk.Navisworks.Api.ModelItem SMI in MeAndMyAncestors)
                            {
                                using (Autodesk.Navisworks.Api.DataProperty MyDataProperty = SMI.PropertyCategories.FindPropertyByDisplayName(MyCategory, MyProp))
                                {
                                    if (MyDataProperty != null)
                                    {
                                        retval += MyDataProperty.Value.ToString().Replace(MyDataProperty.Value.DataType.ToString() + ":", "");
                                        retval += System.Environment.NewLine;
                                    }
                                }
                            }
                        }
                    }
                }
                Console.WriteLine(retval);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Sorry, an error occurred: " + ex.Message);
            }
        }
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Dec 2020 18:47:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9927584#M2442</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2020-12-09T18:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to read custom properties from navisworks file.</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9928574#M2443</link>
      <description>&lt;P&gt;Same problem. With the above code i can able to read the "Item", "Material", "Autocad", etc categories but not the one use added category using data tools.&amp;nbsp;FindPropertyByDisplayName() is always returning null when i entered the category name which user added using data tools.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sampath.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 04:49:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-read-custom-properties-from-navisworks-file/m-p/9928574#M2443</guid>
      <dc:creator>sampath.jeedigam</dc:creator>
      <dc:date>2020-12-10T04:49:23Z</dc:date>
    </item>
  </channel>
</rss>

