PDA

View Full Version : Use Naviswork ActiveX with Licensed API



potapczuk542577
2011-05-02, 08:24 PM
Hi,


I'm trying to use the Naviswork ActiveX with Licensed API for more capabilities, like selection and view functions.


According the COM Interface document it is possible:



ActiveX Licensing
If unlicensed the controls will open Navisworks 3 and later .nwd and .nwf files. The API is also limited for
an unlicensed control. To open .nwc files or use full API functionality additional licensing is required, this
requires one of :.
• An installed licensed copy of Navisworks to display any file.
• A suitable TeamWorker license file to display a file published by TeamWorker publisher. For internet
and intranet usage this could be on the server.
• A runtime license embeded in the container application.


I already have a Naviswork Manager 2011 License running, and i found that the Object can have a certificate atribute:



VBA Usage
Control name is 'nwControl'; or 'Navisworks'
‘ SRC’ property
This identifies the Navisworks file to be downloaded and opened.
‘Certificate’ property
This identifies the Navisworks license to be downloaded and opened.
‘State’ property
Gets access to the controls internal state.


The document don't explain what should be put inside the certificate property. I tried to put the address to the license file (.LIC), but it did't work, when pressing CTRL+ALT+SHIFT+E it still show UNLICENSED.


How can I use this?