How do I count the amount of layouts in a dwg?

I’m looking for a python solution inside of dynamo on counting the total number of layouts in a dwg, then using that number as output.

Hi @ssimpsonHU35B,

You can use the Camber package for this. The Layout.GetLayouts node should do the trick.


Hello mzjensen,

I found the Camber nodes, but I am looking for a solution in Python.

Use the layout manager object in python. You can see this used in the python script i wrote here. Sheet Set - Replace specific block on each sheet with a new block - #12 by WrightEngineering