<?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: Datatools CADWorx Xdata Values with SQL Query in Navisworks Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8588139#M9271</link>
    <description>&lt;P&gt;There's no way to read arbitrary XDATA in Navisworks.&amp;nbsp; &amp;nbsp;Normally for this you would be using the DBCode property.&amp;nbsp; Otherwise, consider using a custom property, possibly filled from the SQL database inside CADWorx. You might even fill it using a live database.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Feb 2019 19:05:56 GMT</pubDate>
    <dc:creator>dgorsman</dc:creator>
    <dc:date>2019-02-11T19:05:56Z</dc:date>
    <item>
      <title>Datatools CADWorx Xdata Values with SQL Query</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8584821#M9270</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to find a way to have Navisworks lookup a CADWorx Xdata value&amp;nbsp;from an object and find the same value in the sql db in order to pull additional&amp;nbsp;data. I have managed to currently link a CADWorx Property to sql, but that is only because CADWorx has a Tab that is automatically visible in Navisworks with the basic properties, but the property I&amp;nbsp;need&amp;nbsp;is not shown in the tab. It is limited to only a few properties. See image. So I am trying to find a connection string that will allow XDATA values?&amp;nbsp; I have also attached an image with one of the xdata values I would like to retrieve from Navisworks. Any ideas or is this even possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jgarza&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2019 16:37:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8584821#M9270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-09T16:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Datatools CADWorx Xdata Values with SQL Query</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8588139#M9271</link>
      <description>&lt;P&gt;There's no way to read arbitrary XDATA in Navisworks.&amp;nbsp; &amp;nbsp;Normally for this you would be using the DBCode property.&amp;nbsp; Otherwise, consider using a custom property, possibly filled from the SQL database inside CADWorx. You might even fill it using a live database.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 19:05:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8588139#M9271</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2019-02-11T19:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Datatools CADWorx Xdata Values with SQL Query</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8588218#M9272</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/253793"&gt;@dgorsman&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;What do you mean consider using custom property , &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;possibly filled from a sql database inside CADWorx?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;I thought CADWorx used Xdata from within the drawings and also external db's.&amp;nbsp;So how would it be possible to fill in a custom property automatically with data?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, but I might also be on to a&amp;nbsp;workaround. I am&amp;nbsp;now trying to determine to what extents does the sql connection string uses sql functions. Here is a sample of the code I am trying to make work in order to get what I need accomplished but it looks like I am missing a small piece now. Maybe someone can shed some light.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I am trying to do is use the handle id,(which starts over for every dwg) and use the drawing source name which for me makes it unique at the moment, but I also have to introduce the fact that&amp;nbsp;xref's are used and now I have to stripe out the file path to just include the file name, just like the source file property. But I am having issues determining how the data tools connection strings uses the sql functions or select statements. I know this sql statement works up to using the Xref category, so this is where I am stuck now, because I know this sql works on my sql server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT * FROM [CADWorxTest] WHERE "000_Handle" = %prop("Entity Handle", "Value") and("Drawing" = %prop("Item", "Source File") or "Drawing" = %prop("Xref", ltrim(rtrim(REVERSE(substring(reverse("Name"),0,charindex('\',reverse("Name"),0))))));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 20:05:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8588218#M9272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-11T20:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Datatools CADWorx Xdata Values with SQL Query</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8590573#M9273</link>
      <description>&lt;P&gt;You're on the right track for inside Navisworks, using a dual-key handle/filename system.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I was referring to was using some custom programming inside Autocad, to populate a CADWorx custom property with a unique lookup key that's easier to work with.&amp;nbsp; If you wanted a more database-centric solution you could backfill custom properties in the live database (SQL or Access) using SQL statements that call from your SQL database.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 16:52:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8590573#M9273</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2019-02-12T16:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Datatools CADWorx Xdata Values with SQL Query</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8600396#M9274</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;But I am still trying to find out if we are able to use sql functions on Navisworks properties. It doesn't seem like it wants to accept them. I even tried some very simple ones. If not then I am going to have to do all the processing in the db and queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jgarza&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 16:10:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8600396#M9274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-16T16:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Datatools CADWorx Xdata Values with SQL Query</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8600426#M9275</link>
      <description>&lt;P&gt;I am also noticing that you are not allowed to use Categories and Properties that are not visible on tabs. I tried to perform a simple sql string that includes the following and it will not connect. Like I said at the beginning, either we are not allowed to use&amp;nbsp;none display properties or it doesn't like paths. I am trying to get the last piece of the pie, so I can accomplish what I need. I need to connect to the "Xref" and "Name" due to the fact that drawings are normally xref into other drawings. So this piece will make a unique id. is it possible to use the listed Category and Property?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help or solution is greatly appreciated. Below is the simple sql.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT * FROM [CADWorx] WHERE "Dwg_Path" = %prop("Xref", "Name");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They both contain the exact same path...&lt;/P&gt;
&lt;P&gt;C:\Test\123.dwg&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what are the limitations. What can we use for a sql statements as far as categories and properties and are sql functions allowed against properties values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 17:06:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/8600426#M9275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-16T17:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Datatools CADWorx Xdata Values with SQL Query</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/12244521#M9276</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm wonder if you got any resutls from your investigations to use outside SQL DB. Do you have working sample?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another idea could be to use OE directly with API.&lt;/P&gt;&lt;P&gt;So far xdata reader is not available in Navisworks 2023. I'm hopping that Navisworks COM portion can expose some interface with OE. Having source code available for OE i can post xdata via such interface easily.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With not much detailed docs this forum is good place to discuss different scenarios.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Gennady&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 23:55:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/datatools-cadworx-xdata-values-with-sql-query/m-p/12244521#M9276</guid>
      <dc:creator>gennadyKhkh</dc:creator>
      <dc:date>2023-09-15T23:55:13Z</dc:date>
    </item>
  </channel>
</rss>

