Adding Direct Shapes with Type

Hello! I’m having trouble with creating DirectShapes with Type with Rhino.Inside.Revit.
The Add DirectShape with location node is giving an unexpected result plus duplicated elements in different locations.

Is it possible to create Direct Shape Types without inputing any specific Geometry?
As my Direct Shapes are all different it would be great to first add the type and then assign it to the created Direct Shapes. That was my attempt of doing it by changind the Parameter “Type” of the elements once added to the model, but the Parameter “Type” is not yet defined on the elements.

Any clues will be wellcome!


DirectShape_with_Type.gh (37.1 KB)

You’re close.

Have your generic Direct Shape Type (0,0,0 origin)

Create you Direct Shape Types at the same origin.

Swap out Types using the Element Type Component.

Thanks @Japhy I tried your solution but doesn’t work for me. Do you have an idea what might be happening?
I noticed in your example the graphical element has already the same type as you’re inputing on the Element Type node, this is not my case.

A Type can only switch with a Type. It appears you have a Direct Shape, not a Direct Shape Type. There is a distinct difference.

Thank you @Japhy for the clarification!

Hi Belen, I tried your given GH file and i found it helpful tools especially for complex projects. But there is an error coming every run of the script it gave 2 direct shape in my revit model 1. is the correct one with type mode and the redundant geometry is without.

Hi Belen, it gaves 3 geometry counts every run. looking forward for any feedback thank you in adavance

@Russell_Santos1 remove the add directshape brep component. it adding that generic models shape.

use this if you want reusable types

Thanks Muhammad but the result is only direct shape without edit type mode

can you remove add directshape geometry also

same result mate

Can you open the new project and try it again because i dont see that when i create new DS Type

I tried but still the same, it seems something missing with the script for sure

can you send the currnt script and please internalise the brep. Thanks

DirectShape_with_Type modified_RS.gh (13.0 KB) here you can use any brep/object. the goal is to find out why its giving multiple geometry. by reading above it seems there is a gap information the script is not final then.

Its working fine


But where to bake? upon checking it still from Brep node

Thanks Muhammad and yeah it works now to me is just glitche in hte model file so i did open new and all good now

Hi Russell,

The script was not a final one to use.
It was an example to ask and clarify the difference between Direct Shapes and Direct Shape Types.

You have to discard the Add Brep DirectShape if your goal is to get a Direct Shape Type.
I hope this helps.