Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Flip Workplane to Flip Tool #1537

Merged
merged 25 commits into from
May 31, 2022
Merged

Add Flip Workplane to Flip Tool #1537

merged 25 commits into from
May 31, 2022

Conversation

MatthewBoynton
Copy link

Can we add flip workplane to the flip tool so that in can flip the plane for hosted elements?
There's a dynamo forum page on it - [https://forum.dynamobim.com/t/flip-work-plane-equivalent/7354/10]. This code is the one I'm asking to convert to pyRevit:

import clr

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)

clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import *

def tolist(obj1):
if hasattr(obj1,"iter"): return obj1
else: return [obj1]

elems = tolist(UnwrapElement(IN[0]))
bools = tolist(IN[1])
TransactionManager.Instance.EnsureInTransaction(doc)
for elem,b in zip(elems, bools):
elem.IsWorkPlaneFlipped = b
TransactionManager.Instance.TransactionTaskDone()

github-actions bot and others added 25 commits February 9, 2022 17:51
…le view types (#1479)

* update the revit selection to the max value for an int32 so that the selection is changed to nothing. other values considered include 0, which selects the project phase information, which i don't believe is supposed to be selectable, and may cause more confusion than it's worth.

* add compatible view types and change text of create button when unable to create pattern
* update the revit selection to the max value for an int32 so that the selection is changed to nothing. other values considered include 0, which selects the project phase information, which i don't believe is supposed to be selectable, and may cause more confusion than it's worth.

* add compatible view types and change text of create button when unable to create pattern

* use built in types instead of strings

* add viewport to renumber elements allowing alphanumeric detail numbers

* Remove redundant tool. View ordering now an option in ReNumber

* add viewport to renumber elements allowing alphanumeric detail numbers

* use built in types instead of strings

* Remove redundant tool. View ordering now an option in ReNumber
…aggedLocalElementId property for IndependentTag (#1508)
# Conflicts:
#	extensions/pyRevitTools.extension/pyRevit.tab/Project.panel/Wipe.pulldown/Wipe Data Schema.pushbutton/script.py
case for revit 2022 'UnitType' deprecation for 'SpecTypeId' in format slope def
@github-actions github-actions bot merged commit 4b84aa1 into master May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants