import cadquery as cq
from cadquery import Workplane, Sketch, Vector, Location
extruded_objects = cq.Workplane() # Reset the global variable
outline = cq.importers.importDXF("batmanLogo.dxf").wires().val()
offsetDir = 1
wall = cq.Sketch().face(outline, mode='c', tag='outline')
wall.wires(tag='outline').offset(1.6)
wall.wires(tag='outline').offset(0, mode='s')
topBezel = cq.Sketch().face(outline, mode='c', tag='outline')
topBezel.wires(tag='outline').offset(1.6+offsetDir)
topBezel.wires(tag='outline').offset(-1.6+offsetDir, mode='s')
bottomBezel = cq.Sketch().face(outline, mode='c', tag='outline')
bottomBezel.wires(tag='outline').offset(1.6+offsetDir)
bottomBezel.wires(tag='outline').offset(-1.6+offsetDir, mode='s')
result = cq.Workplane().center(0, 0)
result = result.placeSketch(wall).extrude(1)
result = result.faces('>Z').workplane().placeSketch(wall,
topBezel.moved(Location(Vector(0, 0, 1.6))),
).loft()
result = result.faces('>Z').workplane().placeSketch(wall).extrude(2)
cq.exporters.export(result, "C:/Users/Liam Nordvall NA22/Documents/3DFiles/output.stl")