Exemplo n.º 1
0
 public static DBText CreateText(string text, Point3d pos, EntityOptions entityOptions= null)
 {
     var dbText = new DBText();
     dbText.TextString = text;
     dbText.Position = pos;
     dbText.SetOptions(entityOptions);
     return dbText;
 }
Exemplo n.º 2
0
 public static void SetOptions(this Entity ent, EntityOptions opt)
 {
     opt?.SetOptions(ent);
 }
Exemplo n.º 3
0
 public static void AddPointToCurrentSpace(this Point2d pt, [CanBeNull] EntityOptions opt = null)
 {
     AddPointToCurrentSpace(pt.Convert3d(), opt);
 }
Exemplo n.º 4
0
        public static void AddPointToCurrentSpace(this Point3d pt, [CanBeNull] EntityOptions opt = null)
        {
            var ptDb = new DBPoint(pt);

            AddEntityToCurrentSpace(ptDb, opt);
        }
Exemplo n.º 5
0
 public static void AddEntityToCurrentSpace([CanBeNull] this Entity ent, EntityOptions entityOptions)
 {
     AddEntityToCurrentSpace(ent?.Yield(), entityOptions);
 }