Table Outline invisible

Table Outline invisible

Anonymous
Not applicable
693 Views
3 Replies
Message 1 of 4

Table Outline invisible

Anonymous
Not applicable

Hi,

 

Is there a property available which changes the oultine of a table to invisible / not printable

By default it prints the lines around and inside the table,

I want to change it that it is not visible on my print, but I don't know which property I should use and how I can do it.

 

anyone?

 

Best regards,

 

Gerald

0 Likes
Accepted solutions (1)
694 Views
3 Replies
Replies (3)
Message 2 of 4

Hallex
Advisor
Advisor
Accepted solution

See cell borders property,

       [CommandMethod("tablevis")]
        public static void setGridLinesInvisible()
        {
            Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
            Editor ed = doc.Editor;
            Database db = doc.Database;
            PromptEntityOptions opts = new PromptEntityOptions("\nSelect the table:");
            opts.SetRejectMessage("\nMust be the table only...");
            opts.AddAllowedClass(typeof(Table), true);
            PromptEntityResult res = ed.GetEntity(opts);
            if (res.Status != PromptStatus.OK) return;
            using (Transaction tr = db.TransactionManager.StartTransaction())
            {
                DBObject obj = tr.GetObject(res.ObjectId, OpenMode.ForRead, false) as DBObject;
                Table tbl = obj as Table;
                if (tbl==null) return;
                tbl.UpgradeOpen();
               tbl.Cells.Borders.Bottom.IsVisible = false;
               tbl.Cells.Borders.Top.IsVisible = false;
               tbl.Cells.Borders.Right.IsVisible = false;
               tbl.Cells.Borders.Left.IsVisible = false;
                tr.Commit();
            }
        }

 

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
0 Likes
Message 3 of 4

Anonymous
Not applicable

thx for the reply it was exactly what I was looking for, sometime you don't see the trees in the forest.Smiley Wink

0 Likes
Message 4 of 4

Hallex
Advisor
Advisor

Me too...

But glad if this helps,

Cheers 🙂

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
0 Likes