Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KellerAndrew committed Apr 20, 2019
1 parent 1d0eb8f commit aed0ff6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
19 changes: 16 additions & 3 deletions articles/elements.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
Dealing With Elements
---------------------
=====================

.. toctree::
:maxdepth: 2
:hidden:
:caption: Dealing With Elements
:caption: Dealing With Elements


``elementId to element``
^^^^^^^^^^^^^^^^^^^^^^^^
.. code-block:: python
##where doc = __revit__.ActiveUIDocument.Document
element = doc.GetElement(elementId)

``Element to ElementId``
^^^^^^^^^^^^^^^^^^^^^^^^
.. code-block:: python
elementId = element.Id
5 changes: 2 additions & 3 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ PyRevit Snippets
Just some samples of code I use in PyRevit. Your miles may vary.

* :doc:`articles/elements`
* :doc:`articles/lists`


.. toctree::
:maxdepth: 2
:caption: Contents:


articles/elements.rst


Indices and tables
Expand Down

0 comments on commit aed0ff6

Please sign in to comment.