How to get titleblock type id (rhythm sheet create requirement)

I have a graph that used to use the Titleblock Types node from Rhythm that is now removed.

I instead let the user select the titleblock type via Data Shapes UI.

So, now I have a selected titleblock family type, but the Sheet.Create node errors saying:
The ElementId titleBlockTypeId does not correspond to a TitleBlock type Parameter name: titleBlockTypeId

I assume the Titleblock Types node provided what it wanted, but I’m not sure how to get the data type it’s looking for.

@john_pierson can you help me out?

Thanks!

Can you use the Object.Type node to confirm that you are in fact providing a FamilyType for a title block? The error suggest that the node is able to get an id but that id does not correspond to a title block type.

Trying to find the Object.Type node. When I search for it, it doesn’t come up.

I found a node called Object.TypeOf
It says: Revit.Elements.FamilyType

image
Or DSCore.Object.Type() in a code block.

TitleBlock Types is still present in the latest Rhythm download.

That node also says the Object Type is Revit.Elements.FamilyType
Isn’t that what the Sheet.Create is looking for?

When I look at the Titleblock Types node in an older Revit version (with older Rhythm version with the node still available), it shows the same data coming from it as I am supplying here. I’m not sure why the Sheet.Create node is failing.

@john_pierson
I remember you had dropped the UI portion out of Rhythm a while ago. I am still running Rhythm 2023.9.1, so I assume you’ve added it back since that version. I’ll update the package.
Does the latest version work with Revit 2023 and 2024?

Thanks!
Revit 2022:


Revit 2024:

The latest version auto-resolves and works for Revit 2020-2025. No need to worry about which version to install anymore (for Rhythm).

1 Like

That is awesome! Thanks!

I still can’t figure out why Sheet.Create isn’t taking the FamilyTypes I am feeding it. It seems the like I am getting the same data as if I got the family types from Titleblock Types node. Doesn’t make sense.

EDIT:
Well, actually I just used the Titleblock Types node to try to feed Sheet.Create that again and it errors on that too.

Okay. Can someone please tell me the proper procedure for uninstalling and reinstalling a newer version of a package?

I have uninstalled and reinstalled Rhythm 5 times now.
This last time, I marked it for deletion, restarted Revit and the Rhythm folder disappeared. Good.
Started Dynamo back up and installed the latest version of Rhythm. A folder showed up that says Rhythm. Checked the pkg.json file and AGAIN it keeps coming back as
"version": "2023.5.5",

But the package manager definitely says I installed 2024.5.5
Screenshot 2024-09-26 145420

Check the Installed Packages list and it shows:
Screenshot 2024-09-26 145738

Why does it keep installing 2023.5.5 when I am obviously installing 2024.5.5???

Is it possible the pkg.json file is just wrong?
It does say "copyright_year": "2024" at the bottom.

The pkg.json also gets updated on the fly. This is something I am going to reverse soon though.

Let me take a look at the node. But I would be curious if any titleblock type will work. Like >Select Model Element (title block instance) > element.elementType

I did like you said and selected the same type of titleblock I am trying to feed Sheet.Create. I got the same type of element and id:
Screenshot 2024-09-26 152951

And sheet create still failed?

Yep. Same error.

Alrighty. I’m able to reproduce on my end so I need to debug and test what happened with that node.

If you update Rhythm, you should be good to go now.

How to update without dealing with the infinite jank of the package manager:

1 Like

Wait. So you just delete the files and when you open Dynamo it downloads the up-to-date files?
What is this wizardry???
Man, I wish the other packages were that simple! :smiley:

I keep all the packages on our server so everyone is pulling from the same pool. So I typically just delete the files, download the package from the website and unzip them to the folder. Next time we fire up Dynamo it has the new package version.

*all files in the bin folder except for RhythmViewExtension.dll

If you do that to your Rhythm on your network too, everyone will get the latest when they pull from the network.

2 Likes

It is the result of probably a hundred hours of stressing over making Rhythm work well for end users. :sweat_smile:

2 Likes