Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Regarding the NWD file password input automatic!

6 REPLIES 6
Reply
Message 1 of 7
fengcan
561 Views, 6 Replies

Regarding the NWD file password input automatic!

 

 

All the NWD files were published by server in the midnight,

And the user will review these files, to realize the purpose of security, we setting the password when these files were generator, internal designer will fetch the password in designated address,

When they open the NWD, Naviswrorks will inquired password, they will paste these character and entry normally,

 

But we think it is not safety, some people will copy password along with Nwd file,

 

Now we want to know if is possible that writer one automation program, when roamer.exe to start up to load the NWD file, and the password will input automatic, so the designer open Nwd file normally, but they don’t know what is the password.

6 REPLIES 6
Message 2 of 7
xiaodong_liang
in reply to: fengcan

Hi,

 

It is true you can publish nwd with password. Please take a look at the method Document.PublishFile in API help reference.

 

In addition, the SDK api\net\examples\Controls\PublishFile is a small demo. It is a control based application, but the core code could be used in a plug-in, and the plug-in can be called by the automation application. 

 

Message 3 of 7
fengcan
in reply to: xiaodong_liang

Hi,

 

Yeah, absolutely, published the file with password is ok. The demo is great toolkit, I also modified the demo and it can generated password..

 

But my requirements is how to hidden the Password character when the user open the NWD file,  we want write a program, the user can open the NWD file via this program, but they don’t know the exactly Password character.

 

Message 4 of 7
xiaodong_liang
in reply to: fengcan

Hi,

 

So, what you wanted to do is to input the password silently without user inputting explicitly. Sorry, however there is no such API currently. The open method does not provide the option.

 

Probably you could try to catch the password dialog and mimic inputting after Open method. This will need to refer to some APIs of Windows. 

Message 5 of 7
fengcan
in reply to: xiaodong_liang

Hi,

 

We use the Nav to read the PDS model(OIL&GAS plant), all the element include a batch information,

such as design pressure, design temp, element Material, etc.,

to avoid discolse information, so we  only want office people can read the NWD file, if these file was disclose, they need password.

Message 6 of 7
xiaodong_liang
in reply to: fengcan

Hi,

 

This is what your program (logging system) could control, instead of Navisworks API. e.g. when any user has no privilege, the program could just disable the open button, or even forbid the user to log in. 

Message 7 of 7
fengcan
in reply to: xiaodong_liang

Hi,

I have find the method,  now we are do testing.

I try to write a program, which is key generator, and it will find the handle of Navisworks,

and send the password into the NWD password login interface.

 

Smiley Very Happy

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report