-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
066e637
commit 7c5a20e
Showing
4 changed files
with
105 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Collecting all the (relevant) things! | ||
===================================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Collecting...things | ||
|
||
|
||
|
||
``Find all elements of a type in active view`` | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
OfClass docs: | ||
|
||
http://www.revitapidocs.com/2018.1/b0a5f22c-6951-c3af-cd29-1f28f574035d.htm | ||
|
||
Autodesk.Revit.DB Namespace, for categories to be filtered: | ||
|
||
http://www.revitapidocs.com/2018.1/87546ba7-461b-c646-cbb1-2cb8f5bff8b2.htm | ||
|
||
|
||
.. code-block:: python | ||
##Where doc = __revit__.ActiveUIDocument.Document | ||
elementList = DB.FilteredElementCollector(doc, selected_view.Id)\ | ||
.OfClass(DB.IndependentTag)\ | ||
.ToElements() | ||
|
||
Another collecting walls: | ||
|
||
.. code-block:: python | ||
collector = FilteredElementCollector(doc)\ | ||
.OfCategory(BuiltInCategory.OST_Walls)\ | ||
.WhereElementIsNotElementType()\ | ||
.ToElements() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Locations, Coordinates, Levels | ||
============================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Locations, Coordinates, Levels | ||
|
||
|
||
|
||
``Location of point elements`` | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. code-block:: python | ||
##Grabbing Min and Max points of a crop box | ||
maxXYZ = revit.activeview.CropBox.Max | ||
minXYZ = revit.activeview.CropBox.Min | ||
##http://www.revitapidocs.com/2018.1/c2fd995c-95c0-58fb-f5de-f3246cbc5600.htm | ||
##individual double for each coord | ||
minX = minXYZ.X | ||
minY = minXYZ.Y | ||
minZ = minXYZ.Z | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters