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

    Autodesk Vault Customization

    Reply
    New Member
    gerhard.badziura
    Posts: 1
    Registered: 01-18-2012

    Problems to link Documents to Items and vice versa

    102 Views, 1 Replies
    01-18-2012 12:52 AM

    Hello to all

    Our aim is to link a document to an article and vice versa.

    In this special case we’ll like to create a new article with information based on a document and link both together.

     

    in the PDF file you will find a description of our approach and the different states as screenshots. It seems to exist a problem in the method PromoteFiles when we try to link items to subassembly of an assembly. In some cases we get an Promoteresult with empty FileAssocArray, ItemAssocArray and ItemBomOccArray.

     

    Hope you can help.

     

    Gerhard Badziura

    Cideon Systems

     

     

    Employee
    Posts: 414
    Registered: 12-12-2006

    Re: Problems to link Documents to Items and vice versa

    01-20-2012 05:21 AM in reply to: gerhard.badziura

    For complicated issues like this, I recommend using the Autodesk Developer Network for support if you have a membership.

     

    Here are some things to look at:

    • I'm assuming that these files were added through the Inventor plug-in, right?  Were there any modifications made to these Vault files prior to calling PromoteFiles?
    • If you run the "Assign Item" command on these files in the same order, what is the result?  "Assign Item" is basically the UI command for PromoteFiles().
    • In your code, you should check the StatusArray values on the ItemsAndFiles return object.  Promote can create new items, update existing items, or do nothing if the items already exist.  The status tells you what happend for each of the items in ItemRevArray.

     



    Doug Redmond
    Software Engineer
    Autodesk, Inc.
    http://justonesandzeros.typepad.com/