Skip to content

Commit

Permalink
Merge pull request #3 from PawelKinczyk/feature
Browse files Browse the repository at this point in the history
Feature
  • Loading branch information
PawelKinczyk authored Nov 23, 2022
2 parents 48583ff + 6bf9129 commit e4d7a46
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from rpw.ui.forms import TextInput
from Autodesk.Revit.UI.Selection import *
from Autodesk.Revit.DB import *
from pyrevit import DB, forms
from pyrevit import forms

doc = revit.doc
uidoc = revit.uidoc
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Bypass
tooltip: Create pipe bypass. Tested on Revit 2021 and 2022 |
icon from icons8.com/icon/85935/question-mark
author: Pawel Kinczyk
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Autodesk
import clr
import pyrevit

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def Pargetstr(element, name):
try:
for i in collector:
print("====")
print("Model element "+str(i.ElementId))
print("Model element Id "+str(i.ElementId))
el=doc.GetElement(i.ElementId)
print((Pargetstr(el, "Family and Type")))
except:
Expand All @@ -41,7 +41,7 @@ def Pargetstr(element, name):
el=doc.GetElement(i.ElementId)
linkdoc=el.GetLinkDocument()
el=linkdoc.GetElement(i.LinkedElementId)
print("Linked element "+str(i.ElementId))
print("Linked element Id "+str(i.LinkedElementId))
print((Pargetstr(el, "Family and Type")))
except Exception as e:
# print(e)
Expand Down
1 change: 1 addition & 0 deletions PYLAB.extension/PYLAB.tab/Functions.Panel/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ layout:
- -----
- AddIns
- -----
# - Bypass

0 comments on commit e4d7a46

Please sign in to comment.