<?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: dimension a mullion in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/dimension-a-mullion/m-p/8537669#M44866</link>
    <description>&lt;P&gt;ok, ok, interesting&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2083518"&gt;@FAIR59&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So no GetInstanceGeometry but rather use GetSymbolGeometry.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I need the Transform at all?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jan 2019 14:37:38 GMT</pubDate>
    <dc:creator>Joris.vd.Meulen</dc:creator>
    <dc:date>2019-01-21T14:37:38Z</dc:date>
    <item>
      <title>dimension a mullion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dimension-a-mullion/m-p/8525667#M44862</link>
      <description>&lt;P&gt;So, again puzzled. Sort me out please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Goal: dimension a horizontal mullion in a section view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Approach:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;get plane of active view
&lt;OL&gt;
&lt;LI&gt;get normal of that plane&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;get mullion (or mullions for that matter)
&lt;OL&gt;
&lt;LI&gt;get faces of that mullion&lt;/LI&gt;
&lt;LI&gt;get normals of those faces&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;check if facenormal is perpendicular to refview (refview.CrossProduct(facenormal))
&lt;OL&gt;
&lt;LI&gt;for each of the 6 faces of that mullion check with refview&lt;/LI&gt;
&lt;LI&gt;is the .x is -1: it is okay
&lt;OL&gt;
&lt;LI&gt;if okay: get reference of that normal.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;create a line for dim function
&lt;OL&gt;
&lt;LI&gt;since it's a vertical dimension line I'm placing: .x is static, .z differs:&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;startpoint = XYZ(10, review.Y, 0)&lt;/LI&gt;
&lt;LI&gt;endpoint = XYZ(10, review.Y, 10)&lt;/LI&gt;
&lt;LI&gt;value 0 and 10 dont matter I believe as long as it's different!?&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;dim&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somehow I think I'm totally doing it wrong. I don't have a clear understanding of getting the correct references.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. 6 faces so 6 references. 2 horizontal, 2 parrallel, 2 vertical.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. the 2 horizontal I must have.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I overthinking it? Total brainfart here atm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3Pinter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 07:38:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dimension-a-mullion/m-p/8525667#M44862</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2019-01-16T07:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: dimension a mullion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dimension-a-mullion/m-p/8528897#M44863</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Joris,&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;Thank you for your query.&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;Sorry to hear you are struggling so.&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;Is this a continuation of your previous thread that was escalated to ADN SFDC case &lt;STRONG&gt;&lt;U&gt;14127447&lt;/U&gt;&lt;/STRONG&gt; [dimensioning curtain wall mullions], or different?&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;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/dimensioning-curtain-wall-mullions/m-p/7935535" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/dimensioning-curtain-wall-mullions/m-p/7935535&lt;/A&gt;&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;If so, I'm sorry that was not resolved back then.&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;This does not sound all that hard, if you have access to all those surfaces with their normals and references.&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;Have you looked at the two old blog posts on dimensioning parallel walls and the other discussion in The Building Coder topic group on creating dimensioning?&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;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.45" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.45&lt;/A&gt;&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;Can you provide a minimal reproducible case including a sample model, preferably containing one single mullion, if that is enough to demonstrate the problem?&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;Could you also add an image showing what your goal is, maybe including the manually generated dimensioning?&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;Maybe then I can take a look at it for you.&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;I hope this helps.&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;Best regards,&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;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 07:26:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dimension-a-mullion/m-p/8528897#M44863</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-01-17T07:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: dimension a mullion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dimension-a-mullion/m-p/8537353#M44864</link>
      <description>&lt;P&gt;Hi &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;In a way it is and no need to be sorry for that unsolved topic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I started a new topic because I need understand things first before stepping up the game. And I don't get it ... yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;References from a wall: I can do.&lt;/P&gt;
&lt;P&gt;References from a gridline: I can do.&lt;/P&gt;
&lt;P&gt;References from a mullion: struggling somehow. Due hard time understanding references compared to normals etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Python code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        hline_direction =&amp;nbsp;&lt;SPAN&gt;XYZ&lt;/SPAN&gt;(&lt;SPAN&gt;10&lt;/SPAN&gt;,&lt;SPAN&gt;0&lt;/SPAN&gt;,&lt;SPAN&gt;0&lt;/SPAN&gt;)&lt;BR /&gt;        mullionids = wall.CurtainGrid.GetMullionIds()
	refArray_h_mullion = ReferenceArray()
	
	
	for mullionid in mullionids:		
		mullion = doc.GetElement(mullionid)
		
		tt = mullion.get_Geometry(options)
	
		for obj in tt:
			a = obj.GetInstanceGeometry()
			for i in a:								
				for f in i.Faces:
					
					try:
						faceNormal = f.FaceNormal
						
						if isParallel(faceNormal,hline_direction):  
							refArray_h_mullion.Append(f.Reference)
					except:
						pass&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this for the mullions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a curtain wall with 1 Vgrid will return 7 mullions, each with the obvious 6 faces.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the isParallel I get 2 faceNormals per face ... which is good I think.&lt;/P&gt;
&lt;P&gt;Downside: I get 7x2correct references so 14 references.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I dim refArray_h_mullion nothing happens.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where am I going wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 13:21:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dimension-a-mullion/m-p/8537353#M44864</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2019-01-21T13:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: dimension a mullion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dimension-a-mullion/m-p/8537563#M44865</link>
      <description>&lt;P&gt;This question may be of interest:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/generated-dimension-and-spot-elevation-not-visible/m-p/8418734" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/generated-dimension-and-spot-elevation-not-visible/m-p/8418734&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:03:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dimension-a-mullion/m-p/8537563#M44865</guid>
      <dc:creator>FAIR59</dc:creator>
      <dc:date>2019-01-21T14:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: dimension a mullion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dimension-a-mullion/m-p/8537669#M44866</link>
      <description>&lt;P&gt;ok, ok, interesting&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2083518"&gt;@FAIR59&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So no GetInstanceGeometry but rather use GetSymbolGeometry.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I need the Transform at all?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:37:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dimension-a-mullion/m-p/8537669#M44866</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2019-01-21T14:37:38Z</dc:date>
    </item>
  </channel>
</rss>

