from datetime import datetime
from zipfile import ZipFile
import xml.etree.ElementTree as ET
import os
from vpython import *
import numpy as np
from tkinter import filedialog as fd
What exactly is the problem? You need to reduce your program to a very short test program that shows the problem, and also state what the problem is. Otherwise we have no way to deal with your post.
from datetime import datetime from zipfile import ZipFile import xml.etree.ElementTree as ET import os from vpython import * import numpy as np from tkinter import filedialog as fd
now = datetime.now()
def select_3mf(): filename = fd.askopenfilename() return filename
def load_3mf(filename): with ZipFile(filename, 'r') as zipObj:
Extract all the contents of 3mf file in new directory specified by os.path.splitext(filename)[0]