Increase font size of display

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
Let's say I have a rectangular slab of dimension 54000mm X 25000mm. When I am writing a C# code to display the length of each side, the numbers are correct but the font size is so small that it is hardly visible. Is there a way how I can view the dimensions without having to zoom in to it?
I am attaching the code as an example. I am trying to display the distance between pt1 and pt2 in the code below:
[CommandMethod("CMD")]
public void Cmd()
{
var doc = Application.DocumentManager.MdiActiveDocument;
var db = doc.Database;
var ed = doc.Editor;
using (var tr = db.TransactionManager.StartTransaction())
{
var pt1 = new Point3d(6e4, 1.5e4, 0);
var pt2 = new Point3d(6e4, 3e4, 0);
AlignedDimension dim = new AlignedDimension(pt1, pt2, pt1, null, db.Dimstyle);
var space = (BlockTableRecord)tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite);
space.AppendEntity(dim);
tr.AddNewlyCreatedDBObject(dim, true);
tr.Commit();
}
}
Best regards,
Rahul Kochar