Placing Views on Existing Sheets with SteamNodes

I’m trying to use @jbenoit44 's SteamNode Tool.PlaceViewsOnExistingSheets to place a list of views on a list of sheets. After running the graph, the preview list shows all instances as “View is already placed”. They aren’t placed anywhere as far as I can tell.

I’ve also tried using Tool.PlaceViewsOnSheets, but that nulls out with the same inputs.

It seems like the Tool.PlaceViewsOnExistingSheets method is close, but I’m missing some nuance. Any recommendations?

It looks like those nodes are expecting view elements not ids :

1 Like

Ah! Thank you! I’ve just started and haven’t learned to read Python yet.

Given a list of element IDs, how do I get the element from them? Using the Archi-lab Grimshaw package Select.ByElementID node with the list, I get this error:

But using a code block with the first ID in the list returns the sheet:

Is this a list/string vs number error? If so, what’s the best way to solve it?

@Greatjustgreat ,
it’s almost that! :slight_smile: it has to do with the type of your objects. It seems that your Ids are doubles. That’s what the error says. You can convert them to integers using Math.Floor node :


I never would have figured that out. Thanks!

Any idea why I get a null?
Thanks a lot.