Message 1 of 2

Not applicable
03-24-2017
06:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Hi have a rvt file with a Project parameter named "TOTBarre" and associated to rebar
can i transfer it to another file using API?
I use this code for transfer rebartype, but for parameter?
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)
Thanks
Stefano
Solved! Go to Solution.