本文整理汇总了Python中dxfwrite.engine.DXFEngine类的典型用法代码示例。如果您正苦于以下问题:Python DXFEngine类的具体用法?Python DXFEngine怎么用?Python DXFEngine使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DXFEngine类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_insert2
def test_insert2(self):
block = DXFEngine.block('TEST')
self.assertTrue(DXFEngine.insert2(block, insert=(0,0), attribs={}))
示例2: test_mtext
def test_mtext(self):
self.assertTrue(DXFEngine.mtext("TEXT", insert=(0,0), linespacing=1.5))
示例3: test_table
def test_table(self):
self.assertTrue(DXFEngine.table(insert=(0, 0), nrows=10, ncols=10,
default_grid=True))
示例4: test_block
def test_block(self):
self.assertTrue(DXFEngine.block(name="TEST", basepoint=(0, 0)))
示例5: test_polymesh
def test_polymesh(self):
self.assertTrue(DXFEngine.polymesh(nrows=10, ncols=10))
示例6: test_insert
def test_insert(self):
self.assertTrue(DXFEngine.insert(blockname="TEST", insert=(0, 0)))
示例7: test_attrib
def test_attrib(self):
self.assertTrue(DXFEngine.attrib(text="TEXT", insert=(0, 0)))
示例8: test_ucs
def test_ucs(self):
self.assertTrue(DXFEngine.ucs(name="TEST"))
示例9: test_appid
def test_appid(self):
self.assertTrue(DXFEngine.appid(name="TEST"))
示例10: test_linetype
def test_linetype(self):
self.assertTrue(DXFEngine.linetype(name="TEST"))
示例11: test_viewport
def test_viewport(self):
self.assertTrue(DXFEngine.vport(name="TEST"))
示例12: test_style
def test_style(self):
self.assertTrue(DXFEngine.style(name="TEST"))
示例13: test_layer
def test_layer(self):
self.assertTrue(DXFEngine.layer(name="TEST"))
示例14: test_drawing
def test_drawing(self):
self.assertTrue(DXFEngine.drawing())
示例15: test_text
def test_text(self):
self.assertTrue(DXFEngine.text(text="TEXT", insert=(0, 0), height=3.))