• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Navisworks API

    Reply
    Member
    Posts: 5
    Registered: ‎07-05-2012

    Regarding the NWD file password input automatic!

    118 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.

    Please use plain text.
    ADN Support Specialist
    xiaodong.liang
    Posts: 805
    Registered: ‎06-12-2011

    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

    Please use plain text.
    Member
    Posts: 5
    Registered: ‎07-05-2012

    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.

     

    Please use plain text.
    ADN Support Specialist
    xiaodong.liang
    Posts: 805
    Registered: ‎06-12-2011

    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

    Please use plain text.
    Member
    Posts: 5
    Registered: ‎07-05-2012

    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.

    Please use plain text.
    ADN Support Specialist
    xiaodong.liang
    Posts: 805
    Registered: ‎06-12-2011

    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

    Please use plain text.
    Member
    Posts: 5
    Registered: ‎07-05-2012

    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:

    Please use plain text.