<?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: Filter if Pipes are Vertical? in Revit MEP Forum</title>
    <link>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/12366859#M19364</link>
    <description>&lt;P&gt;Please post the rest of the graph. You might be miswiring the IN[2] input (should be pulling from All Elements of Category) but I can't tell without the rest.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2023 20:21:43 GMT</pubDate>
    <dc:creator>RLY_15</dc:creator>
    <dc:date>2023-11-09T20:21:43Z</dc:date>
    <item>
      <title>Filter if Pipes are Vertical?</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/10996717#M19359</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my office, I am required to show the pipe/rise drop symbols both solid, and as a finer line weight than the piping system in many cases. For example, vent piping is shown as a hidden line and a thinner weight than sanitary or storm piping, and the rise/drop symbol takes on that pattern if I assign the piping system a hidden override, or if I assign the system abbreviation a filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current solution is a yes/no parameter that allows me to determine if an instance of a pipe is vertical or not, and filtering by that. I don't know the first thing about Dynamo really, but it seems to me that I should be able to somehow sort by the Top Elevation, Middle Elevation, and Bottom Elevation parameters if not by the Slope Parameter. In pseudo-boolean terms, something like this;&lt;BR /&gt;&lt;BR /&gt;"if(Top Elevation = Middle Elevation) or(Middle Elevation = Bottom Elevation)", check "Pipe is Vertical". I just want to automate this process as with large scale buildings, my current method is extremely tedious. Does anyone have a solution&amp;nbsp; to this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 15:28:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/10996717#M19359</guid>
      <dc:creator>shicksMRENG</dc:creator>
      <dc:date>2022-03-10T15:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter if Pipes are Vertical?</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/10997324#M19360</link>
      <description>&lt;P&gt;You could use Dynamo to select all conduit in your project and get the curve (center line) of each conduit. Then get the start and end point of each curve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If both the 'x' and 'y' values are the same for the curve then you know that segment of conduit is vertical.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could then apply a value to a parameter or use a yes/no parameter like you mentioned.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 19:34:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/10997324#M19360</guid>
      <dc:creator>djforemandesign</dc:creator>
      <dc:date>2022-03-10T19:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter if Pipes are Vertical?</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/10997381#M19361</link>
      <description>&lt;P&gt;Here is a basic example of what you could do.&amp;nbsp; I'm selecting all the conduit in the current project. Then comparing the start and end points (x and y values) to see if they are the same. If they are then I add "Vertical" to the Comment parameter and if they aren't I add "Horizontal" to the Comment parameter.&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-center" image-alt="Vertical Conduit Example - 3D.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1034888i6A4BA72526E812DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vertical Conduit Example - 3D.PNG" alt="Vertical Conduit Example - 3D.PNG" /&gt;&lt;/span&gt;&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-center" image-alt="Vertical Conduit Example.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1034889i68F64AD088B2ABF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vertical Conduit Example.png" alt="Vertical Conduit Example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Vertical Conduit Example - Python.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1034890i621E7BC9AD447965/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vertical Conduit Example - Python.PNG" alt="Vertical Conduit Example - Python.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I personally used a Python node though its more advanced for a beginner (unless you are already familiar with Python), but it was quicker for me to do that then to use the nodes to do the same thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the Python code if you want to copy/paste.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Load the Python Standard and DesignScript Libraries
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

# The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN

strpts = IN[0]
endpts = IN[1]
con_element = IN[2]

list_check = []

# Place your code below this line
q = 0
for point_1 in strpts:
	str_x = round(point_1.X,10)
	str_y = round(point_1.Y,10)
	end_x = round(endpts[q].X,10)
	end_y = round(endpts[q].Y,10)
	if str_x == end_x and str_y == end_y:
		list_check.append("VERTICAL")
		con_element[q].SetParameterByName("Comments","VERTICAL")
		q += 1
	else:
		list_check.append("HORIZONTAL")
		con_element[q].SetParameterByName("Comments","HORIZONTAL")
		q += 1
	
# Assign your output to the OUT variable.
OUT = list_check&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 20:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/10997381#M19361</guid>
      <dc:creator>djforemandesign</dc:creator>
      <dc:date>2022-03-10T20:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filter if Pipes are Vertical?</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/11694273#M19362</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ssemashka_0-1674241441655.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1165211i4A22E762D5571EEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ssemashka_0-1674241441655.png" alt="ssemashka_0-1674241441655.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 19:04:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/11694273#M19362</guid>
      <dc:creator>ssemashka</dc:creator>
      <dc:date>2023-01-20T19:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filter if Pipes are Vertical?</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/12366806#M19363</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when attempting to run this, the following error appears:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayHagan_0-1699559572867.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1291014i2D220103AE01A038/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayHagan_0-1699559572867.png" alt="JayHagan_0-1699559572867.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI, am a newbie when it concerns these programs.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 19:53:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/12366806#M19363</guid>
      <dc:creator>JayHagan</dc:creator>
      <dc:date>2023-11-09T19:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filter if Pipes are Vertical?</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/12366859#M19364</link>
      <description>&lt;P&gt;Please post the rest of the graph. You might be miswiring the IN[2] input (should be pulling from All Elements of Category) but I can't tell without the rest.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 20:21:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/12366859#M19364</guid>
      <dc:creator>RLY_15</dc:creator>
      <dc:date>2023-11-09T20:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter if Pipes are Vertical?</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/12366885#M19365</link>
      <description>&lt;P&gt;Here is the Graph.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayHagan_0-1699561918902.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1291023i6ADBC22878C51DF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayHagan_0-1699561918902.png" alt="JayHagan_0-1699561918902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 20:32:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/12366885#M19365</guid>
      <dc:creator>JayHagan</dc:creator>
      <dc:date>2023-11-09T20:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter if Pipes are Vertical?</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/12366942#M19366</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robert2JCCH_0-1699563173884.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1291035iD0321697BB438429/image-size/medium?v=v2&amp;amp;px=400" role="button" title="robert2JCCH_0-1699563173884.png" alt="robert2JCCH_0-1699563173884.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 20:53:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/12366942#M19366</guid>
      <dc:creator>RLY_15</dc:creator>
      <dc:date>2023-11-09T20:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filter if Pipes are Vertical?</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/12366947#M19367</link>
      <description>&lt;P&gt;Awesome,&amp;nbsp; Thank-you that worked.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 20:54:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/filter-if-pipes-are-vertical/m-p/12366947#M19367</guid>
      <dc:creator>JayHagan</dc:creator>
      <dc:date>2023-11-09T20:54:54Z</dc:date>
    </item>
  </channel>
</rss>

