Get Line Pattern from multiple Documents?

Hi all,

Is it possible to get line patterns from a closed family document? Using the background open function?
I am unsure about how to query a line pattern object when I only have the family document.

If anyone could give me some guidance or suggestions I would appreciate that.

Thanks a lot!

Hi @mitchellpUDG9S,

Use the Element Types LinePaternElement and a Open Document node.

1 Like

Hi @Alban_de_Chasteigner

Thanks for the response!

So I looked at your workflow and did the following. The one thing I didn’t do is convert the DynDoc to dbDoc, is that step necessary to make the change?

As you can see, all the data is flowing by the looks of it, but it is not making the change in the family document. Do I need to open each Family doc individually? That is what I am trying to avoid if possible.

Thanks again!

Hi,

For the moment, you don’t save your modifications and don’t close the families.
Add a Passthrough and a Close Document nodes at the end with the save option set to true.

Hi Alban,

I added the two nodes at the end, is this the correct order/info to feed them?

I took the ‘document’ output from the “Application.OpenDocumentFile” and plugged it into the Passthrough input. As you can see the Success List all shows false, and again none of the changes take effect in the family documents.

Indeed the Element.SetName is not intented to work in background opened families.
Maybe there is in another package an equivalent node with a document input.

Ahh okay I see, that is unfortunate. Hopefully I can find something that can help with this.
Thanks very much for your time and effort Alban!!