<?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: VDS - Create project link for new files in Vault Forum</title>
    <link>https://forums.autodesk.com/t5/vault-forum/vds-create-project-link-for-new-files/m-p/8527365#M25899</link>
    <description>&lt;P&gt;Thank you very much for sharing this example and your thoughts. It should help quite a lot!&lt;/P&gt;
&lt;P&gt;And i will switch the forum for future posts &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2019 17:37:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-01-16T17:37:25Z</dc:date>
    <item>
      <title>VDS - Create project link for new files</title>
      <link>https://forums.autodesk.com/t5/vault-forum/vds-create-project-link-for-new-files/m-p/8396488#M25896</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am looking for a way or rather for a command to create a link to an existing project folder for new files with Vault Data Standard. It could be through cascading combo boxes that reveal the actual project folder structure or by right clicking a project folder and clicking "create new data standard file" i.e.&lt;/P&gt;&lt;P&gt;I have a Year/Month file location and would like to enhance it by this "create project link" utility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd be happy for any help/advice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Jascha Helbig&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 16:25:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-forum/vds-create-project-link-for-new-files/m-p/8396488#M25896</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-12T16:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: VDS - Create project link for new files</title>
      <link>https://forums.autodesk.com/t5/vault-forum/vds-create-project-link-for-new-files/m-p/8509812#M25897</link>
      <description>&lt;P&gt;So apparently this is possible with this function, havn't tried it yet but will for sure and reply here again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;public Lnk AddLink( &lt;BR /&gt;&amp;nbsp;&amp;nbsp; System.long parentId,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; System.string toEntityClassId,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; System.long toEntityId,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; System.string meta&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;AddLink($projectfolder.Id,“FILE“,$newfile.Id,$null)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 11:04:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-forum/vds-create-project-link-for-new-files/m-p/8509812#M25897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-09T11:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: VDS - Create project link for new files</title>
      <link>https://forums.autodesk.com/t5/vault-forum/vds-create-project-link-for-new-files/m-p/8510255#M25898</link>
      <description>&lt;P&gt;This is possible. However I don't have a sample to create links for files to folders. I would not recommend continue creating new files in date based folder structures. Vault is designed to create the files directly belonging to a project and link files for re-use in other projects if needed.&lt;/P&gt;
&lt;P&gt;I can share a sample to create links on folder creation to and from custom objects; this should help to get the concept. Your suggested approach is quite close to this.&lt;/P&gt;
&lt;PRE&gt;	#region create_links
	try
	{
		$companyID = Get-Content $env:TEMP"\mOrganisationId.txt"
		$contactID = Get-Content $env:TEMP"\mPersonId.txt"
		#if($companyID -ne "") { $link1 = $vault.DocumentService.AddLink($companyID,"FLDR",$dialog.CurrentFolder.Id,"Organisation-&amp;gt;Folder") }
		if($companyID -ne $null) { $link2 = $vault.DocumentService.AddLink($dialog.CurrentFolder.Id,"CUSTENT",$companyID,"Folder-&amp;gt;Organisation") }
		#if($contactID -ne "") { $link3 = $vault.DocumentService.AddLink($contactID,"FLDR",$dialog.CurrentFolder.Id,"Person-&amp;gt;Folder") }
		if($contactID -ne $null) { $link3 = $vault.DocumentService.AddLink($dialog.CurrentFolder.Id,"CUSTENT",$contactID,"Folder-&amp;gt;Person") }
	}
	catch
	{
		$dsDiag.Trace("CreateFolder.ps1 - AddLink command failed") 
	}
	finally {
		#in any case don't use the last entry twice...
		$null | Out-File $env:TEMP"\mOrganisationId.txt"
		$null | Out-File $env:TEMP"\mPersonId.txt"
	}
	#endregion&lt;/PRE&gt;
&lt;P&gt;May I ask you switching to the Vault Customization forum for these types of discussions/questions for future posts? Thanks you.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 14:26:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-forum/vds-create-project-link-for-new-files/m-p/8510255#M25898</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2019-01-09T14:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: VDS - Create project link for new files</title>
      <link>https://forums.autodesk.com/t5/vault-forum/vds-create-project-link-for-new-files/m-p/8527365#M25899</link>
      <description>&lt;P&gt;Thank you very much for sharing this example and your thoughts. It should help quite a lot!&lt;/P&gt;
&lt;P&gt;And i will switch the forum for future posts &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 17:37:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-forum/vds-create-project-link-for-new-files/m-p/8527365#M25899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-16T17:37:25Z</dc:date>
    </item>
  </channel>
</rss>

