<?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: To find Reference face to make Dimension in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8413041#M50996</link>
    <description>&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Yes I found that second link a while back, and it helped me debug a solution for auto dimensioning in plan views.&lt;/P&gt;
&lt;P&gt;Not to hijack this topic, but do you know if there's something I need to pay special attention to in section views (or elevation views)? For&amp;nbsp;instance, do dimensions need to lay on the viewplane itself or can it be any other position parallel to the plane? What's the difference between Line.CreateBound and Line.CreateUnbound, and which is more safe?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it helps, I have the same problem with spot elevations.&lt;/P&gt;
&lt;P&gt;I'm running out of guesses and am about to abandon this project, and I'll gladly send you my code if you have some ideas.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2018 11:10:18 GMT</pubDate>
    <dc:creator>Clogboy82</dc:creator>
    <dc:date>2018-11-20T11:10:18Z</dc:date>
    <item>
      <title>To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7920504#M50978</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Going for some auto-place dimensions for curtain walls in a section view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before I'm diving into this matter I try to understand the approach rather than doing random stuff until it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;- curtain walls are empty elements containing grids&lt;/P&gt;&lt;P&gt;- the grids have members (mullions) assigned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Placing a dimension line(s)&lt;/P&gt;&lt;PRE&gt;NewLinearDimension Method (View, Line, ReferenceArray, DimensionType)&lt;/PRE&gt;&lt;P&gt;So I have to&lt;/P&gt;&lt;P&gt;- create a New ReferenceArray().&lt;/P&gt;&lt;P&gt;-&amp;nbsp;feeding that New ReferenceArray:&amp;nbsp;I have to get the References from a curtain wall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get the References from a curtain wall. I can get to a bounding box but that seems a bit irrelavant.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried look at&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp;list of topics, but that seems to point to non-existing posts atm (&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.45" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.45&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help if much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 08:41:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7920504#M50978</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2018-04-10T08:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7920681#M50979</link>
      <description>&lt;P&gt;Dear Joris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good approach!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wish you fruitful research.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 500 'Internal Server Error' reported by The Building Coder list of topic groups is a TypePad issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appeared last night. I hope they fix it soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luckily, I have a backup version of&amp;nbsp;&lt;SPAN&gt;The Building Coder&amp;nbsp;blog on GitHub containing all the blog post sources:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/jeremytammik/tbc" target="_blank"&gt;https://github.com/jeremytammik/tbc&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The topic groups are included in the blog post index:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://jeremytammik.github.io/tbc/a" target="_blank" rel="nofollow"&gt;https://jeremytammik.github.io/tbc/a&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is the topic group you are looking for on the GitHub pages:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://jeremytammik.github.io/tbc/a/#5.45" target="_blank"&gt;http://jeremytammik.github.io/tbc/a/#5.45&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All of the blog posts are also listed in the index.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For each blog post, you have two links:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Blog post title -- The official Typepad link&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Circumflex sign ^ -- The local GitHub pages link&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps, and that the Typepad issue is resolved soon.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 09:54:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7920681#M50979</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-04-10T09:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7921103#M50980</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;, thanks for that alternative url.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still puzzled. But that's probably due lack of in-depth-knowledge and transposing C# to python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it correct if I say that a curtain wall has no obtainable references as&amp;nbsp;one has with regular walls (looking at your wall-examples?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 12:42:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7921103#M50980</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2018-04-10T12:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7921126#M50981</link>
      <description>&lt;P&gt;Can you dimension a curtain wall in the user interface?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do so, do you see&amp;nbsp;the required references in RevitLookup?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do not have RevitLookup installed, you need to do so first!&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>Tue, 10 Apr 2018 12:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7921126#M50981</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2018-04-10T12:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7921194#M50982</link>
      <description>&lt;P&gt;Okay I see where you heading at (I think)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I have lookup (snoop objects FTW!).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So: you say 'reverse engineer' the whole idea. So:&lt;/P&gt;&lt;P&gt;1. place a regular dimension in Revit on the boundary of a curtain wall&lt;/P&gt;&lt;P&gt;2. snoop that dimension line and&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. see what it refers to?&lt;/P&gt;&lt;P&gt;(4. I don't see the required references&amp;nbsp;&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://forums.autodesk.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&amp;nbsp; ... referring to "References")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;(1 hour afk ... not behind pc atm)&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Knipsel2.PNG" style="width: 798px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/486746iAFC8A33D35EFEC5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Knipsel2.PNG" alt="Knipsel2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Knipsel.PNG" style="width: 537px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/486747iAE705DD8E6A851DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Knipsel.PNG" alt="Knipsel.PNG" /&gt;&lt;/span&gt;&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:21:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7921194#M50982</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2018-04-10T13:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7921283#M50983</link>
      <description>&lt;P&gt;Yes, exactly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can see the references, that is good and you need to try to replicate the same situation programmatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you cannot, it might be tricky.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some more hints at reverse engineering to solve a Revit API programming task:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-ontology.html#3" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-ontology.html#3&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>Tue, 10 Apr 2018 13:40:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7921283#M50983</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-04-10T13:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7921391#M50984</link>
      <description>&lt;P&gt;Thanks Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah it will be tricky. But I'm up for a challenge. docs are in C#, dynamo uses python. I not that familiar with either of 'm, but now I have to translate c# to python ... but&amp;nbsp; doing a lot of research, googling, revitapidocs, python/dynamo to get to my solution. First understanding how it's actually done, then the c# approach / python comes next.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First a coffee,&amp;nbsp;time for a&amp;nbsp;fresh mindset-kick!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 14:08:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7921391#M50984</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2018-04-10T14:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7925030#M50985</link>
      <description>&lt;P&gt;Okay, I need some help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimensioning a curtain wall in revit is dimensioning the 'shape handle' line of a curtain wall. A continuous line.&lt;/P&gt;&lt;P&gt;That line doesn't seem to be reachable through api.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or I think, it's not reachable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm trying:&lt;/P&gt;&lt;P&gt;- dimension has the reference of an elementReferenceType "Reference_type_surface".&lt;/P&gt;&lt;P&gt;- so if I can get to the ElementReferenceType of a curtainwall, I'm a bit further.&lt;/P&gt;&lt;P&gt;- .... and now the silence comes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The curtain wall (Wall Type) gives me one plausable option and that seems to be curtaingrid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;for&amp;nbsp;t&amp;nbsp;in&amp;nbsp;wallinputlist:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp;t1 = t.CurtainGrid.NumULines&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp;t2 = t.get_Geometry
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#h = t.get_Geometry.Faces&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#g = t.CurtainGrid.NumVLines
OUT = t1,t2&lt;/PRE&gt;&lt;P&gt;t2 gives me: IronPython.Runtime.Types.BuiltinFunction ... unknown stuff for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;get_Geometry seems being used by many, but searching on revit api ... no results. ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm confused.&lt;/P&gt;&lt;P&gt;1. why get_Geometry is working&lt;/P&gt;&lt;P&gt;2. getting reference from a curtainwall.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:49:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7925030#M50985</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2018-04-11T14:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7925815#M50986</link>
      <description>&lt;P&gt;Look at this quite old discussion by The Building Coder on retrieving curtain wall geometry:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/05/curtain-wall-geometry.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2010/05/curtain-wall-geometry.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to set the option to true:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="code"&gt;IncludeNonVisibleObjects&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That adds additional subcomponents which are otherwise skipped.&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>Wed, 11 Apr 2018 18:23:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7925815#M50986</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-04-11T18:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7926091#M50987</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;, I did 'study' that post quite a few times now. And thanks for your suggestions, again: much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I slowly understand how things are build.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some progress I made:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(sorry again: python coding)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IN[1] is a list with curtain walls.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;elements = UnwrapElement(IN[1])
opt = Options()
opt.ComputeReferences = True
opt.IncludeNonVisibleObjects = True
opt.View = doc.ActiveView&lt;/PRE&gt;&lt;P&gt;going through a loop of e in elements&amp;nbsp;and asking for&amp;nbsp;e.get_Geometry(opt) I'm getting a bunch of&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Autodesk.Revit.DB.Line (Numerous)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Autodesk.Revit.DB.Solid (6x) (why 6? front back top bottom left right???)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To my logic, it seems that Solid is the way to go, so filtering that one to.... resulting in one list with 6 Autodesk.Revit.DB.Solid values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I think I have to get the faces of them,&amp;nbsp;then I'm guessing checking the planar of 'm, in order to get to the DB.Reference of them.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Your thoughts? Am I on the right path?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(oh and btw.... asking for e.get_Geometry(opt).Faces returns an empty list)..... grrrr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 20:29:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7926091#M50987</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2018-04-11T20:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7926980#M50988</link>
      <description>&lt;P&gt;In follow up of my last reply:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im using the solids now ... using that I'm able to get the "Faces" of the Solid. This gives me a list of Autodesk.Revit.DB.PlanarFace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fun fact (atleast to me): the 6 Solids are reduced to&amp;nbsp;5 Faces (4 PlanarFaces, 1 empty result). ... strange.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now requesting the References of those PlanarFaces ... result: 5 Autodesk.Revit.DB.References ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next step: checking if those references are paralel? so they can be used for the ReferenceArray (dimension)?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 07:37:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7926980#M50988</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2018-04-12T07:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7927700#M50989</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, I'm getting places! Did some comparising with the Planes, DotProduct and can place some dimensions now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However:&lt;/P&gt;&lt;P&gt;the line parameter in "&lt;SPAN&gt;NewDimension&lt;/SPAN&gt;(doc.ActiveView, line, elementsRef)" : can I skip that and use a 'imaginairy line' instead?&lt;/P&gt;&lt;P&gt;So instead of using a line which has a geocurve: I want to do: "bottom plane, offset 1000" for horizontal dimension, "right plane, offset 1000" for vertical dimension. Two seperate loops ofcourse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 12:21:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7927700#M50989</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2018-04-12T12:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7927744#M50990</link>
      <description>&lt;P&gt;The API should enable you to create the same dimensioning as you can achieve manually through the UI... can you achieve what you require through the user interface?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 12:38:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7927744#M50990</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-04-12T12:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7927756#M50991</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, this is how it goes now:&lt;/P&gt;&lt;P&gt;- manual select a revit-line (horizontal)&lt;/P&gt;&lt;P&gt;- run code&lt;/P&gt;&lt;P&gt;--- code gets geometrycurve from that line,&lt;/P&gt;&lt;P&gt;- dimension is placed at that revit-line location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'd like to just place a dimension at an offset of 'x' ... no need to manually select a revit-line&amp;nbsp; ... does that make sense?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 12:43:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/7927756#M50991</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2018-04-12T12:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8410225#M50992</link>
      <description>&lt;P&gt;Interesting topic. I know it's 'a bit old' but still up to date.&lt;/P&gt;&lt;P&gt;I'm also busy doing something similar. So far I have this (going by mullions but panels should work equally well):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        private void PeilMaten(Wall wall)
        {
            Richting richting = Richting.horizontaal;
            List&amp;lt;Face&amp;gt; faces = ValidFaces(wall, richting);

            BoundingBoxXYZ bb = wall.get_BoundingBox(doc.ActiveView);
            Reference r;

            if (faces != null)
            {
                foreach (Face fa in faces)
                {
                    foreach (EdgeArray ea in fa.EdgeLoops)
                    {
                        foreach (Edge e in ea)
                        {
                            XYZ pt = e.AsCurve().GetEndPoint(0);

                            if (pt.Z == bb.Min.Z || pt.Z == bb.Max.Z)
                            {
                                r = e.GetEndPointReference(0);

                                doc.Create.NewSpotElevation(doc.ActiveView, r, bb.Min, bb.Min, bb.Min, bb.Min, true);
                                //break;
                            }
                        }
                    }
                }
            }
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since in this case I'm only interested in the top and bottom of the curtain wall, I'm going for the top- and bottom most mullion faces. I already have gathered the up- and down facing mullion faces using this method:&lt;/P&gt;&lt;PRE&gt;        List&amp;lt;Face&amp;gt; ValidFaces(Wall wall, Richting richting)
        {
            FilteredElementCollector mullions = new FilteredElementCollector(doc, wall.CurtainGrid.GetMullionIds())
                            .OfCategory(BuiltInCategory.OST_CurtainWallMullions);

            Options options = new Options();
            options.ComputeReferences = true;
            options.View = doc.ActiveView;
            options.IncludeNonVisibleObjects = true;

            List&amp;lt;Face&amp;gt; validFaces = new List&amp;lt;Face&amp;gt;();
            foreach (Mullion m in mullions)
            {
                if ((richting == Richting.horizontaal &amp;amp;&amp;amp; m.LocationCurve.GetEndPoint(0).Z == m.LocationCurve.GetEndPoint(1).Z)
                    || (richting == Richting.verticaal &amp;amp;&amp;amp; m.LocationCurve.GetEndPoint(0).Z != m.LocationCurve.GetEndPoint(1).Z))
                {
                    GeometryElement ge = m.get_Geometry(options);

                    foreach (GeometryInstance gi in ge)
                    {
                        GeometryElement ige = gi.GetInstanceGeometry();

                        foreach (GeometryObject igo in ige)
                        {
                            Solid s = igo as Solid;

                            if (s != null)
                            {
                                FaceArray faces = s.Faces;

                                foreach (Face fa in faces)
                                {
                                    if ((richting == Richting.horizontaal &amp;amp;&amp;amp; fa.ComputeNormal(new UV(0, 0)).Z != 0)
                                        || (richting == Richting.verticaal &amp;amp;&amp;amp; fa.ComputeNormal(new UV(0, 0)).Z == 0))
                                    {
                                        validFaces.Add(fa);
                                    }
                                }
                            }
                        }
                    }
                }
            }

            return validFaces;
        }
    }&lt;/PRE&gt;&lt;P&gt;I found this works best in InstanceGeometry, otherwise I get an invalid reference exception.&lt;/P&gt;&lt;P&gt;"Richting" (direction) is an enum object I made myself to distinct between horizontal and vertical direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The short result is I&amp;nbsp;don't trigger an exception when I extract the reference from an edge in&amp;nbsp;the face's EdgeArrayArray. Unfortunately, when I place this spotdimension it's not visible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the face's reference, I get an exception saying that the Spot Dimension doesn't lie on its reference, not even when I only place it for bb.Min.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 11:30:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8410225#M50992</guid>
      <dc:creator>Clogboy82</dc:creator>
      <dc:date>2018-11-19T11:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8410298#M50993</link>
      <description>&lt;P&gt;Forgot to mention that the Globalpoint of the reference is null... however its type is also linear so I don't know if that's a big deal but it bothers me.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 12:07:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8410298#M50993</guid>
      <dc:creator>Clogboy82</dc:creator>
      <dc:date>2018-11-19T12:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8412930#M50994</link>
      <description>&lt;P&gt;OK it is obvious to me now that the&amp;nbsp;spot elevation is being generated, but it just won't show up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope the code I posted is of use regarding other issues in this thread.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 10:03:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8412930#M50994</guid>
      <dc:creator>Clogboy82</dc:creator>
      <dc:date>2018-11-20T10:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8412939#M50995</link>
      <description>&lt;P&gt;Interesting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are two other cases of dimensions not being displayed:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/new-dimension-are-not-visible/m-p/8119035" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/new-dimension-are-not-visible/m-p/8119035&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/copy-dimensions-from-a-view-to-another/m-p/7226217" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/copy-dimensions-from-a-view-to-another/m-p/7226217&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&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>Tue, 20 Nov 2018 10:10:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8412939#M50995</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-11-20T10:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8413041#M50996</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Yes I found that second link a while back, and it helped me debug a solution for auto dimensioning in plan views.&lt;/P&gt;
&lt;P&gt;Not to hijack this topic, but do you know if there's something I need to pay special attention to in section views (or elevation views)? For&amp;nbsp;instance, do dimensions need to lay on the viewplane itself or can it be any other position parallel to the plane? What's the difference between Line.CreateBound and Line.CreateUnbound, and which is more safe?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it helps, I have the same problem with spot elevations.&lt;/P&gt;
&lt;P&gt;I'm running out of guesses and am about to abandon this project, and I'll gladly send you my code if you have some ideas.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 11:10:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8413041#M50996</guid>
      <dc:creator>Clogboy82</dc:creator>
      <dc:date>2018-11-20T11:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: To find Reference face to make Dimension</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8413172#M50997</link>
      <description>&lt;P&gt;Well, in that case, don't just send the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Submit a complete self-contained minimal reproducible case instead for the development team to take a look at:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They might have a suggestion for you or spot a problem, either in the API usage or internals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&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>Tue, 20 Nov 2018 12:03:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/to-find-reference-face-to-make-dimension/m-p/8413172#M50997</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-11-20T12:03:40Z</dc:date>
    </item>
  </channel>
</rss>

