Rotate modelgroups

Hello all, I generated modelgroups from grasshopper to revit, but after I generate it I want to rotate it?

First I used the element location node but I hope it is possible to do it quicker.

Can anybody help me?

Also If I generate modelgroups the Area’s will not join with the rooms.

Can anybody help me with that either?

@Nick31 Can you share the sample files?

Hello All,

If I place Model groups with help of a grasshopper script, the rooms won’t join with the room separation line. I can’t upload a revit file and grasshopper file because of the upload limit of 20mb. response with your email or something so that I can send it to you guys. Otherwise I have this link

Can anybody help me with this problem or does this problem sound familiar to anybody?

You need both links. one is the revit file one is the grasshopper file.

Can anyone help me?

Hi Nick,

What version of Revit and Rhino are you targeting?

What do you mean by this?

I’m using Revit 2024 and the newest rhino.inside.revit version (rhino 8). When I generate model groups with Grasshopper in Revit, the rooms that are inside these groups cannot detect any boundary lines. As a result, they don’t join with the rooms contained in the group.

Hi @Nick31,
I just got sometime to checked the model. I think think the issue is with the pin. when i unpin and move the model it works fine.

Hi @Nick31, Yes there is an issue with the native model group component. I believe something is going wrong during the Element Tracking. I have Genereted Custom Code uisng the Rhino.Inside.Revit GPT. (https://youtu.be/B_Q-5HAVkjk?si=vZuv1rT5JpgObvw1)

You can copy this code and place the Model group into your model with out any issue.

import clr
clr.AddReference(“RhinoCommon”)
clr.AddReference(“RevitAPI”)
clr.AddReference(“RevitAPIUI”)
clr.AddReference(“RhinoInside.Revit”)

from Rhino.Geometry import *
from RhinoInside.Revit import Revit
from Autodesk.Revit import DB
from RhinoInside.Revit.Convert.Geometry import GeometryEncoder

doc = Revit.ActiveDBDocument

# ---- Inputs provided by Grasshopper ----

# Execute : bool

# GroupType : DB.GroupType

# Location : Point (Type Hint Point 3d)

if not Execute:
Result = None
else:
t = DB.Transaction(doc, “Place Model Group”)
t.Start()
try:
Result =


    # Convert Rhino point to Revit XYZ
    xyz = GeometryEncoder.ToXYZ(Location)

    # Place the model group at the specified location
    group = doc.Create.PlaceGroup(xyz, GroupType)

    # Output the created Group element
    Result.append(group)

    t.Commit()
except Exception as e:
    t.RollBack()
    Result = str(e)

Thank you! But then I hope this node is being corrected in the next update. I will try this out!

Do I need to paste this in a python node in grasshopper? Or how do I apply the code?

Yes in grasshopper. Please provide the correct input name and for location set the type hint to point 3d

How do I do that right? Can you show it?

Place the Python code on to The canvas, double click it will open up the code window. Copy this code and paste there. Then you ca removed the inputs of the component. For location input again right click and navigate to type hint option and the select point 3d.


Also I get this error.

But the grouptype should also be a input right?

Don’t do any thing with group type. Use query group type component and use that output