RHINO.INSIDE.REVIT RhinoCode Platform - DO NOT MERGE#1199
Draft
eirannejad wants to merge 7 commits into1.xfrom
Draft
RHINO.INSIDE.REVIT RhinoCode Platform - DO NOT MERGE#1199eirannejad wants to merge 7 commits into1.xfrom
eirannejad wants to merge 7 commits into1.xfrom
Conversation
- only works when gh is loaded - only has one converter - provided revit api in editor help but needs uri resolver - does not implement active document, write, or find assembly methods
This file contains hidden or 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
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.
Starting this PR as a thread to review and improve this first draft of RHINO.INSIDE.REVIT platform for Rhino3d scripting.
Todo
Rhino.Runtime.Code.RhinoCode.Platforms.TryRegister(Scripting.RhinoInsideRevitPlatform.Instance);sooner when Rhino is started. Currently this call is made inAssemblyPriorityof the GH plugin. So platform is not ready if ScriptEditor is launched without Grasshopper being loaded (I assume this is a rare case :D)Platform Assemblies
Adds
RevitAPI,RevitAPIUIandAdWindowsto all scripting languages. Opening the file below should not throw any errors.test_rir_compile.zip
Platform assemblies are also automatically added to autocompletion:
Platform Value Converters
Adds one single ElementId converter under Revit. Opening the file below should not throw any errors:
test_rir_converters_element.zip
Platform Compile Guards
Adds 'flexible' guards for major versions starting from Revit 2018
Example: REVIT_2018_OR_GREATER, REVIT_2019_OR_GREATER
Adds 'specific' guards that are only available on this Revit version
Example: REVIT_2025_1, REVIT_2025
Platform Help Libraries
Adds
RevitAPIandRevitAPIUIto editor help libraries: