Mi_Dang
(Mi Dang)
May 17, 2024, 4:04am
1
I use this method to open the folder, Export (object name to file name) & Import (file name to object name) but it doesn’t work for compressed files. Is there any way that I can get the (object name) file name by importing stl from within the compressed package?
example.zip (12.4 MB)
scottd
(Scott Davidson)
May 17, 2024, 4:11am
2
There is some new technology in Rhino 8 that can help with this.
Do you have any example of the files?
It also can be processed with grasshopper now much easier.
The name, color and layer can all be used to sort the objects.
Mi_Dang
(Mi Dang)
May 17, 2024, 4:20am
3
Thanks @scottd
I will try it after upgrading in the future. Are there any good solutions for versions below rhino7?
I have too many STL files to process and they all have different file names.
scottd
(Scott Davidson)
May 17, 2024, 9:57am
4
I think the trick is unzip. The files into a folder and then use the existing code you have. There is a library in ironpython 2.7 Zipfile:
https://ironpython-test.readthedocs.io/en/latest/library/zipfile.html
That could work.