def newfile(self): from popupcad.filetypes.layerdef import LayerDef from popupcad.materials.materials import Carbon_0_90_0,Pyralux,Kapton design = Design() design.define_layers(LayerDef(Carbon_0_90_0(),Pyralux(),Kapton(),Pyralux(),Carbon_0_90_0())) self.load_design(design) self.view_2d.zoomToFit()
def newfile(self): from popupcad.filetypes.layerdef import LayerDef import popupcad.filetypes.material2 as materials # from popupcad.materials.materials import Carbon_0_90_0, Pyralux, Kapton design = Design() design.define_layers( LayerDef(*materials.default_sublaminate)) self.load_design(design) self.view_2d.zoomToFit()