def save_JDF_DXF(self):
     self.jdf.get_member("xy_offsets").reset(self.jdf)
     xy_off=self.jdf.xy_offsets
     verts=[]
     for p in self.jdf.patterns:
         a=self.agent_dict[p.name] #[agent for agent in self.agents if agent.name==p.name][0]
         for chip in xy_off.get(p.name, []):
             sPoly(a, x_off=chip[0]*1.0e-6, y_off=chip[1]*1.0e-6, vs=verts)
     save_dxf(verts, color="green", layer="PADS", file_path="marialasertest.dxf", write_mode="w")
Beispiel #2
0
 def save_JDF_DXF(cls):
     cls.jdf.get_member("xy_offsets").reset(cls.jdf)
     xy_off = cls.jdf.xy_offsets
     verts = []
     for p in cls.jdf.patterns:
         a = cls.agent_dict[
             p.
             name]  #[agent for agent in self.agents if agent.name==p.name][0]
         for chip in xy_off.get(p.name, []):
             sPoly(a,
                   x_off=chip[0] * 1.0e-6,
                   y_off=chip[1] * 1.0e-6,
                   vs=verts)
     save_dxf(verts,
              color="green",
              layer="PADS",
              file_path="marialasertest.dxf",
              write_mode="w")
Beispiel #3
0
 def direct_save(self, verts, color, layer, file_path=None, write_mode='w'):
     if file_path is None:
         file_path = self.file_path
     save_dxf(verts, color, layer, file_path, write_mode)
     log_info("Direct save of data to: {}".format(file_path))
Beispiel #4
0
 def direct_save(self, verts, color, layer, file_path=None, write_mode='w'):
     if file_path is None:
         file_path=self.file_path
     save_dxf(verts, color, layer, file_path, write_mode)
     log_info("Direct save of data to: {}".format(file_path))