mcneel / rhino.inside-revit Goto Github PK
View Code? Open in Web Editor NEWThis is the open-source repository for Rhino.Inside®.Revit
Home Page: https://www.rhino3d.com/inside/revit/
License: MIT License
This is the open-source repository for Rhino.Inside®.Revit
Home Page: https://www.rhino3d.com/inside/revit/
License: MIT License
We've had a request to add Revit dimension capabilities, or at least look into it.
Need a few nodes to decompose info about wall structure and contained layers
Example files:
wall structure.zip
Create a node that takes Faces or Face References (See #46 ), and Curtain System type and creates a curtain system from face. Note that Curtain Systems are different from Curtain Walls
Example Files:
The python node in this example, takes face references from selected mass element, and a curtain system type and generates a curtain system.
Windows defender displays a warning when the installer is downloaded. This requires the More Info button to be pressed to even find the download button.
In Rhino window from Revit, all views is not response to mouse middle button zoom control.
Right now, I am using CTRL + right button, and SHIFT + right button as an alternative.
Thanks,
Mingbo
Revit cannot run the external application "Rhino Inside Revit". Contact the provider for assistance. Information they provided to Revit about their identity: Robert McNeel & Associates.
System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
I tested the following using Revit 2019 and 2017 + a freshly cloned copy of the source code. After creating a file, it seems like Rhino is opening in the background, but clicking the Rhino button on the toolbar is resulting in the following error (same for 2017 and 2019):
It seems like it is throwing the NotImplementedException from here, though to be honest I am not sure why..
Interestingly, the Grasshopper button does work and launches the Grasshopper window by itself.
Can we get an AddLevel component? Seems building levels quickly will help also when adding other objects.
I am receiving the above error when starting Revit:
"Rhino license manager initialisation failed with error -200. Rhino will not run"
However when I run Rhino WIP on its own it does not allow to choose any valid license similar to rhino 6. Rhino WIP license page (under help->about) says 42 days left :((
Is there any way I could define the Rhino WIP license by the plugin or the Rhino application so that I could get this plugin working in Revit?
Any advice will be really appreciated. Many thanks
Hello,
Today I installed Rhino Inside and I have a problem with Licence Manager initialization.
Here is a window which shows up:
Also, I tried to open Revit as Administration, but nothing changed.
I attach the error message "RhinoDotNetCrash":
[ERROR] FATAL UNHANDLED EXCEPTION: System.AccessViolationException: An attempt was made to read or write protected memory. It often indicates that another memory is damaged.
w Options.setSSOServer(Options* , Int32 )
w UIFrameworkServices.WebServiceWrapperImp.{dtor}(WebServiceWrapperImp* )
w UIFrameworkServices.WebServiceWrapperImp.__delDtor(WebServiceWrapperImp* , UInt32 A_0)
w UIFrameworkServices.WebServiceWrapper.!WebServiceWrapper()
w UIFrameworkServices.WebServiceWrapper.Dispose(Boolean A_0)
[END ERROR]
Is it possible to load Rhino without showing the Rhino window? I think this was working just a bit ago, but now it looks like even when passing WindowStyle.Hidden
to RhinoCore() the main Rhino window still appears. I'm only working in Revit, so I'm not sure if this is a larger issue, but if so I can repost elsewhere.
Win10 x64, Revit 2019.2,rhino_en-us_7.0.19189.20125
while press rhino.inside on Revit, it shows
Unsupported Rhino WIP version
Expected version is 7.0.19148 or above
Installed version: 0.0.0.0
Can you please make the extension methods in Convert class public?
e.g., https://github.com/mcneel/rhino.inside/blob/master/Autodesk/Revit/Convert.cs#L193
For me, with a certain file at the office - Using the same method as before to bake into Revit doesn't work properly - Revit freezes.
( Toggle to bake - no geometry appears and Revit just freezes. Rhino & Grasshopper are still responsive)
Any advice is appreciated ! :)
When trying to apply a Revit Transaction I get the following error:
Runtime error (invalidOperationException): Starting a transaction from an external application running outside of API context is not allowed.
For angle parameter values in Revit you typically input a number in degrees. However, the Element.ParameterSet component appears to be expecting angles in radians. It might help to either provide a more clear error message or change the component to accept the format that you would typically use on the Revit side.
I'm trying to build the Revit samples as outlined here: https://github.com/mcneel/rhino.inside/tree/master/Autodesk/Revit
I'm having several issues with dependencies however:
The first issue is a missing RhinoCommon dependency. For reference - I'm using the RhinoCommon package from NuGet - please advise if it should be loaded in from a local .dll instead.
The second issue is with the Eto.Forms dependency:
Any advice on either issue?
Hi,
Currently I am using the Revit 2019, and RhionWIP 7.0.19197.10155.
With the most updated RhinoInside (by 07/19/2019), I just noticed that Rhino/GH window always disappeared (not minimized) when they are unfocused, and there is no way to bring them back unless click the rhino/GH button on Rhino toolbar to "open" (make it disappear) it again.
Thanks in advance,
Mingbo
There is a need for adding Material, Name and Category for the Brep import to Revit. Version for Dynamo has been made here: https://github.com/dimven/SpringNodes/blob/master/Nodes/BrepShape.ByGeometry.dyf
(If readable?)
Should build each of the three "Release 201*" configurations, then build RhinoInside.Revit.Setup.sln in Release and store the installer as a build artifact
See RH-52164
An Add Grid component for Revit would be helpful in creating a framework for model with.
Create a new node that takes a face (it needs Reference object so we might need to add more nodes to work with element references in the API), and a wall type, and generate a wall from a face
Example Files
The python node in this example, takes a mass geometry so it can extract the faces With Reference and generate a DB.FaceWall from the given face and DB.WallType
I am not finding the sample grasshopper files with my Rhino inside Revit download. Is it possible to provide a link to the sample files?
Thank-you Greg
"Explore workaround for Revit’s inability to output proper “regions” for rooms, without gaps". This came from @pearswj notes.
Hey @kike-garbo, I just tested the installer quickly and uninstalling leaves .pdb files behind, e.g. C:\Users\will\AppData\Roaming\Autodesk\Revit\Addins\2017\RhinoInside.Revit\RhinoInside.Revit.pdb
When converting from nurbs curve the function in Convert.cs at line 1139 incorrectly identifies parts of the nurbs curve as an ellipse . commenting out produces a valid result.
specific error :
Autodesk.Revit.Exceptions.ArgumentOutOfRangeException
HResult=0x80131500
Message=The given value for xRadius must be greater than 0 and no more than 30000 feet.
Parameter name: xRadius
Source=RevitAPI
StackTrace:
at Autodesk.Revit.CurveAPIUtils.CreateEllipse(XYZ center, Double xRadius, Double yRadius, XYZ xAxis, XYZ yAxis, Double startParameter, Double endParameter, Boolean allowSimplification)
at Autodesk.Revit.DB.Ellipse.CreateCurve(XYZ center, Double xRadius, Double yRadius, XYZ xAxis, XYZ yAxis, Double startParameter, Double endParameter)
at RhinoInside.Revit.Convert.ToHost(Ellipse ellipse, Interval interval) in D:\Dropbox\CDS_Code\rhino.inside\Autodesk\Revit\src\RhinoInside.Revit\Convert.cs:line 920
at RhinoInside.Revit.Convert.d__56.MoveNext() in D:\Dropbox\CDS_Code\rhino.inside\Autodesk\Revit\src\RhinoInside.Revit\Convert.cs:line 1141
at RhinoInside.Revit.Convert.d__56.MoveNext() in D:\Dropbox\CDS_Code\rhino.inside\Autodesk\Revit\src\RhinoInside.Revit\Convert.cs:line 1119
at RhinoInside.Revit.Convert.ToCurveArray(IEnumerable1 curves) in D:\Dropbox\CDS_Code\rhino.inside\Autodesk\Revit\src\RhinoInside.Revit\Convert.cs:line 1589 at RhinoInside.Revit.GH.Components.FloorByOutline.ReconstructFloorByOutline(Document doc, Element& element, Curve boundary, Optional
1 type, Optional`1 level, Boolean structural) in D:\Dropbox\CDS_Code\rhino.inside\Autodesk\Revit\src\RhinoInside.Revit\GH\Element\Floor\ByOutline.cs:line 53
Can we match views in Revit from a Rhino view? Add a view, camera location, target etc?
Hi All,
The Rhino button stops all Revit interactivity until the Rhino window is closed (When Rhino is maximized)
Also I've noticed if you launch Rhino and then launch Grasshopper as a rhino command, the "Pick Revit Element" command within grasshopper freezes the entire thing.
We've had a request to support passing analysis data back into Revit from tools like Ladybug. Can we take a look at supporting Analysis Display?
An example from Paul Wintour:
https://www.linkedin.com/posts/paul-wintour_for-years-now-aec-professionals-have-struggled-activity-6585392189738745856-kykD SEPP65 solar access using Rhino Inside https://vimeo.com/363977394
Just noticed something in the readme - I think revitapidocs is not maintained as much any more. Gui Talarico's latest iteration is apidocs.co, which has RhinoCommon, Grashopper and Revit API documentation.
I get the following error when opening my Rhino Inside Plugin in Revit:
I updated the WIP7 to the latest and still get the same error. So I assume it is the plugin.
Using this link
I get the following error:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
BlobNotFound
The specified blob does not exist. RequestId:6ec35c8e-901e-0009-3561-93d5a5000000 Time:2019-11-04T22:46:48.4157339Z
Also I get a 404 error when trying to access the "Changes Log" at THIS LINK
It would be really good if a node for setting parameters in Revit existed based on element, parameter name and value.
My co-worker and I had some trouble getting the samples to work initially. After troubleshooting, this is the solution we found. Hopefully this is the right place to post this, and it helps others.
The .NET package is available for download here:
https://www.microsoft.com/net/download
This allows the Direct shape type information to be edited in Revit after creation.
Whenever creating a direct Shape, make sure to add this code in the # Add the Solid (the .NET generic list).
section.
try:
dShapeNum = "HS_" + dShapeName + "_" + str(num)
directShapeType = DirectShapeType.Create(doc, dShapeNum, categoryId)
# Create a strong boxed .NET generic list of GeometryObject's. This will only contain a single element but is required
solidsList = List[GeometryObject]()
solidsList.Add(geom)
# Add the Solid (the .NET generic list).
directShapeType.SetShape(solidsList)
directShapeLibrary - DirectShapeLibrary.GetDirectShapeLibrary(doc)
directShapeLibrary.AddDefinitionType(dShapeNum, directShapeType.Id)
element = DirectShape.CrepeElementInstance(doc, directShapeType.Idi categoryId, dShapeNum, Transform. Identity)
except:
element = []
The Rhino.inside.Revit Installer goes very quickly. It would be nice to have a successfully installed message when run in the UI mode so it is clear what it did. Something like
"Successfully installed for Revit 2020" The an OK to close the installer
when activating rhino windows, the shortcut for rhino works well, but when activating grasshopper window, the keyboard is controlling Revit shortcut instead of the grasshopper shortcut.
Started using this plugin in Revit only recently, awesome work Kike, has some great potential!
I think it would make things much more intuitive in the Element.ParameterSet component if the "V (value)" input accepted strings as well. Right now it needs to be an integer.
To give an example, it is cumbersome to set the workset of an element by the integer value rather than the string that is the name of the workset.
You might very well have a good reason to only allow the integer as input that I don't know of. In that case maybe an in-between component that takes the 'parameter key' and 'value' as a string as inputs, and gives the integer 'value' output that can be plugged into the Element.ParameterSet component? The in-between component could even list out all possible values with option for filtering.
This might even exist already I'm just not aware of it...
Thanks!
Here is what is working and not:
Anyone else experiencing this?
I have experience with Rhino, grasshopper and Revit, but I'm not too familiar with the whole coding language, so I have absolutely no idea what this error message means:
Cannot deserialize the current JSON object (e.g.{name":value"}) into type 'System.Collections.Generic.IReadOnlyDictionary'2[System.String,McNeel.RhinoAccounts.OpenIDConnectToken+RhinoAccountsGroup]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array ot List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path 'OpenIdToken.MemberGroups.5272672149700608', line 1, position 1148.
After downloading Rhino.Inside, I open Revit, create a new project, go to add-ins and click on RhinoWIP and this is the message I get. I have no idea what it means or how to fix it
Please help...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.