<?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: How to create a dimension between two reference plane without any other elements? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-dimension-between-two-reference-plane-without/m-p/11849638#M13110</link>
    <description>&lt;P&gt;Of course when we create two reference planes manually in the view, then we can create a dimension by aligned dimension tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But why it hints the two&amp;nbsp;reference planes are not geometrically aligned when we create the alignment dimension by RevitAPI?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 07:03:55 GMT</pubDate>
    <dc:creator>2326751326</dc:creator>
    <dc:date>2023-03-27T07:03:55Z</dc:date>
    <item>
      <title>How to create a dimension between two reference plane without any other elements?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-dimension-between-two-reference-plane-without/m-p/11841360#M13108</link>
      <description>&lt;P&gt;How to solve this problem?&lt;/P&gt;&lt;P&gt;Hint: The two references are not geometrically aligned so the Alignment cannot be created.&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="2326751326_0-1679559231287.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1192308i507285225E66E24E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2326751326_0-1679559231287.png" alt="2326751326_0-1679559231287.png" /&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;P&gt;My code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;UIDocument uidoc = commandData.Application.ActiveUIDocument;&lt;BR /&gt;Autodesk.Revit.DB.Document doc = uidoc.Document;&lt;BR /&gt;&lt;BR /&gt;Transaction transaction = new Transaction(doc, "New Dimension");&lt;BR /&gt;transaction.Start();&lt;BR /&gt;&lt;BR /&gt;XYZ rp1point1 = new XYZ(0, 0, 0);&lt;BR /&gt;XYZ rp1point2 = new XYZ(0, 100, 0);&lt;BR /&gt;XYZ rp1point3 = new XYZ(0, 0, 10);&lt;BR /&gt;XYZ rp2point1 = new XYZ(50, 0, 0);&lt;BR /&gt;XYZ rp2point2 = new XYZ(50, 100, 0);&lt;BR /&gt;XYZ rp2point3 = new XYZ(50, 0, 10);&lt;BR /&gt;try&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;ReferencePlane referencePlane1 = doc.Create.NewReferencePlane(rp1point1, rp1point2, rp1point3, doc.ActiveView);&lt;BR /&gt;Autodesk.Revit.DB.Reference reference1 = referencePlane1.GetReference();&lt;BR /&gt;ReferencePlane referencePlane2 = doc.Create.NewReferencePlane(rp2point1, rp2point2, rp2point3, doc.ActiveView);&lt;BR /&gt;Autodesk.Revit.DB.Reference reference2 = referencePlane2.GetReference();&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;Dimension dimension = doc.Create.NewAlignment(doc.ActiveView, reference1, reference2);&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;catch&lt;BR /&gt;{&lt;BR /&gt;TaskDialog.Show("Hint", "Create Dimension Failed.");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;catch&lt;BR /&gt;{&lt;BR /&gt;TaskDialog.Show("Hint", "Create Reference Planes Failed.");&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;transaction.Commit();&lt;BR /&gt;return Result.Succeeded;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 08:16:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-dimension-between-two-reference-plane-without/m-p/11841360#M13108</guid>
      <dc:creator>2326751326</dc:creator>
      <dc:date>2023-03-23T08:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dimension between two reference plane without any other elements?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-dimension-between-two-reference-plane-without/m-p/11841441#M13109</link>
      <description>&lt;P&gt;I do not believe that Revit supports dimensioning between non-aligned geometry. Can you achieve that manually in the end user interface? If not, then you cannot do so programmatically either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 08:56:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-dimension-between-two-reference-plane-without/m-p/11841441#M13109</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-03-23T08:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dimension between two reference plane without any other elements?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-dimension-between-two-reference-plane-without/m-p/11849638#M13110</link>
      <description>&lt;P&gt;Of course when we create two reference planes manually in the view, then we can create a dimension by aligned dimension tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But why it hints the two&amp;nbsp;reference planes are not geometrically aligned when we create the alignment dimension by RevitAPI?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 07:03:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-dimension-between-two-reference-plane-without/m-p/11849638#M13110</guid>
      <dc:creator>2326751326</dc:creator>
      <dc:date>2023-03-27T07:03:55Z</dc:date>
    </item>
  </channel>
</rss>

