Giter Club home page Giter Club logo

rhino.inside-revit's Introduction

Rhino.Inside® Revit

Build status

Please see the Rhino.Inside.Revit Wiki for more information on how to use the project. Sections listed below provide more information about the codebase for the developers who want to contribute to this project or the Wiki.

Overview

The Rhino.Inside® Technology allows Rhino, Grasshopper, and their add-ons to be embedded within other products. This repository is the Rhino.Inside® for Autodesk Revit®, named Rhino.Inside.Revit.

Developer Interface

See Wiki pages below for more information about the architecture of this project.

Build Process

The project uses a combination of GitHub Actions for pull request builds and a private build server to produce signed daily builds from the main release and development branches.

Building from Source

See Building from Source page for instructions on how to build the project from source.

Installer

The installer is generated using WiX toolset (see src/RhinoInside.Revit.Setup.sln) and is updated automatically on every new build. See the Rhino.Inside.Revit Wiki homepage to download them most recent installers.

Wiki

The docs/ directory in this repo contains the contents of Rhino.Inside.Revit Wiki.

See Wiki Readme for more information.

Artwork

All the artwork source and exported files are under art/ directory.

See Artwork Readme for more information.

Development Conventions

See Development Conventions page for conventions and guidelines in contributing to the codebase.

API Docs

Currently the project does not have any documentation for the API. This is an area that needs improvement. The Wiki has a reference page for the API.

Known Issues

Known issues with the product are listed at References > Known Issues on the Wiki. Please keep this page updated when new and persistent issues are identified.

rhino.inside-revit's People

Contributors

anddoyoueverfeel avatar carlasologuren avatar clicketyclackety avatar dalefugier avatar dependabot[bot] avatar eirannejad avatar fraguada avatar golsby avatar japhyw avatar jtmbarry avatar kike-garbo avatar mcneel-build avatar merge-down-robot[bot] avatar michaldengusiak avatar mingbopeng avatar mostapharoudsari avatar pearswj avatar pedrocortesark avatar scotttd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rhino.inside-revit's Issues

Revit Dimensions

We've had a request to add Revit dimension capabilities, or at least look into it.

Rhino.Inside JSON error

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...

Element.ParameterSet parameter value data type

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!

Zoom in Rhino view

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

References missing

There are references missing for Autodesk & Rhino & Rhino.Geometry etc. within the rhino.inside solution when i open it in visual studio. this gives me many errors and does not build. Can you advise what references i need and where these references would be located please.

image

Nurbs Curve Conversion issue

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, Optional1 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

Delete key does not work in Rhino inside Revit

Here is what is working and not:

  1. Open Rhino in Revit
    1. Select Object, Delete Key does not work in Rhino.
    2. Copy and Paste using CTRL-C and CTRL-V do work
  2. Open Grasshopper in Rhino in Revit
    1. Select component, Delete Key may work Grasshopper. Some have reported it does not.
    2. Copy and Pate may work in CTRL-C and CTRL-V work. Some have reported it working and some have not.

Anyone else experiencing this?

Rhino/GH window disappeared when unfocused

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

Revit Transaction Error

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.

CI for RhinoInside.Revit

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

Rhinoceros License Manager Issue

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

Add Level Component

Can we get an AddLevel component? Seems building levels quickly will help also when adding other objects.

Rhino Inside Revit will not load when PyRevit is loaded

Rhino Inside Revit will not load when PyRevit is loaded. Receive Rhino License Manager Error Message. If I unload PyRevit Rhino within Revit will Load. I would like to have both apps available. I will also post to PyRevit. Issue maybe incompatible Python code?

Greg

image

Load Rhino without showing window

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.

Rhino Inside Expecting Radians when Revit wants Degrees

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.
image

Cannot bake into Revit

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 ! :)

Screenshot (35)

  • now starting to have Revit freeze when I simply select geometry for preview in grasshopper.
    Doing the same type of operations worked fine before...
    -after switching to another grasshopper definition, the Revit came back to life. I'm guessing it depends on the Rhino geometry/file.

Revit Wall from Face

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

2019-11-11 11_44_31-Autodesk Revit 2019 2 -  wall by surface rvt - 3D View_ {3D}

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

wall by surface.zip

Revit Room Regions

"Explore workaround for Revit’s inability to output proper “regions” for rooms, without gaps". This came from @pearswj notes.

Rhino.inside install error

I have an issue trying to install Rhino.inside. The installer cannot remove the older version and therefore the install stops.
Any suggestion on how to solve this?

image
image
image

Readme Update

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.

Material selector

Would it be worth getting a Material selector? A dropdown like FamilyName or TypeName? Or get a Document.Material component?

Currently this works but is more complicated then necessary:

image (31)

Rhino Inside breaks Revit Keyboard Shortcuts

Versions: Revit 2019.2.10.7 and Rhino Work In Progress (7.0.19163.2505, 2019-06-12).

The Revit Keyboard Shortcuts file (%APPDATA%\Autodesk\Revit\Autodesk Revit 2019\KeyboardShortcuts.xml) get's overwritten by Rhino Inside, and subsequently all Revit shortcuts disappear.

image

image

Revit Curtain System from Face

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

2019-11-11 12_03_59-Autodesk Revit 2019 2 -  curtain system by surface rvt - 3D View_ {3D}

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.

curtain system by surface.zip

Can't find Rhino 7 while it is installed

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

Add .NET generic list to Directshape convertion

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 = [] 

REVIT - External Tools - External Tool Failure

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.

Revit 2017 and 2019
image

Revit Analysis Display

Uninstaller leaves .pdb files behind

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

Can't download updated RhinoInside Plugin for Revit

I get the following error when opening my Rhino Inside Plugin in Revit:
Revit_k7DoPoqRON
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

Sample GH scripts won't run

Some of the sample GH scripts will not run - it appears that assemblies (dll's) are not where they are supposed to be.

RhinoInside Revit Sample2 Fail

Column.ByCurve does not work

When using the AddColumn.ByCurve nothing happens in Revit. The component gives a different output compared with the component AddBeam.ByCurve. (See image below)

Revit 2019 - 19.0.0.405 20180216_1515(x64)
Rhino - (7.0.19183.10495, 07/02/2019)

screen

Sample Grasshopper files not available

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

Rhino Launch Button NotImplementedException

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):

error

It seems like it is throwing the NotImplementedException from here, though to be honest I am not sure why..

code

Interestingly, the Grasshopper button does work and launches the Grasshopper window by itself.

Problem with opening the Rhino from Revit

Hello,

Today I installed Rhino Inside and I have a problem with Licence Manager initialization.
Here is a window which shows up:

2019-09-11_08h55_50

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]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.