Hi,
We have built an application on Navisworks with a SQL database where we load all of our models and extend them with extra properties. We would now like to automate the publishing process of an NWD file, but in this process we want to embed the extra properties we have in our SQL database for every object. We have looked at Datatools, but we are not a big fan of ODBC, for it is a very old technique.
Are there possiblitities in the API to create an NWD and in this process embed the SQL properties into the NWD file as if it where Navisworks properties.
Thanks in advance,
Mark
Hi mdenheijer,
I'd recommend two ways which may help you:
1) PropertyPlugin of COM API. It is similar to DataTool, but you may have the option to link to other database yourself. It actually watches the propagating of property and add additional properties to the node. There is a SDK sample at:
\api\COM\examples\Plugin\PluginPropertyDatabaseExample
Note: it is a pure COM Plugin. the sample just uses it in term of .NET.
2) With .NET API, you may be able to read your database, add the additional properties when the document is opened in some events of Application. about adding properties, please refer to this blog:
Hi,
Thank you for the reply. We will look into this.
With the second method I do have some worries about performance and the fact that the property values are probably not read-only. (tested this by manually adding user property. Opening this NWD after publish, the values are still editable). But we will see how far we get. If we have any additional questions, I will come back to you. For now, thanks again.
Greetz Mark den Heijer
Hi Xiaodong Liang ,
Based on your comments we have done some test and we ran into the following problem. I (by mistake) created a separate post for this:
http://forums.autodesk.com/t5/Autodesk-Navisworks/Adding-datatools-twice/m-p/4298478
We want to use this mechanism for version management.
Party 1 adds database properties to NWD, publishes this enriched file en shares this with party 2. (this works)
Party 2 adds database properties to NWD, publishes this enriched file en shares this with party 3. (this doesn't work)
greetz mark