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

    Autodesk Navisworks API

    Reply
    Contributor
    Posts: 13
    Registered: ‎08-29-2006
    Accepted Solution

    Enable ALLOW_RESAVE when converting NWC to NWD

    147 Views, 1 Replies
    04-30-2012 02:45 AM

    We're converting NWC to NWD, but the resulting NWD files are locked.

    So we need a method to batch convert NWC + NWF files to NWD while enabling the flag: ALLOW_RESAVE

     

    How do we enable this flag using vbscript or .NET?

    Morten Bastue Jacobsen
    Rambøll Danmark A/S
    www.ramboll.dk
    Please use plain text.
    ADN Support Specialist
    xiaodong.liang
    Posts: 861
    Registered: ‎06-12-2011

    Re: Enable ALLOW_RESAVE when converting NWC to NWD

    05-09-2012 09:55 PM in reply to: mobj

    When you use Publish to generate the nwd file, you can set the flag:

     

    .NET API:   PublishProperties.AllowResave . refer to api\net\documentation\.NET API.chm to find the sample

     

    COM API: InwOaPublishAttribute.Flags = nwEPublishFlags .ePublishFlag_ALLOW_RESAVE .  refer to api\com\examples\auto_08, you can know how to se attributes.

     

     



    Xiaodong Liang
    Developer Technical Services
    Autodesk Developer Network

    Please use plain text.