<?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 user define property update using C# in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/user-define-property-update-using-c/m-p/10697583#M2827</link>
    <description>&lt;P&gt;How can I edit and update a user define property using c# programing. basically i have this UDP named usercomment and i want to update its description using C# codes. can someone help me with this?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 06:38:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-19T06:38:53Z</dc:date>
    <item>
      <title>user define property update using C#</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/user-define-property-update-using-c/m-p/10697583#M2827</link>
      <description>&lt;P&gt;How can I edit and update a user define property using c# programing. basically i have this UDP named usercomment and i want to update its description using C# codes. can someone help me with this?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 06:38:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/user-define-property-update-using-c/m-p/10697583#M2827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-19T06:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: user define property update using C#</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/user-define-property-update-using-c/m-p/10745239#M2828</link>
      <description>&lt;P&gt;If you need to update properties only, this code snippet might help (updates the "Part Number"):&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;                Dictionary&amp;lt;ACW.PropDef, object&amp;gt; mPropDictonary = new Dictionary&amp;lt;ACW.PropDef, object&amp;gt;();

                ACW.PropDef[] propDefs = conn.WebServiceManager.PropertyService.GetPropertyDefinitionsByEntityClassId("FILE");
                ACW.PropDef propDef = propDefs.SingleOrDefault(n =&amp;gt; n.SysName == "PartNumber");
                mPropDictonary.Add(propDef, mNewNumber);

                UpdateFileProperties((ACW.File)mFileIt, mPropDictonary);&lt;/LI-CODE&gt;
&lt;P&gt;If you need to check out, edit geometry, and check in a file, you can submit the comment within the check-in command like this:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;mUploadedFile = conn.FileManager.CheckinFile(results.FileResults.First().File, "Created by iLogic-Vault rule", false, null, null, false, null, ACW.FileClassification.None, false, vdfPath);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can review the context of both snippets here:&amp;nbsp;&lt;A href="https://github.com/koechlm/iLogic-Vault/blob/2022/iLogic-Vault-QuickstartLibrary/iLogic-Vault%20QuickstartLibrary.cs" target="_blank"&gt;https://github.com/koechlm/iLogic-Vault/blob/2022/iLogic-Vault-QuickstartLibrary/iLogic-Vault%20QuickstartLibrary.cs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 14:22:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/user-define-property-update-using-c/m-p/10745239#M2828</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2021-11-09T14:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: user define property update using C#</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/user-define-property-update-using-c/m-p/10745426#M2829</link>
      <description>&lt;P&gt;After update vault 2022.2 the function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UpdateFileProperties((ACW.File)mFileIt, mPropDictonary);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;doesn't work. Is the any information about changing in this function ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Torsten&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 15:14:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/user-define-property-update-using-c/m-p/10745426#M2829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-09T15:14:58Z</dc:date>
    </item>
  </channel>
</rss>

