<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create file attachment. in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/create-file-attachment/m-p/3798535#M11306</link>
    <description>&lt;P&gt;You create attachements when you add or check in a file. So if you want to add an attachment to an existing file, you need to check it out and check it in again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AddDesignVisualizationFileAttachment is only for DesignVisualization (DWF) files.&amp;nbsp; If you try to use it with other file types you get error 1124.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2013 12:36:10 GMT</pubDate>
    <dc:creator>Redmond.D</dc:creator>
    <dc:date>2013-03-07T12:36:10Z</dc:date>
    <item>
      <title>Create file attachment.</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/create-file-attachment/m-p/3797353#M11305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need create file attachment with API. I need get result like when I upload Email message with attachments. Then I have message ant attached files to this message. I need some file to main file. I have main Docx file and I need attach pdf file. I have tray this code, but get error code1124 AddDesignVisualizationAttachmentBadFileClassification &amp;nbsp;.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Darius&lt;/P&gt;&lt;P&gt;long FmasterId = 29025;&lt;/P&gt;&lt;P&gt;String schildppath = "$/Testas.docx";&lt;/P&gt;&lt;P&gt;File[] attfailai = mm_serviceManager.DocumentService.GetFilesByMasterId(FmasterId);&lt;/P&gt;&lt;P&gt;File attfailas = attfailai[attfailai.Length-1];&lt;/P&gt;&lt;P&gt;FileAssocParam param1 = new FileAssocParam();&lt;/P&gt;&lt;P&gt;param1.CldFileId = attfailas.Id;&lt;/P&gt;&lt;P&gt;param1.RefId = null;&lt;/P&gt;&lt;P&gt;param1.Source = null;&lt;/P&gt;&lt;P&gt;param1.Typ = AssociationType.Attachment;&lt;/P&gt;&lt;P&gt;param1.ExpectedVaultPath = schildppath;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mm_serviceManager.DocumentService.AddDesignVisualizationFileAttachment(m_selectedFile.Id, param1);&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 10:31:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/create-file-attachment/m-p/3797353#M11305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-06T10:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create file attachment.</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/create-file-attachment/m-p/3798535#M11306</link>
      <description>&lt;P&gt;You create attachements when you add or check in a file. So if you want to add an attachment to an existing file, you need to check it out and check it in again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AddDesignVisualizationFileAttachment is only for DesignVisualization (DWF) files.&amp;nbsp; If you try to use it with other file types you get error 1124.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 12:36:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/create-file-attachment/m-p/3798535#M11306</guid>
      <dc:creator>Redmond.D</dc:creator>
      <dc:date>2013-03-07T12:36:10Z</dc:date>
    </item>
  </channel>
</rss>

