Delete views not on sheets except parent views

I am looking to find or create a definition that will delete views not placed on sheets except those that are parent views. This issue is at the moment definitions I have found would not recognise if something is a parent view and by deleting it would remove the dependant views on the sheet.

I would be building it off of this definition to delete views not on sheets.

I found an Autodesk post using different programming languages on this topic. But wasn’t sure how to progress using this information within dynamo.

Thanks,

see if that help full…

1 Like

@JAC,

The correct graphic is rather this one:

@_Vijay : You had the general principle in mind but you have to change the outputs.

4 Likes