Layers clean up

How do you check which layers or objects take the most disk space?

I have many layers and many objects of different types. I would like to clean up to have the file save smaller, but I don’t know what I should delete because I don`t know what takes up me most of my space.

Searched for ‘file size from layers’…

1 Like

Thanks. These scripts from your link show me strange things about my scane, because I have few polysurfaces with many surfaces but those script shows me that few cubes are taking most of memory what is nonsense.

Funny thing is also my scene is around 400MB and after copy all objects from all layers and paste it to new Rhino file, it decreased to 100MB without any other changes.

I`ve created also my own script with ChatGPT but it also says stupid things about what is most heavy object in my scene.

This is my script:
find_most_heavy_objects_chatgpt_notfullyworking.py (3.6 KB)

I have not looked at the script. Maybe you could also just export the content of each layer and then look at the file sizes in the file explorer.

I looked for some quick way to do that. My saves are very heavy and my time is tight. I looked for quick way to remove what is heaviest and go forward. I miss to have some objects explorer in Rhino to do some cleanup like this.

We have also command Audit3dmFile what is best but this output is not user friendly. Objects should be categorized from most heavy to low ones. Layer names should be included. Same as parent directories. Then maybe it would be usable in some quick way.

Another thing is that Audit3dmFile works over an external file not opened one and maybe that’s the answer why when you look into file which you are using you see strange not real things in huge scenes. Something is also wrong behind scene than during long use of scene, scene is bigger than it should what I checked during move my content from one file to other and have 1/4 size. Thanks for help. I don`t have enough time to examine it further.

This is my output after Audit3dmFile. Close to help the user but not much:

Object Table:
    object[0]: 343 bytes, id = b4164a64-c98d-4f82-ad5e-09f901c92a75, name = ""
    object[1]: 343 bytes, id = 82eabf48-136a-4931-aa4d-edf0b2b4e018, name = ""
    object[2]: 343 bytes, id = 1cdaae6d-9731-4985-887f-002ff0091cf7, name = ""
    object[3]: 343 bytes, id = 3f569ee6-b6f0-4557-8ab5-05ee24149365, name = ""
    object[4]: 343 bytes, id = 668cb93b-a5cd-491d-bb6e-0ef7b3aa4a6a, name = ""
    object[5]: 343 bytes, id = 8bf604ae-c0a6-490d-9bce-991df3e7126a, name = ""
    object[6]: 219 bytes, id = bb036d08-ba8f-45cb-8ec7-50a027d7648d, name = ""
    object[7]: 4393 bytes, id = a6c83d79-233e-4511-9495-d6fd3f40a2d9, name = ""
    object[8]: 4493 bytes, id = e73ba5b2-e030-4ad0-9d8c-6e0650781f66, name = ""
    object[9]: 4393 bytes, id = 23d87974-ae98-4089-98e9-56641ba86d92, name = ""
    object[10]: 219 bytes, id = 3ba339e3-f048-47df-b524-e0cdf8052e8c, name = ""
    object[11]: 343 bytes, id = aaf597da-d873-481f-bed2-5e7dc576fc50, name = ""
    object[12]: 66442 bytes, id = 5366234c-f593-4b8e-b4e5-1b2838c4a3a3, name = ""
    object[13]: 20054 bytes, id = e6e6a70a-540f-4fdb-a50b-61d34313406a, name = ""
    object[14]: 115428 bytes, id = 7f62dfb3-47bd-44bb-ac7f-23d842f6c106, name = ""
    object[15]: 115591 bytes, id = fe9125ec-e8e6-4c95-86d8-8e2c057807c9, name = ""
    object[16]: 66840 bytes, id = c857b820-8c67-4199-85dc-77454f806fe0, name = ""
    object[17]: 96790671 bytes, id = c9e8c5b6-0f29-4f07-9484-cffecd574910, name = ""
    object[18]: 343 bytes, id = 8a0fca0f-fe67-4089-8e33-4d8e75ddb744, name = ""
    object[19]: 343 bytes, id = 6dd1127b-b4b7-445e-9093-9df8793cbcd7, name = ""
    object[20]: 343 bytes, id = 6cba6ce5-6e19-47c9-a1e8-d2fe492543c3, name = ""
    object[21]: 343 bytes, id = eec9c6d8-8126-4762-8c98-83e2d4c82aea, name = ""
    object[22]: 343 bytes, id = dd8a71b9-83ae-473b-8e2f-c3d641681b56, name = ""
    object[23]: 343 bytes, id = efc23690-9754-42ab-b49e-8352e55cdc6a, name = ""
    object[24]: 236457 bytes, id = fa60d232-59f2-43f6-b66c-83484dca77ad, name = ""
    object[25]: 84539 bytes, id = 3e1afada-01cb-4c62-b061-b60a3f518716, name = ""
    object[26]: 74074 bytes, id = 8413c40e-7ea6-41f3-99bd-345b9d19c0dd, name = ""
    object[27]: 4440 bytes, id = f88abfe4-7e38-44d3-98d7-bbe73173c29d, name = ""
    object[28]: 4952 bytes, id = 6d2177fd-37b8-4144-ade7-949161fc8df1, name = ""
    object[29]: 4120 bytes, id = dc2ba025-d406-47d4-9815-288d9aa197d9, name = ""
    object[30]: 4408 bytes, id = 11392329-a84d-4d65-a729-9a5fe4641b2d, name = ""
    object[31]: 5208 bytes, id = e80989c9-8446-4e98-a0fd-300d5ed24f2e, name = ""
    object[32]: 5944 bytes, id = e0fb5406-6433-49f2-8b07-aedb60f4b7f5, name = ""
    object[33]: 4057 bytes, id = 23ccb8f3-3e36-4e73-ab2a-98a1080a14e1, name = ""
    object[34]: 13389 bytes, id = 3daa9894-4e64-4c59-bb03-e3d1bbc8e121, name = ""
    object[35]: 12817 bytes, id = f48ed4a8-e5c7-4858-a213-efc4ac91cf6f, name = ""
    object[36]: 13907 bytes, id = 2b907a68-a178-43a9-837c-271431e7a568, name = ""
    object[37]: 119811 bytes, id = a64ef87f-587a-4884-afe1-4188399b9e2d, name = ""
    object[38]: 14520153 bytes, id = 0cca7e4c-2c90-4feb-828a-b55d2c9e57f1, name = ""
    object[39]: 376 bytes, id = 0883c7e0-06ad-4c3b-99c3-1fc899392feb, name = ""
    object[40]: 227 bytes, id = 8908f90e-c7b0-49cd-9dc8-fe09208d6210, name = ""
    object[41]: 376 bytes, id = 56478d74-f3b3-4eea-ac6e-e12cb5753ba9, name = ""
    object[42]: 664 bytes, id = bc20f595-b07d-4f8e-8d3c-578403d30e56, name = ""
    object[43]: 2488 bytes, id = bd28e6b3-85e1-4019-b527-7057101b0c97, name = ""
    object[44]: 376 bytes, id = ba82ab1d-eaa0-4d5c-b216-e9b60f0ab9df, name = ""
    object[45]: 20581 bytes, id = 03c9daf5-4e15-48f6-8335-59ff4401557d, name = ""
    object[46]: 20581 bytes, id = d7778474-bea0-4925-b36e-200f0336669a, name = ""
    object[47]: 20581 bytes, id = 64eeb63e-09d9-49a0-9858-540f7a8c548c, name = ""
    object[48]: 20581 bytes, id = e57a5979-3351-4be5-a8f2-b02070444c6d, name = ""
    object[49]: 20581 bytes, id = 0a705ffc-db75-4179-810a-00c2571ed857, name = ""
    object[50]: 20581 bytes, id = bee8d1eb-7e08-4c86-8128-dfe81f3dad3c, name = ""
    object[51]: 20581 bytes, id = 764d7fb4-5618-496b-9490-2c661ec61bb2, name = ""
    object[52]: 20581 bytes, id = ccb1c79f-6d4e-4ae5-8a05-0dfd0d8fb75c, name = ""
    object[53]: 20581 bytes, id = 0c18de33-eb2c-4894-b7df-8684f0c1db3f, name = ""
    object[54]: 343 bytes, id = 8cf6c1b9-00d0-42ad-afa4-4b7e90ee1f0f, name = ""
    object[55]: 343 bytes, id = dc49858c-96c8-41be-870b-9cf4382346ba, name = ""
    object[56]: 376 bytes, id = 58538538-f081-494e-b873-4114e6df4fba, name = ""
    object[57]: 857 bytes, id = d9b4faf4-fb5c-491d-81a8-ccfbbbfe2ea8, name = ""
    object[58]: 6044 bytes, id = 36a4ce67-0154-4160-afbf-fad228e7ab93, name = ""
    object[59]: 5538 bytes, id = daa2cbed-caa6-4453-8bf8-86ec84b8e837, name = ""
    object[60]: 5149 bytes, id = e763e56b-c30c-4173-b87b-ed9b50f54b26, name = ""
    object[61]: 7870 bytes, id = 597306ce-5035-4684-8ac9-551106239ee8, name = ""
    object[62]: 219 bytes, id = d4e48564-d350-41d9-8e2c-bb7b4ae246a7, name = ""
    object[63]: 4489 bytes, id = 1b3494ee-0c3b-48f5-adf3-9e08597a67b7, name = "heasdllight.png"
    object[64]: 464319 bytes, id = f5cb7bc3-0e7a-4d04-b9c0-a9e9f2c4147d, name = ""
    65 objects with 3 plug-in data items, 112986785 bytes (offset 229827 to 113216612)

That is not the entire output from Audit3dm file… only the object table part. It might be that some plug-in (render??) is placing some large amounts data on objects. The entire Audit3dm output might tell us which one.

I`ve solved the problem. So my problem was that I had saved files about 400MB each, and when I looked into a scene, there was nothing big like that.

Answer for my problem I solved with the help of @Helvetosaur (not direct one but it directed me to right path), and it`s related to my previous post: Smoother polysurface display shading (emap) - #3 by mdesign

Those previews like Emap and for example DraftAngleAnalysis change polysurfaces to meshes and they store those meshes in file save.

So when I triggered two commands: ClearAnalysisMeshes and ClearAllMeshes then my save changed from 400MB to 2MB :slight_smile:
image

So I think that I always do those clearing up before making saves and I will save a lot disk space.

Purge and SaveSmall are options worth looking into. Note that with Purge you can choose what to purge and what to not affect too.
Using ClearAllMeshes will make the file slower to open since it will have to remesh all objects.

(For the graphiccard to be able to show the objects it needs meshes, it does not render the nurbs, it’s the render meshes generated from the objects + the nurb curves that are shown in your viewports)

2 Likes

How to do SaveAs (save as a new file) with Savesmall option?

Savesmall is same as Save not as SaveAs.

In the SaveAs dialog…

1 Like

Thanks. I haven`t noticed :slight_smile: