Export batch of sheets to dwg

Hello, I am trying to finalize a script to export a batch of sheets to dwg using Data-Shapes and Genius Loci nodes, but it doesn’t seem to be doing anything.

Here is the script:

And this is the error I get:

Thanks for any help!

Hi @Paloma,

This is a matter of list levels.
There is probably somewhere a list of list connected to the input DirectoryPath or Filename.
Use a Flatten node or set the lacing to longest on the Export DWG in Document node.

Hello Alban,

Thanks for your answer.
I have added a list.flatten node here:

And have changed to longest on the Export DWG in Document, and what happens is that just the first sheet in the batch gets imported… Really strange!!
That also happens without the list.flatten node.

Any ideas would be welcome, but thank you anyway :slight_smile:

Can you show all the inputs of the Export DWG in Document with the previews enabled ?

Here it is:

And another one a bit closer, just in case:

Thanks a lot!

To do this script I followed this tutorial by Aussie BIM Guru

Thanks again!

I can see only the FileName input and not the Directorypath and the Views inputs.

Anyway try to add a Flatten node after your filename codeblock.

1 Like

Alban, that (adding list.flatten) did the trick!!
Thanks a lot for your help :slight_smile:

Have a good weekend

1 Like