<?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 Transfer project Parameter in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/transfer-project-parameter/m-p/6970813#M59414</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi have a rvt file with a Project parameter named "TOTBarre" and associated to rebar&lt;/P&gt;
&lt;P&gt;can i transfer it to another file using API?&lt;/P&gt;
&lt;P&gt;I use this code for transfer rebartype, but for parameter?&lt;/P&gt;
&lt;PRE&gt;  Dim list2 As New List(Of RebarBarType)(Enumerable.Cast(Of RebarBarType)(New FilteredElementCollector(docTemplate).OfClass(GetType(RebarBarType))))
                Dim listID2 As IList(Of ElementId) = New List(Of ElementId)
                If (list2.Count = 0) Then
                    MsgBox("Le annotazioni per armature sono state cancellate dal file prototipo!",, "ED-RebDet2D - Caricamento Standad di Progetto")
                    t.RollBack()
                    GoTo a300
                End If

                Dim type1 As RebarBarType
                For Each type1 In list2
                    listID2.Add(type1.Id)
                Next
                ElementTransformUtils.CopyElements(docTemplate, listID2, _doc, Nothing, New CopyPasteOptions)&lt;/PRE&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Stefano&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 13:43:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-24T13:43:57Z</dc:date>
    <item>
      <title>Transfer project Parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transfer-project-parameter/m-p/6970813#M59414</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi have a rvt file with a Project parameter named "TOTBarre" and associated to rebar&lt;/P&gt;
&lt;P&gt;can i transfer it to another file using API?&lt;/P&gt;
&lt;P&gt;I use this code for transfer rebartype, but for parameter?&lt;/P&gt;
&lt;PRE&gt;  Dim list2 As New List(Of RebarBarType)(Enumerable.Cast(Of RebarBarType)(New FilteredElementCollector(docTemplate).OfClass(GetType(RebarBarType))))
                Dim listID2 As IList(Of ElementId) = New List(Of ElementId)
                If (list2.Count = 0) Then
                    MsgBox("Le annotazioni per armature sono state cancellate dal file prototipo!",, "ED-RebDet2D - Caricamento Standad di Progetto")
                    t.RollBack()
                    GoTo a300
                End If

                Dim type1 As RebarBarType
                For Each type1 In list2
                    listID2.Add(type1.Id)
                Next
                ElementTransformUtils.CopyElements(docTemplate, listID2, _doc, Nothing, New CopyPasteOptions)&lt;/PRE&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Stefano&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 13:43:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transfer-project-parameter/m-p/6970813#M59414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T13:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer project Parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transfer-project-parameter/m-p/6970860#M59415</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;BR /&gt;The way to test this is to do the process manually.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Find out the elementId of thing you want to copy&lt;/LI&gt;
&lt;LI&gt;Select it using Manage &amp;gt; Inquiry &amp;gt; Select by ID&lt;/LI&gt;
&lt;LI&gt;'Copy to Clipboard'&lt;/LI&gt;
&lt;LI&gt;Go to new project&lt;/LI&gt;
&lt;LI&gt;'Paste from Clipboard'&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Check if warnings/errors happen, then check results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my experience, this process is a facsimile.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 14:01:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transfer-project-parameter/m-p/6970860#M59415</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-03-24T14:01:55Z</dc:date>
    </item>
  </channel>
</rss>

