示例#1
0
 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()        
示例#2
0
    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()