Refreshing all layouts is a step in a larger task that will ultimately produce a set of .pdf files of each Architectural layout in a model full of mixed discipline layouts. I started with code found here.
This confirms for me that I am on the right track for capturing only the Architectural sheets in the model. And capturing/not processing a sheet that has no discipline assigned to it. [Not sure what that is all about yet]. The number between the "..." and the sheet number is only a sequential number that is incremented as I examine each layout for inclusion in the set of Architectural sheets.
I am having trouble understanding why the update of the layouts with:
does not occur. I am verifying the update by adding a couple of random walls and verifying success of this process with a manual update.
I believe I have not captured the proper database ID and/or have not set it as current. Maybe the choice of functions used is not correct. I am not sure. Any direction provided would be helpful.
Chris Gilmer Intel i9-12950HX CPU @ 2.30GHz, 16 cores NVIDIA GeForce RTX 3080 48.0 GB RAM Windows 10 Pro 64-bit