Code: Select all
' Save As
longstatus = Part.SaveAs3(sModelFullName, 0, 2)
SHAddToRecentDocs 2, sModelFullName
End Sub
Code: Select all
' Save As
longstatus = Part.SaveAs3(sModelFullName, 0, 2)
SHAddToRecentDocs 2, sModelFullName
End Sub
Sounds like Windows 11 reads the data differently then Windows 10. Maybe you're missing an extension?SPerman wrote: ↑Thu Jun 01, 2023 3:21 pm I have a macro that I wrote several years ago that saves the model as a .3mf file. It worked fine until I upgraded to windows 11. Now, if I try and open the .3mf file, the slicing software (multiple) says the file does not contain any geometry. I went to my macro and changed the extension from .3mf to .stl and it works fine. Does anyone have any idea what might have changed, or how to fix it? (2022 SP5)
Code: Select all
' Save As longstatus = Part.SaveAs3(sModelFullName, 0, 2) SHAddToRecentDocs 2, sModelFullName End Sub
Can you upload a sample 3mf file that fails to open?SPerman wrote: ↑Thu Jun 01, 2023 3:21 pm I have a macro that I wrote several years ago that saves the model as a .3mf file. It worked fine until I upgraded to windows 11. Now, if I try and open the .3mf file, the slicing software (multiple) says the file does not contain any geometry. I went to my macro and changed the extension from .3mf to .stl and it works fine. Does anyone have any idea what might have changed, or how to fix it? (2022 SP5)
Code: Select all
' Save As longstatus = Part.SaveAs3(sModelFullName, 0, 2) SHAddToRecentDocs 2, sModelFullName End Sub
Code: Select all
2023-06-20 12:06:30.679563[Thread 0x00005778]:Slic3r::_BBS_3MF_Importer::_load_model_from_file:1505extract 4th file Metadata/model_settings.config, total=14
2023-06-20 12:06:30.679563[Thread 0x00005778]:can not find object for assemble item, id= 2
2023-06-20 12:06:30.679563[Thread 0x00005778]:Error (parsing aborted) while parsing xml file at line 31
2023-06-20 12:06:30.679563[Thread 0x00005778]:Archive does not contain a valid model config
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<config>
<object id="2">
<metadata key="name" value="CTW-6C-015-000"/>
<metadata key="extruder" value="1"/>
<part id="1" subtype="normal_part">
<metadata key="name" value="CTW-6C-015-000"/>
<metadata key="matrix" value="1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1"/>
<metadata key="source_file" value="CTW-6C-015-000.3mf"/>
<metadata key="source_object_id" value="0"/>
<metadata key="source_volume_id" value="0"/>
<metadata key="source_offset_x" value="0"/>
<metadata key="source_offset_y" value="-18.033938050270081"/>
<metadata key="source_offset_z" value="1.9049999713897701"/>
<mesh_stat edges_fixed="0" degenerate_facets="0" facets_removed="0" facets_reversed="0" backwards_edges="0"/>
</part>
</object>
<plate>
<metadata key="plater_id" value="1"/>
<metadata key="locked" value="false"/>
<metadata key="thumbnail_file" value="Metadata/plate_1.png"/>
<metadata key="top_file" value="Metadata/top_1.png"/>
<metadata key="pick_file" value="Metadata/pick_1.png"/>
<model_instance>
<metadata key="object_id" value="2"/>
<metadata key="instance_id" value="0"/>
<metadata key="identify_id" value="331"/>
</model_instance>
</plate>
<assemble>
<assemble_item object_id="2" instance_id="0" transform="1 0 0 0 1 0 0 0 1 1 -17.033938050270081 1.9049999713897705" offset="0 0 0" />
</assemble>
</config>
Looking at the the files in your 3mf2.zip, the two 3MF files are very different. Specifically the Metadata folder. Here they are side by side:SPerman wrote: ↑Tue Jun 20, 2023 2:13 pm It is a part created in solidworks, exported from the file ( not an assembly.)
This is what is exported out of solidworks.
image.png
This is what appears in Ideamaker (the only software other than solidworks which will open the file.)
image.png
I just duplicated the entire process to make sure I didn't do something along the way to cause the problem.
The attached folder contains 2 files. One opens, the other doesn't. I've also included the 2 solidworks files in case you want to check them out.