- [CommandMethod("tta")]
- public static void tta()
- {
- using (var tr = new DBTransaction())
- {
- var line = new Line(Point3d.Origin, new Point3d(10, 10, 0));
- tr.RegAppTable.Add("TlsCad.Test");
- tr.RegAppTable.Add("TlsCad.Test2");
- line.XData =
- new ResultList
- {
- {1001, "TlsCad.Test"},
- {1002, "{"},
- {1001, "TlsCad.Test2"},
- {1002, "}"}
- };
- var btr = tr.OpenCurrentSpace(OpenMode.ForWrite);
- tr.AddEntity(btr, line);
- }
- }
|