#!/usr/bin/env python3 # -*- coding: utf-8 -*- #************************************************************************** # Copyright (C) 2019, Paul Lutus * # * # This program is free software; you can redistribute it and/or modify * # it under the terms of the GNU General Public License as published by * # the Free Software Foundation; either version 2 of the License, or * # (at your option) any later version. * # * # This program is distributed in the hope that it will be useful, * # but WITHOUT ANY WARRANTY; without even the implied warranty of * # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * # GNU General Public License for more details. * # * # You should have received a copy of the GNU General Public License * # along with this program; if not, write to the * # Free Software Foundation, Inc., * # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * #************************************************************************** import sys, os sys.path.append(os.getcwd()) from create_adaptor import build # default values vertices = 64 supports = 4 wt = 2 # wall thickness mm # for OD, part outside diameter widths and names of 3D printer mounting locations all_od = ((31.5,"External"),(51.5,"Internal")) # for ID, part inside diameter widths, part overall heights # and names of filament types/makers all_id = ((50,58,'Kodak Nylon'),(72,67,"3D Hero"),(53.5,67,"Hatchbox"),(56,65,"Tronxy"),(54,67,"Overture")) for xod in all_od: odia,odname = xod for xid in all_id: idia,h,idname = xid fname = "%s %s" % (odname,idname) idstring = "Filament Reel Adaptor: %s %.1f/%.1f/%.1f" % (fname,odia,idia,h) print(idstring) build(odia,idia, wt,h,vertices,supports, # USER replace this with your own file path fname,"/netbackup/data/3d_printing_projects/filament_reel_adaptors")