Get the best of 3D Printing in your inbox, plus exclusive offers and recommendations from the Shapeways team.
model = self.assembly.SWModel()
model.title = "test"
model.desc = "test"
model.modeltype = "STL"
model.file = (base64.b64encode(open("test.stl").read()))
model.filename = "test"
model.tags = "test"
model.has_color = 0
model.scale = 1.0
model.markup = 1.0
loaded = self.shapelink.submitModel(self.session_id,model,"", self.application_id)
[Updated on: Tue, 12 July 2011 13:41 UTC]
model.file = tuple(bytearray((open("test.stl").read()),"base64"))
We're sorry to inform you that we no longer support this browser and can't confirm that everything will work as expected. For the best Shapeways experience, please use one of the following browsers: