+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Senior Member harilalmn's Avatar
    Computer Details
    harilalmn's Computer Details
    Operating System:
    Win XP
    Discipline
    Architectural
    harilalmn's Discipline Details
    Occupation
    CAD Manager
    Discipline
    Architectural
    Using
    AutoCAD 2010
    Join Date
    Aug 2010
    Location
    Bangalore, India
    Posts
    115

    Default Changing Font in Cells of AutoCAD Tables

    Hello All,
    Wow...!! It is really great to have this site back after maintenance..!!
    I was craving for it...!!!


    Well... I have a small problem.
    How to Clear Font Override Inside Cells of a Table using VBA?
    Assume I have a table which has same cell style and text style for all the cells of a table, but with different fonts in different cells. So evenif I change the cellstyle or text style of a cell, it doesn't make any change..!!

    I tried the lisp StripMText and all.... But it worked for some tables only.
    I have to edit this in more than 600 tables from 60 files..!!!
    Is there anyway I can access the 'Font' property of a cell through VBA?

  2. #2
    Super Member fixo's Avatar
    Computer Details
    fixo's Computer Details
    Operating System:
    Windows 7
    Motherboard:
    E7500
    CPU:
    Intel(R)Core(TM)2 DUO CPU 2.93HGz
    RAM:
    4098 Gb
    Graphics:
    1024 Gb
    Using
    AutoCAD 2009
    Join Date
    Jul 2005
    Location
    Pietari, Venäjä
    Posts
    1,687

    Default

    You might be want to look at his thread
    You have to create cell styles as many as you need
    using code written by Andrey from there:
    http://www.theswamp.org/index.php?topic=34217.msg395614
    then you could be change the newly created cell styles manually
    and set the different text properties for these styles
    Then just apply them to your cells

    ~'J'~
    The soul is healed by being with children. - Fyodor Dostoyevsky, novelist (1821-1881)

  3. #3
    Senior Member harilalmn's Avatar
    Computer Details
    harilalmn's Computer Details
    Operating System:
    Win XP
    Discipline
    Architectural
    harilalmn's Discipline Details
    Occupation
    CAD Manager
    Discipline
    Architectural
    Using
    AutoCAD 2010
    Join Date
    Aug 2010
    Location
    Bangalore, India
    Posts
    115

    Default

    Great suggestion fixo..., but, the problem is that various cell styles are already existing.
    Each table has its cells assigned with a particular cell style. But the Font inside the cell has been a mess.
    For the same table, say, cell A1 and B3 have the same cell style assigned.
    But, the one has font Arial in it and another has Calibiri, where the cell style has RomanS.
    I think changing the cell style doesn't change the font of the cell, unless the cell has the same font as that of the cell style.
    Is it not so?

  4. #4
    Super Member fixo's Avatar
    Computer Details
    fixo's Computer Details
    Operating System:
    Windows 7
    Motherboard:
    E7500
    CPU:
    Intel(R)Core(TM)2 DUO CPU 2.93HGz
    RAM:
    4098 Gb
    Graphics:
    1024 Gb
    Using
    AutoCAD 2009
    Join Date
    Jul 2005
    Location
    Pietari, Venäjä
    Posts
    1,687

    Default

    Registered forum members do not see this ad.

    Another idea is using mtext formatting to overrwrite cell font
    You could be recreate cell text using it I think
    Not tested, just from the top of my head
    The soul is healed by being with children. - Fyodor Dostoyevsky, novelist (1821-1881)

Similar Threads

  1. Change Default Font in Tables
    By ziemerd in forum AutoCAD Beginners' Area
    Replies: 1
    Last Post: 3rd Nov 2009, 08:34 pm
  2. Changing font
    By Jimleon in forum AutoCAD Beginners' Area
    Replies: 13
    Last Post: 29th Oct 2008, 12:25 pm
  3. Changing font in table cells Vanilla ACAD 09
    By Hepcat in forum AutoLISP, Visual LISP & DCL
    Replies: 0
    Last Post: 28th Aug 2008, 03:23 am
  4. Changing default text size in table cells
    By Siberian in forum AutoCAD Beginners' Area
    Replies: 1
    Last Post: 5th Jun 2008, 10:24 am

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts