Navisworks API

Reply
Member
fengcan
Posts: 5
Registered: ‎07-05-2012
Message 1 of 7 (165 Views)

Regarding the NWD file password input automatic!

165 Views, 6 Replies
08-05-2012 01:03 AM

 

 

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.

ADN Support Specialist
xiaodong.liang
Posts: 1,233
Registered: ‎06-12-2011
Message 2 of 7 (141 Views)

Re: Regarding the NWD file password input automatic!

08-14-2012 03:45 AM 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. 

 



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Member
fengcan
Posts: 5
Registered: ‎07-05-2012
Message 3 of 7 (131 Views)

Re: Regarding the NWD file password input automatic!

08-17-2012 08:08 PM 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.

 

ADN Support Specialist
xiaodong.liang
Posts: 1,233
Registered: ‎06-12-2011
Message 4 of 7 (123 Views)

Re: Regarding the NWD file password input automatic!

08-20-2012 01:31 AM 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. 



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Member
fengcan
Posts: 5
Registered: ‎07-05-2012
Message 5 of 7 (118 Views)

Re: Regarding the NWD file password input automatic!

08-20-2012 02:54 AM 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.

ADN Support Specialist
xiaodong.liang
Posts: 1,233
Registered: ‎06-12-2011
Message 6 of 7 (116 Views)

Re: Regarding the NWD file password input automatic!

08-20-2012 03:09 AM 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. 



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Member
fengcan
Posts: 5
Registered: ‎07-05-2012
Message 7 of 7 (112 Views)

Re: Regarding the NWD file password input automatic!

08-20-2012 03:34 AM 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.

 

:smileyvery-happy:

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community