-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
Conversation
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
…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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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()