<?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: Problems automatically adding dimensions from a wall edge to opening edge (2022) in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/problems-automatically-adding-dimensions-from-a-wall-edge-to/m-p/12383920#M8599</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Options options = new Options();
options.ComputeReferences = true;
options.IncludeNonVisibleObjects = true;
options.View = activeView;

GeometryElement wallGeometry = wall.get_Geometry(options);
foreach (GeometryObject geomObj in wallGeometry)
{
    if (geomObj is Solid solid)
    {
        foreach (Face face in solid.Faces)
        {&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;, I used the above options and the beginning of a for loop above to iterate faces.&amp;nbsp; It's able to get the main wall faces (ends, tops and bottoms, exterior and interior) but once it starts iterating faces created by openings, the references aren't good anymore.&amp;nbsp; Attempting to use .ConvertToStableReference (just to print to a TaskDialog to test) for those faces returns an error, and doc.Create.NewDimension doesn't recognize them as valid references (it does recognize the aforementioned main wall faces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ALL references can be put into a ReferenceArray just fine, it just seems some are invalid.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 18:20:47 GMT</pubDate>
    <dc:creator>ehall8CEK4</dc:creator>
    <dc:date>2023-11-20T18:20:47Z</dc:date>
    <item>
      <title>Problems automatically adding dimensions from a wall edge to opening edge (2022)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/problems-automatically-adding-dimensions-from-a-wall-edge-to/m-p/12381529#M8597</link>
      <description>&lt;P&gt;I'm running into some problems with my revit plugin that doesn't seem to have a straightforward answer within the API.&amp;nbsp; I'd like to automatically dimension the edge of a wall and the edge of an opening within an elevation view with a click of a button, but the method I first used doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried iterating through the faces of the wall, seeing which ones were facing the right direction, and adding their .Reference to a ReferenceArray, but faces created by openings don't return References that way.&amp;nbsp; I'm not seeing anything within the API related to openings and any references they might return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently writing in C# for Revit 2022 with the intention to port to later versions.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 13:35:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/problems-automatically-adding-dimensions-from-a-wall-edge-to/m-p/12381529#M8597</guid>
      <dc:creator>ehall8CEK4</dc:creator>
      <dc:date>2023-11-16T13:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problems automatically adding dimensions from a wall edge to opening edge (2022)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/problems-automatically-adding-dimensions-from-a-wall-edge-to/m-p/12383167#M8598</link>
      <description>&lt;P&gt;How did yoiu obtain the opening geometry to iterate over the faces? If you call get_Geometry with the Options.ComputeReferences set to true, the geometry elements should come equipped with references that you can use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 04:03:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/problems-automatically-adding-dimensions-from-a-wall-edge-to/m-p/12383167#M8598</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-11-17T04:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problems automatically adding dimensions from a wall edge to opening edge (2022)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/problems-automatically-adding-dimensions-from-a-wall-edge-to/m-p/12383920#M8599</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Options options = new Options();
options.ComputeReferences = true;
options.IncludeNonVisibleObjects = true;
options.View = activeView;

GeometryElement wallGeometry = wall.get_Geometry(options);
foreach (GeometryObject geomObj in wallGeometry)
{
    if (geomObj is Solid solid)
    {
        foreach (Face face in solid.Faces)
        {&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;, I used the above options and the beginning of a for loop above to iterate faces.&amp;nbsp; It's able to get the main wall faces (ends, tops and bottoms, exterior and interior) but once it starts iterating faces created by openings, the references aren't good anymore.&amp;nbsp; Attempting to use .ConvertToStableReference (just to print to a TaskDialog to test) for those faces returns an error, and doc.Create.NewDimension doesn't recognize them as valid references (it does recognize the aforementioned main wall faces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ALL references can be put into a ReferenceArray just fine, it just seems some are invalid.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 18:20:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/problems-automatically-adding-dimensions-from-a-wall-edge-to/m-p/12383920#M8599</guid>
      <dc:creator>ehall8CEK4</dc:creator>
      <dc:date>2023-11-20T18:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problems automatically adding dimensions from a wall edge to opening edge (2022)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/problems-automatically-adding-dimensions-from-a-wall-edge-to/m-p/12388577#M8600</link>
      <description>&lt;P&gt;Do you have any solutions or recommendations for how I should go about fixing this problem?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 13:23:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/problems-automatically-adding-dimensions-from-a-wall-edge-to/m-p/12388577#M8600</guid>
      <dc:creator>ehall8CEK4</dc:creator>
      <dc:date>2023-11-20T13:23:18Z</dc:date>
    </item>
  </channel>
</rss>

