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

    Autodesk Vault Customization

    Reply
    Employee
    Posts: 652
    Registered: ‎12-12-2006

    Re: Update Attachment

    02-04-2013 09:44 AM in reply to: amitk_189

    You have the DWG file and the DWF file. Now you have to add the link between the two, which is what AddDesignVisualizationFileAttachment does.

     

    The first parameter is the ID of the parent file, which is the DWG.  The second parameter is the association to the child DWF file.  For the second parameter, create a new FileAssocParam class and fill in all the fields except for RefId and Source.  You can leave those null.

    CldFileId is the ID of the DWF file.  ExpectedVaultPath is the full path to the DWF in Vault.  Typ should be Attachment.

     

     



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

    Please use plain text.
    Distinguished Contributor
    amitk_189
    Posts: 173
    Registered: ‎12-15-2011

    Re: Update Attachment

    02-04-2013 08:24 PM in reply to: Redmond.D

    Thanks for the reply, i will work on it and later get back to you.

     

     

    With Warm Regards

    Amit

    Please use plain text.
    Distinguished Contributor
    amitk_189
    Posts: 173
    Registered: ‎12-15-2011

    Re: Update Attachment

    02-05-2013 09:33 PM in reply to: amitk_189

    Hi Doug,

     

    The problem still persists.

     

    1) i check out the dwf file.

    2)When its copied to local system, i make some changes.

    3)I check in the file to vault

    4)Then i execute AddDesignVisualizationFileAttachment with all paramaters you specified, yet there is no connection between dwg and dwf. The associativity is lost between two files.

     

     

     

    Please use plain text.
    Distinguished Contributor
    amitk_189
    Posts: 173
    Registered: ‎12-15-2011

    Re: Update Attachment

    02-06-2013 09:35 AM in reply to: amitk_189

    Hi Doug,

     

    Thanks for information, it worked. The information you provided played a crucial role in completion of project.

    Thanks for Guidance.

     

    Best Regards

    Amit

     

    Please use plain text.
    Valued Contributor
    Posts: 61
    Registered: ‎03-21-2007

    Re: Update Attachment

    05-31-2013 06:53 AM in reply to: Redmond.D

    This works fine if I stick to the naming convention e.i., "part1.ipt" / "part1.ipt.dwf"

     

    But using a custom naming scheme for the designvisualization e.g.,  "part1_test.ipt.dwf" breaks the link to the preview pane.

     

    Is this the expected behavior or am I missing something?

     

    ( Vault Basic 2013 )

    Please use plain text.
    Distinguished Contributor
    amitk_189
    Posts: 173
    Registered: ‎12-15-2011

    Re: Update Attachment

    05-31-2013 09:49 PM in reply to: Redmond.D

    Hi noontz,

     

    I never tested with different naming conventions, till today i tested with the same naming conventions as customer requirement and the behaviour is not known to me.

     

    I will test the same this weekend and reply the same to you.

     

     

    Best Regards

    Amit

    Please use plain text.
    Valued Contributor
    Posts: 61
    Registered: ‎03-21-2007

    Re: Update Attachment

    06-03-2013 11:31 PM in reply to: amitk_189

    Hi Amit

     

    Thanks for your reply & interest. Did you hit the same limitations? My assumption is, that the preview pane is restricted to the specific namingconvention.

    Please use plain text.
    Distinguished Contributor
    amitk_189
    Posts: 173
    Registered: ‎12-15-2011

    Re: Update Attachment

    06-04-2013 04:29 AM in reply to: Redmond.D

    Hi noontz

     

    I tested the same and its working fine. As far as the you explicitly attach the dwf/dwfx file to dwg/ipt, it works fine.

     

    Just make sure the extensions are right and you are attaching the dwf to ipt/dwg properly. Even a minor bug does not attach the dwf to dwg/ipt.

     

     

    With Best Regards

    Amit

     

     

    Please use plain text.
    Valued Contributor
    Posts: 61
    Registered: ‎03-21-2007

    Re: Update Attachment

    06-04-2013 05:39 AM in reply to: amitk_189

    Hi Amit.

     

    Big thanks for your efforts!

    I´m using AddDesignVisualizationFileAttachment as suggested by Doug after both files are checked-in. Everything looks right & no "bugs" as far as I can see. It´s just the preview pane I can´t seem to "syncronize", when I´m using a custom naming scheme?. Guess I´ll need some more try & error to get it right :smileysad:

     

     

    Please use plain text.