- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to do a proof of concept for a customer. Most likely they'll be using MS Access to do this, but just as an example, I'm trying to establish a database link between Microsoft Excel and Navisworks Manage 2012. I'm REALLY close. Interesting side note - why are there TWO places to get to the data tools? - One in File Options and one from the Data Tools button on the Home ribbon? They don't seem to "talk" to each other - the resulting dialogs look the same but what is done in one is not reflected in the other.
At any rate, I am doing all of this in the File Options tool - under the Data Tools tab, I've configured a "Test" data link to use the Microsoft Excel Driver (*.xls, *.xlsx).
My search string reads: SELECT * FROM [Sheet1$] WHERE "Object ID" = %prop ("Element" , "Object ID");
The model is a really simple Revit Architecture model that I've brought in, with a custom parameter of "Object ID" - each object in the model has a unique id number. This shows up on the "Element" tab of the Navisworks Properties window when I select one of them. However with the link enabled, selecting an object does not display the "Test" tab as it should.
If I modify the search string to just say: SELECT * FROM [Sheet1$], then I see all of the fields in the "Test" tab. I've double and triple checked the spelling, etc. and I've played with all kinds of permutations of the search string from the WHERE on, with no results. I even made sure that the "Object ID" column in the Excel file was formatted as Text (the first time through it was formatted as "General" and the values were coming back as decimal numbers which wouldn't have matched my Object ID values in the model.
Can anybody see anything wrong with my search string? This shouldn't be rocket science, and it doesn't look to be, but it also doesn't seem to WORK! Thanks in advance.
Excel file is attached (change the extension from .txt to .xlxs).
Solved! Go to Solution.