├── _config.yml ├── .github └── ISSUE_TEMPLATE │ └── bug_report.md ├── README.md ├── SUMMARY.md └── Chanel_Resources └── Episode1 └── IsolateWarningsInView.okpy /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-slate -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Observed behavior** 24 | A clear and concise description of what yhappened. 25 | 26 | **Screenshots** 27 | If applicable, add screenshots to help explain your problem. 28 | 29 | **Desktop (please complete the following information):** 30 | - OS: 31 | - Revit Version : 32 | - Dynamo Version : 33 | - Orkestra Version : 34 | 35 | **In Which context did it happen (please select from the following list) :** 36 | Orkestra Desktop app , Orkestra Revit Addin, Orkestra Dynamo View Extension 37 | 38 | 39 | **Additional context** 40 | Add any other relevant info about the problem here. 41 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![Orkestra Logo](https://gblobscdn.gitbook.com/assets%2F-M6wDJF-clP9xeoy68-u%2F-MMRa1MxuBaOsJNipN0m%2F-MMRa8657A892OLebBqb%2FOrkestra_Clean.png?alt=media&token=d1827a51-c5a9-4c1d-bdc3-d43410955160) 2 | 3 | [![autoVtag](https://img.shields.io/github/v/release/MostafaElAyoubi/Orkestra_Online?include_prereleases)](https://github.com/MostafaElAyoubi/Orkestra_Online/releases) 4 | [![GitHub issues open](https://img.shields.io/github/issues/MostafaElAyoubi/Orkestra_Online.svg?)](https://github.com/MostafaElAyoubi/Orkestra_Online/issues) [![GitHub issues closed](https://img.shields.io/github/issues-closed/MostafaElAyoubi/Orkestra_Online.svg?)](https://github.com/MostafaElAyoubi/Orkestra_Online/issues?q=is%3Aissue+is%3Aclosed) [![Github All Releases](https://img.shields.io/github/downloads/MostafaElAyoubi/Orkestra_Online/total.svg)]() 5 | 6 | 7 | # OrkestraOnline 8 | [Orkestra Online](https://www.orkestra.online) is a cloud based platform for deploying, documenting and securing DynamoBIM, GrassHopper and OkPy content. 9 | Orkestra has a very generous free tier with many cool features to manage your tools locally! 10 | Orkestra Online (for cloud deployments) works with a subscription system. If you wish to get a free trial or learn more, reach out through the Orkestra website! 11 | 12 | *** 13 | 14 | This space is to report and track issues. It also makes the resources and solutions available to everyone so feel free to search/browse the repo. 15 | 16 | :star: or :eyes: the project to stay updated ! 17 | *** 18 | All releases can be found under the [release](https://github.com/MostafaElAyoubi/Orkestra_Online/releases) section. 19 | 20 | -------------------------------------------------------------------------------- /SUMMARY.md: -------------------------------------------------------------------------------- 1 | * Starter Info 2 | 3 | * [Home](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki) 4 | 5 | ## Destop App 6 | 7 | * [Desktop App](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Orkestra-Desktop-App) 8 | * [LogIn](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Login-From-Desktop-App) 9 | * [What is a Hub](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/What-is-a-Hub%3F) 10 | * [What is a Workspace](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/What-is-a-Workspace) 11 | * [Uploading Definitions](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Upload-Definitions) 12 | * [Definition MetaData and Documentation](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Definition-MetaData-and-Documentation) 13 | * [Versioning](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Versioning) 14 | * [Analytics](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Analytics) 15 | * Account Settings 16 | 17 | ## Revit Addin 18 | 19 | * [Revit Addin](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Orkestra-Revit-Addin) 20 | * [LogIn](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Login-from-Revit-Addin) 21 | * [Orkestra Local Player Tab](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Orkestra-Local-Player-Tab) 22 | * [Local QuickAccesses](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Orkestra-Local-Player-Tab#setting-local-quickaccesses) 23 | * [Orkestra Online Player Tab](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Orkestra-Online-Player-Tab) 24 | * Online QuickAccesses 25 | * PlayLists 26 | * [Syncing a Package Folder](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Syncing-a-Package-Folder) 27 | * [Uploading Definitions](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Upload-Definitions) 28 | * [Definition MetaData and Documentation](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Definition-MetaData-and-Documentation) 29 | * [Versionning](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Versioning) 30 | * [Analytics](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Analytics) 31 | * Account Settings 32 | 33 | ## Dynamo View Extension 34 | 35 | * [Dynamo View Extension](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Orkestra-View-Extension) 36 | * [LogIn](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Login-From-Dynamo-View-Extension) 37 | * Orkestra View Extension Local Tab 38 | * Orkestra View Extensions Online Tab 39 | * [Uploading Definitions](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Orkestra-Dynamo-View-Extension-:-Uploading-Definitions) 40 | * OrkestraGit 41 | * Definition MetaData and Documentation 42 | * Versionning 43 | 44 | ## Dynamo Package 45 | 46 | * [Dynamo Package](https://github.com/MostafaElAyoubi/Orkestra_Online/wiki/Orkestra-Dynamo-Package) 47 | * LogIn 48 | 49 | -------------------------------------------------------------------------------- /Chanel_Resources/Episode1/IsolateWarningsInView.okpy: -------------------------------------------------------------------------------- 1 | { 2 | "$type": "OkPy.Models.OkPyModel, OkPy", 3 | "Id": null, 4 | "Name": "IsolateWarningsInView", 5 | "Inputs": { 6 | "$type": "System.Collections.ObjectModel.ObservableCollection`1[[OkPy.Models.OkInputModel, OkPy]], System", 7 | "$values": [ 8 | { 9 | "$type": "OkPy.Models.OkDropdownInputModel, OkPy", 10 | "MaxDropDownHeight": 500, 11 | "SelectedObject": "Floors", 12 | "Id": "928aef0b-cbbb-4495-b454-ede72689b564", 13 | "Guid": "22725705-728b-4394-be2f-ad68e769f35e", 14 | "Type": 0, 15 | "Name": "Select Category to Isolate", 16 | "IsBaseInput": false, 17 | "Category": null, 18 | "Version": 0, 19 | "Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import Category\r\n\r\ncategories = __currentdoc__.Settings.Categories\r\n\r\noutdict = {}\r\n\r\nfor category in categories:\r\n outdict[category.Name] = category\r\n#The information displayed by the input is stored in the __out__ dictionary\r\n__out__= outdict\r\n", 20 | "Uploadedby": null, 21 | "Description": "Select the category to isolate warnings for. ", 22 | "IsOOTB": true, 23 | "InputKey": "categoryToIsolate" 24 | }, 25 | { 26 | "$type": "OkPy.Models.OkDropdownInputModel, OkPy", 27 | "MaxDropDownHeight": 500, 28 | "SelectedObject": "{3D}", 29 | "Id": "1882c22c-8cc5-47ca-8ff3-3fd4f2e03a85", 30 | "Guid": "40866fff-ebd6-4a6f-b340-11a7921cbd3d", 31 | "Type": 0, 32 | "Name": "View to isolate warnings in", 33 | "IsBaseInput": false, 34 | "Category": null, 35 | "Version": 0, 36 | "Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import FilteredElementCollector as fec\r\nfrom Autodesk.Revit.DB import View\r\n\r\nviewsandtemplates = fec(__currentdoc__).OfClass(View).WhereElementIsNotElementType()\r\nviews = [v for v in viewsandtemplates if v.IsTemplate == False]\r\noutdict = {}\r\n\r\nfor view in views:\r\n outdict[view.Name] = view\r\n#The information displayed by the input is stored in the __out__ dictionary\r\n__out__= outdict", 37 | "Uploadedby": null, 38 | "Description": "All Views in model as dropdown for single selection.", 39 | "IsOOTB": true, 40 | "InputKey": "seletedView" 41 | } 42 | ] 43 | }, 44 | "Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import*\r\n\r\nimport System \r\nfrom System.Collections.Generic import List\r\n\r\n#The current uidoc, doc, uiapp, and app are stored in the following variables\r\ndoc = __currentdoc__\r\napp = __app__\r\nuidoc = __uidoc__\r\nuiapp = __uiapp__\r\n\r\n#The inputs are stored in the __inputs__ dictionray\r\n#The key for each input can be set through the UI\r\n\r\ninputs = __inputs__\r\n\r\n#Collect list of all warnings in the model \r\nwarnings = doc.GetWarnings()\r\n\r\n#store selected category in a variable\r\nselectesCategory = inputs[\"categoryToIsolate\"]\r\n\r\n#Iterating through all warnings, and only keeping those from selected category\r\nmyWarningsOfSelectedCategory = []\r\n\r\nfor warning in warnings:\r\n failingElements = warning.GetFailingElements()\r\n #Iterating through all elements for each warning\r\n for failingElement in failingElements:\r\n #getting the element from it's Id, and checking if it's category matched the selected one\r\n try:\r\n if doc.GetElement(failingElement).Category.Id == selectesCategory.Id:\r\n myWarningsOfSelectedCategory.append(failingElement)\r\n except:\r\n pass\r\n\r\n#Isolate elements with warnings in selected view\r\nselectedView = inputs[\"seletedView\"]\r\n\r\n#Convert from python list to dotNet list\r\ndotNetList = List[ElementId](myWarningsOfSelectedCategory)\r\n\r\n#Constructing a new transaction\r\ntransaction = Transaction(doc)\r\n#Starting the transaction\r\ntransaction.Start(\"OkPy - Isolate warnings\")\r\n#Isolating warnings in view\r\nselectedView.IsolateElementsTemporary(dotNetList)\r\n#Closing transaction\r\ntransaction.Commit()\r\n\r\n", 45 | "IsOkPyTemplate": false, 46 | "LastUpdatedBy": null, 47 | "Description": "This tools lets you isolate warnings of a selected category in a selected view", 48 | "Outputs": null, 49 | "Engine": null, 50 | "Path": "C:\\Users\\jumy_\\OneDrive - DATA SHAPES\\Bureau\\Demo\\IsolateWarningsInView.okpy" 51 | } 52 | --------------------------------------------------------------------------------