Files
2024-12-12 09:51:40 +01:00

48 lines
4.0 KiB
Plaintext

{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
\viewkind4\uc1\pard\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 DirectionCalculation\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 2011.0\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Advanced\line\b Category:\b0 Geometry\f1\par
\b\f0 Type:\b0 ExternalCommand\line\line\b Subject:\b0 \par
Identify orientation of building elements\par
\par
\b Summary:\b0 \line Find all windows and exterior walls that face the south direction.\b\par
\par
Classes:\b0 \par
Autodesk.Revit.DB.FilteredElementCollector\par
Autodesk.Revit.DB.Location\par
Autodesk.Revit.DB.ElementClassFilter\par
Autodesk.Revit.DB.ElementCategoryFilter\par
Autodesk.Revit.DB.Transform\par
Autodesk.Revit.UI.Selection.Selection\b\par
\par
Project Files:\par
\b0 FindSouthFacing.cs\par
FindSouthFacingWalls.cs\par
FindSouthFacingWindows.cs\par
\par
\b Description:\b0 \par
South Facing Walls \par
\pard\ltrpar\nowidctlpar\fi-360\li720 1.\tab Find the exterior walls using the wall type\rquote s Function parameter\par
2.\tab The vector that describes the wall\rquote s direction is calculated using the wall\rquote s location curve\par
\pard\ltrpar\nowidctlpar\fi-360\li1440 a.\tab If the \lang1024 the active project location's north/south direction is being used, transform the wall\rquote s direction vector by the rotation angle of the ActiveProjectLocation.\lang1033\par
\lang1024 b.\tab Otherwise use the default coordinate system's Y-axis which represents the north/south direction\lang1033\par
\pard\ltrpar\nowidctlpar\fi-360\li720\lang1024 3.\tab Determine if the wall\rquote s direction vector is \ldblquote south-facing\rdblquote by checking if it is within a range of -45 degrees to 45 degrees from the south vector\lang1033\par
\pard\ltrpar\nowidctlpar\b\par
\b0 South Facing Windows\par
\pard\ltrpar\nowidctlpar\fi-360\li720 1.\tab Find all windows (elements that belong to the FamilyInstance class and the OST_Windows built in category\par
2.\tab Get the direction of each window. This can be done with the transform of each window instance and the values of the FacingFlipped and HandFlipped properties. Alternatively, the FacingOrientation property can be used.\par
\pard\ltrpar\nowidctlpar\fi-360\li1440 a.\tab If the \lang1024 the active project location's north/south direction is being used, transform the window\rquote s direction vector by the rotation angle of the ActiveProjectLocation.\lang1033\par
\lang1024 b.\tab Otherwise use the default coordinate system's Y-axis which represents the north/south direction\lang1033\par
\pard\ltrpar\nowidctlpar\fi-360\li720\lang1024 3.\tab Determine if the window\rquote s direction vector is \ldblquote south-facing\rdblquote by checking if it is within a range of -45 degrees to 45 degrees from the south vector\lang1033\par
\pard\ltrpar\nowidctlpar\b\par
Instructions:\b0 \par
\pard\ltrpar\nowidctlpar\fi-360\li720\tx360 1.\tab Open FindSouthFacing.rvt\par
\pard\ltrpar\nowidctlpar\fi-360\li720 2.\tab Run external command \ldblquote South Facing Walls Without ProjectLocation\rdblquote\par
3.\tab The walls that face south (without regard to the project\rquote s location) are selected\par
\pard\ltrpar\nowidctlpar\fi-360\li720\tx360 4.\tab Run external command \ldblquote South Facing Walls With ProjectLocation\rdblquote\par
\pard\ltrpar\nowidctlpar\fi-360\li720 5.\tab The walls that face south (with regard to the project\rquote s location) are selected\par
6.\tab Run external command \ldblquote South Facing Windows Without ProjectLocation\rdblquote\par
\pard\ltrpar\nowidctlpar\fi-360\li720\tx360 7.\tab The windows that face south (without regard to the project\rquote s location) are selected\par
8.\tab Run external command \ldblquote South Facing Windows With ProjectLocation\rdblquote\par
9.\tab The windows that face south (with regard to the project\rquote s location) are selected\par
\pard\ltrpar\nowidctlpar\li360\tx360\par
}