- [CommandMethod("t2")]
- public static void Test2()
- {
- using (var tr = new DBTransaction())
- {
- var tsid = tr.TextStyleTable.Add("Test1", "gbenor.shx", "gbcbig.shx", 0.7);
- var btr = tr.OpenModelSpace();
- var tstr = tr.TextStyleTable["Test1"].GetObject<TextStyleTableRecord>(tr);
- var txt =
- new DBText
- {
- TextStyleId = tsid,
- TextString = "hello",
- Position = new Point3d(10,10,0),
- WidthFactor = 0.7,
- };
- tr.AddEntity(btr, txt);
- }
- }
|