![]() ![]() append ( revisioncloud ) referencingviews. OST_RevisionClouds ): for revisioncloud in revisioncloudinput : if viewelement. GetAllViewports (): for view in : for viewid in : for viewelement in FilteredElementCollector ( DocumentManager. VersionName = "Autodesk Revit 2014" : for viewport in sheet. If revisionsinviewsonsheets = True : for sheet in sheetinput : if DocumentManager. append ( sheet ) # Look for revision clouds in views on sheets. OST_RevisionClouds ): for revisioncloud in revisioncloudinput : if sheetelement. If revisionsonsheets = True : for sheet in sheetinput : for sheetelement in FilteredElementCollector ( DocumentManager. Revisioncloudinput = UnwrapElement ( IN ) sheetinput = UnwrapElement ( IN ) revisionsonsheets = IN revisionsinviewsonsheets = IN matchingsheets = matchingrevisionclouds = referencingviews = # Look for revision clouds on sheets. ![]() ![]() AddReference ( 'RevitServices' ) import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import TransactionManager # Assign input to the IN variables. AddReference ( 'RevitAPI' ) import Autodesk from import * # Import DocumentManager and TransactionManagerĬlr. AddReference ( 'ProtoGeometry' ) from import * # Import RevitAPIĬlr. # Added category filter to improve FilteredElementCollector performace. # Boolean selector for Revisions on Sheets/Revisions in Views on Sheets. # Eliminated the need for a separate legend/dependency path. # Restructured code to reduce number of cycles. # Expanded Python code to output every instance of a revision cloud in every instance of a legend. # Output matchingrevisionclouds from Python node to avoid hidden element mismatch. # Output: Matching Sheets, Matching Revision Clouds, Referencing Views It collects the revision cloud element, associated sheet, and referencing view. The Python code filters through sheets and views-on-sheets, looking for revision clouds. Part 1 of the definition collects all revision clouds and sheets within the active document and sends that information to a Python node. The definition and code in this post will extract the following. However, instance parameters (Mark and Comments), sheet numbers, and sheet names are not supported out-of-the-box.ĭynamo and Python can expand on OOTB functionality to generate an itemized list of revisions including previously unavailable instance parameters, sheet numbers, and sheet names. Revit can schedule the following revision parameters in a title block family. Extract revision cloud data from Revit using Dynamo and Python. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |