# Deconstruct All Object

![](https://3405893330-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9gBkJelXEQ5LsYEl7%2Fuploads%2Fgit-blob-2fac908f8d04ff338f49b05852934155cff19475%2FDeconstruct_All_Object.png?alt=media)

![](https://3405893330-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9gBkJelXEQ5LsYEl7%2Fuploads%2Fgit-blob-e019bee7fddc0c580803689dc7f83d66684a456f%2FDeconstruct_All_Object.png?alt=media) - [\[source code\]](https://github.com/ladybug-tools/dragonfly-grasshopper/blob/master/dragonfly_grasshopper/src/DF%20Deconstruct%20All%20Object.py)

Deconstruct any Dragonfly geometry object into ALL of its constituent Dragonfly objects.

This is useful for editing auto-generated child objects separately from their parent. For example, if you want to assign all of the ground floors of a given auto-generated Building to have a Retail ProgramType, this can give you all of such Stories. Then you can assign a Retail ProgramType to them and combine them with the other Stories into a new Building.

## Inputs

* **df\_obj \[Required]**

  A Dragonfly Building, Story or Room2D to be deconstructed into all of its constituent objects. Note that, Room2Ds do not have sub-objects assigned to them and the original object will be output.&#x20;

## Outputs

* **all\_stories**

  Script variable Python&#x20;
* **all\_room2ds**

  Script variable Python&#x20;
