Background Open File - Delete Views

Hi All,

Im having trouble getting views from a document open in the background, using a simular method described in the thread here: Open File, Delete Views, Close and Save.

The 'Super Collector Views From Document" node seems to be returning ‘nulls’ for all items. can anyone see if i’m missing a step?

@Andreas_Dieckmann, any chance you could take a look?

You cannot delete all views in Revit, so you cannot delete all views in Dynamo.
There needs to be a least one view.

Marcel, im aware. the screenshot is an extract of a larger script where selected views are excluded from the list before detletion.

As shown above, the problem is in creating the list of sheets.

Andrea’s work is built in a very accessible way, so there may be no need for you to wait for him or others to solve this for you.

Double click on the super connector node and you’ll open the node so you can edit/review it. I’m there will be all the nodes which make up the node. Copy all of those to the clipboard except the inputs and outputs, switch back to your main file, and wire them in as if they were the custom node. Run the graph and see where the error is.

Super Collector is not in Clockwork…
image

Ah!!! Good catch. Thanks @john_pierson. Dyf file’s are dyf file’s though so the same holds true. :slight_smile:

Good spot john. Bakery it is.

Super collector requires a document, while i was trying to input a list. solved using list.getitematindex

Jacob, thanks for encouraging me to be less lazy.

1 Like