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; }
public static void SetOptions(this Entity ent, EntityOptions opt) { opt?.SetOptions(ent); }
public static void AddPointToCurrentSpace(this Point2d pt, [CanBeNull] EntityOptions opt = null) { AddPointToCurrentSpace(pt.Convert3d(), opt); }
public static void AddPointToCurrentSpace(this Point3d pt, [CanBeNull] EntityOptions opt = null) { var ptDb = new DBPoint(pt); AddEntityToCurrentSpace(ptDb, opt); }
public static void AddEntityToCurrentSpace([CanBeNull] this Entity ent, EntityOptions entityOptions) { AddEntityToCurrentSpace(ent?.Yield(), entityOptions); }