Thanks for the links!
I’m working on python wrappers for the object enablers for BricsCAD civil, so I’m hoping to find a .DWG file to where I can scan the drawing and make sure I can read / write the properties. I.e. for Tins, Alignments
So far I can create objects, but
….. I’d rather be testing on something that’s more accurate
class TestBCadCivil(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(TestBCadCivil, self).__init__(*args, **kwargs)
self.BCADCIVIL1 = Db.Database(False, True)
self.BCADCIVIL1.readDwgFile("./testmedia/BCADCIVIL1.dwg")
self.BCADCIVIL1.closeInput(True)
def __del__(self):
del(self.BCADCIVIL1)
def test_BsysCvDbAlignment_dxfName(self):
objHnd = Db.Handle("AE")
objId = self.BCADCIVIL1.getObjectId(False, objHnd)
self.assertEqual(objId.isValid(), True)
dbo = Db.Entity(objId)
self.assertEqual(dbo.isA().dxfName(), "BsysCvDbAlignment")
def test_BsysCvDbAlignment_obj(self):
objHnd = Db.Handle("AE")
objId = self.BCADCIVIL1.getObjectId(False, objHnd)
self.assertEqual(objId.isValid(), True)
hAlignment = Cv.CvDbHAlignment(objId)
self.assertFalse(hAlignment.isNullObj())
self.assertEqual(hAlignment.elementCount() ,3)