[Rhino Inside, Element Types Picker], get error message

Hello Good Looking Friends,

I am learning Rhino Inside by using the sample file inside Revit 2022, rac_basic_sample_project.rvt.

I am wondering if I can retrive different element types within the choosen category, by using the “Element Type Picker”,

The error message that I get is:

  1. RevitAPI: The type typeId is not valid for at least one of the elements in elementIds.

Element Type Picker - not working.gh (23.6 KB)

Thank you so much in advance!

Hi @Ranran,

Not all types under Door Category can be applied to any Door.
‘Curtain Wall Dbl Glass’ is mean to be used as Curtain Walls panel.

Try something like this to be sure you are assigning an appropriate type.

1 Like

Hey Kike,

Thank you so much for your prompt reply~

I followed your suggestion (by adding “Similar Types” Element and Graft the elements list), among the Sample Revit File that I have, but it is still not working (however, when I choose “Furniture” category, it works on a fly

I am wondering if this has something to do with the Revit Model itself, I upload my GH script with the Revit 2022 Sample file here well~

Thank you so much for your help!
unnamed.gh (13.3 KB)

Happy New Year.
rac_basic_sample_project.rvt (17.8 MB)

In your file you’ve already switched out the types.

Here I got the Type Instances and switched out one of the Types for another.

re_switchingTypes.gh (13.3 KB)

1 Like

Hey Japhy,

Thank you so much for showing me the ropes, i.e. using Type Instances along with Query Types and Category Filter (Stream filter as well), now I understand the current Revit Geometry Type is different from the Revit Hosting component type.

“Rhino Inside” makes it easier to understand Revit.
Nothing is better than Rhino.

Happy new year!


1 Like

Hey boss,

I felt I was jinxed by my previous post, :smiling_face_with_tear:

within the same Revit File, why the Curtain Wall element becomes null in Rhino, but it appears as a valid Revit type,

Curtain Wall Family question.gh (11.9 KB)

However, within “Wall” category, all other types works fine by using this method, only the Curtain Wall types

Can you please take a look again~

Thank you!!!

A curtain wall type instance doesn’t contain Element Geometry, you need to analyze the Curtain Wall to get the various geometries, or query curtain panels/mullions/etc. instead.


Hey Japhy,
Now it works!

Thank you so much for the help!