예제 #1
0
def create_new_doc(config):
    doc = sk_model.SKDocument(config)
    layout = sk_model.SKLayout()
    doc.childs.append(layout)
    doc.layout = layout
    doc.childs.append(sk_model.SKLayer())
    grid = sk_model.SKGrid()
    doc.childs.append(grid)
    doc.grid = grid
    glayer = sk_model.SKGuideLayer()
    doc.childs.append(glayer)
    doc.guidelayer = glayer
    return doc
예제 #2
0
 def guidelayer(self, name, p1, p2, p3, p4, layer_color):
     glayer = sk_model.SKGuideLayer(name, p1, p2, p3, p4, layer_color)
     self.active_layer = glayer
     self.add_object(glayer, self.model)
     self.model.guidelayer = glayer