<?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: An Example for using MultiReferenceAnnotation? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/4423895#M78776</link>
    <description>&lt;P&gt;Dear Miguel Angel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response. I put it on The Building Coder as well to ensure it is easily found:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/09/multireferenceannotation-example.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/09/multireferenceannotation-example.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2013 09:48:58 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2013-09-13T09:48:58Z</dc:date>
    <item>
      <title>An Example for using MultiReferenceAnnotation?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/4412817#M78773</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;Is it possible to get an example to create a Multi-rebar annotations, I search on the Revit SDK and found I have to use the MultiReferenceAnnotation class.&lt;/P&gt;&lt;P&gt;But I can't build an example with the current information.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For creating A normal Rebar Tag I'm using the Autodesk.Revit.Creation.Document.Create.NewTag method&lt;/P&gt;&lt;P&gt;I notice the independent tag has a property named MultiReferenceAnnotationId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using VS2012 c#, Revit 2014 and Windows 8 64bits&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 22:03:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/4412817#M78773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-09T22:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: An Example for using MultiReferenceAnnotation?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/4414835#M78774</link>
      <description>&lt;P&gt;Dear &lt;SPAN class="UserName lia-user-name"&gt;&lt;A id="link_14108268164" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1086652" target="_self"&gt;&lt;SPAN&gt;miguel.alanis&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note the MultiReferenceAnnotation.Create method taking a MultiReferenceAnnotationOptions argument.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The minimum options are probably the type and ElementsToDimension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an excerpt from an internal test suite I received from the development team:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; var view = GetElement&amp;lt;View&amp;gt;(124186);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; var rebarList = GetElements&amp;lt;Element&amp;gt;(RevitDoc, new[] { 280427 }).ToList();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Assert.IsTrue(rebarList.Count &amp;gt; 0, "There are no rebars in the document!");&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; IList&amp;lt;ElementId&amp;gt; elementIds = new List&amp;lt;ElementId&amp;gt;();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; foreach (Element rebar in rebarList)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elementIds.Add(rebar.Id);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; MultiReferenceAnnotationType type = GetElement&amp;lt;MultiReferenceAnnotationType&amp;gt;(RevitDoc, 260544);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Assert.IsNotNull(type, "the MultiReferenceAnnotationType does not exist!");&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; MultiReferenceAnnotationOptions options = new MultiReferenceAnnotationOptions(type);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; options.TagHeadPosition = new XYZ(0, 100, 0);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; options.DimensionLineOrigin = new XYZ(5, 5, 1);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; options.DimensionLineDirection = new XYZ(0, 1, 0);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; options.DimensionPlaneNormal = view.ViewDirection;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; options.SetElementsToDimension(elementIds);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; using (Transaction tran = new Transaction(RevitDoc, "Create_Rebar_Vertical"))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tran.Start();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mra = MultiReferenceAnnotation.Create(RevitDoc, view.Id, options);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dimension = GetElement&amp;lt;Dimension&amp;gt;(RevitDoc, mra.DimensionId);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tran.Commit();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 13:59:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/4414835#M78774</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2013-09-10T13:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: An Example for using MultiReferenceAnnotation?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/4419725#M78775</link>
      <description>&lt;P&gt;Dear Jeremy,&lt;/P&gt;&lt;P&gt;Thanks for the answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Miguel Angel Alanis&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 22:43:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/4419725#M78775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-11T22:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: An Example for using MultiReferenceAnnotation?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/4423895#M78776</link>
      <description>&lt;P&gt;Dear Miguel Angel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response. I put it on The Building Coder as well to ensure it is easily found:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/09/multireferenceannotation-example.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/09/multireferenceannotation-example.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 09:48:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/4423895#M78776</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2013-09-13T09:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: An Example for using MultiReferenceAnnotation?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/9321697#M78777</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to refresh the topic because i cant found any information about option that i could manage orientation (vertical,horizontal) created tags. Is that possible?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 23:30:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/9321697#M78777</guid>
      <dc:creator>Maciej_Darmochwal</dc:creator>
      <dc:date>2020-02-16T23:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: An Example for using MultiReferenceAnnotation?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/9431801#M78778</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you haven't found the solution yet you can use this :&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;annotation&amp;nbsp;=&amp;nbsp;MultiReferenceAnnotation.Create(doc,&amp;nbsp;view.Id,&amp;nbsp;annotation_opt)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;tag&amp;nbsp;=&amp;nbsp;doc.GetElement(annotation.TagId)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;tag.TagOrientation&amp;nbsp;=&amp;nbsp;TagOrientation.Horizontal&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have one question too. Do you know why in the dimension line i have 2 additional references? The bars are bended but in this view they are shown as points( bend in above the section)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-04-09 10_29_35-Autodesk Revit 2019.2 - [Bellona testowy_lukasz.koc@wsp.com - Section_ Section 1.png" style="width: 520px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/751805iD4388238D6BD2CF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-04-09 10_29_35-Autodesk Revit 2019.2 - [Bellona testowy_lukasz.koc@wsp.com - Section_ Section 1.png" alt="2020-04-09 10_29_35-Autodesk Revit 2019.2 - [Bellona testowy_lukasz.koc@wsp.com - Section_ Section 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Apr 2020 08:41:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/9431801#M78778</guid>
      <dc:creator>lukasz_koc1</dc:creator>
      <dc:date>2020-04-09T08:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: An Example for using MultiReferenceAnnotation?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/9431893#M78779</link>
      <description>&lt;P&gt;Dear Łukasz,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your answer, and also for the new question, which I already answered (as far as I am able to) in the comment on The Building Coder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2013/09/multireferenceannotation-example.html#comment-4867230024" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2013/09/multireferenceannotation-example.html#comment-4867230024&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can determine the geometric location of the feature that each reference is associated with, you should be able to use that information to tell the two apart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 09:40:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/9431893#M78779</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-04-09T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: An Example for using MultiReferenceAnnotation?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/9660045#M78780</link>
      <description>&lt;P&gt;As it is done to locate the location of the reinforcements to place the dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to understand how geometry works in views. I imagine it could work like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Options opp = new Options();
            opp.View = RevitTools.doc.ActiveView;
            GeometryElement geoEl = r.get_Geometry(opp);
            BoundingBoxXYZ box = geoEl.GetBoundingBox();

            //Creo lista de elementos
            List&amp;lt;ElementId&amp;gt; listIds = new List&amp;lt;ElementId&amp;gt;();
            listIds.Add(r.Id);
            
            //Opciones de Multirebar
            MultiReferenceAnnotationOptions opt = 
                new MultiReferenceAnnotationOptions(ViewTools.MultiRebar);

            opt.TagHasLeader = false;

            //Ubicaciones
            opt.TagHeadPosition = ?????;
            opt.DimensionLineOrigin = ?????;
            opt.DimensionLineDirection = ?????;
            opt.DimensionPlaneNormal = RevitTools.doc.ActiveView.ViewDirection;

            opt.SetElementsToDimension(listIds);

            MultiReferenceAnnotation.Create(RevitTools.doc, r.Id, opt);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The intention is that it works for any view and any type of presentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rebars.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/800513i5D686DB20E8A00A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rebars.JPG" alt="Rebars.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 15:52:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/9660045#M78780</guid>
      <dc:creator>jamess166</dc:creator>
      <dc:date>2020-07-28T15:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: An Example for using MultiReferenceAnnotation?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/11482546#M78781</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hello,&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I have a question with the above code.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;How do you get a reference to the individual rebars elements within the rebar?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I have reviewed the messages indicated in the links and the API documentation (2022), but I have not found a way.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;In the example code I need to know how to get the part with question marks:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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;&lt;LI-CODE lang="csharp"&gt;public void RebarAnnotation(Document doc, View view, Rebar rebar){ 
  //  I already have it
  MultiReferenceAnnotationType type = getAnnoType();
  MultiReferenceAnnotationOptions options = getAnnoOptions(type);

  // I need the part with question marks
  IList&amp;lt;ElementId&amp;gt; elementIds = new List&amp;lt;ElementId&amp;gt;();
  foreach (Element rbr in ???) {
    elementIds.Add(rbr.Id);
  }
  options.SetElementsToDimension(elementIds);

  //  I already have it
  using (Transaction tran = new Transaction(doc)) {
    tran.Start("Rebar Annotation");
    MultiReferenceAnnotation.Create(doc, view.Id, options);
    tran.Commit();
  }
}&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(I have edited to correct some errors in the code)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 11:20:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/11482546#M78781</guid>
      <dc:creator>pedro_abril</dc:creator>
      <dc:date>2022-10-14T11:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: An Example for using MultiReferenceAnnotation?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/11495324#M78782</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Thanks to the help of the development team (thanks to Naveen Kumar T) I have solved the previous question.&lt;BR /&gt;I leave the solution for future reference in case it helps someone else:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public void RebarAnnotation(Document doc, View view, Rebar rebar){ 
  //  I already have it
  MultiReferenceAnnotationType type = getAnnoType();
  MultiReferenceAnnotationOptions options = getAnnoOptions(type);

  // With the reference to the set of bars it is enough.
  IList&amp;lt;ElementId&amp;gt; elementIds = new List&amp;lt;ElementId&amp;gt;();
  elementIds.Add(rebar.Id);

  options.SetElementsToDimension(elementIds);

  //  I already have it
  using (Transaction tran = new Transaction(doc)) {
    tran.Start("Rebar Annotation");
    MultiReferenceAnnotation.Create(doc, view.Id, options);
    tran.Commit();
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the reference to the set of bars it is enough, it is not necessary to identify each individual bar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 06:58:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-example-for-using-multireferenceannotation/m-p/11495324#M78782</guid>
      <dc:creator>pedro_abril</dc:creator>
      <dc:date>2022-10-20T06:58:50Z</dc:date>
    </item>
  </channel>
</rss>

