Collect View Names from Linked Model

How do i get the View Names from a Linked Model?
I have a code that duplicates view that’s working perfectly from a non-linked model but i want to apply the same to a linked file.

I’m getting dereferencing to a non-pointer.

Hey,

I would guess that you’re also getting view templates and they don’t return a value for ‘View Name’ try Element.Name instead…

image

Hope that helps,

Mark

I’m trying to get the views from a linked model, not on the current document

Here is a possible way :
view%20names

2 Likes

@Alban_de_Chasteigner Nice node! Yeah the issue is that calling ‘View Name’ parameter gives empty values, whether or not it is a link…

1 Like

@Alban_de_Chasteigner thank you so much!.
do you happen to have something for the sheets as well?

i want to copy sheets + Views from a linked file…

Simply connect the Sheet output to the View Properties node.
Use a List.Join node for the views+sheets.

1 Like

Thank you so much!