TTF formatting in Table text makes table unselectable when you click on cell text

Discussion in 'AutoCAD' started by Ted Schaefer, Jan 21, 2005.

  1. Ted Schaefer

    Ted Schaefer Guest

    Hi,

    If you create an excel spread sheet and format any cell(s) to a different
    font. Then copy it to the clipboard. Then in AutoCAD use paste special /
    autocad entities, to paste it in the drawing. During a command like Erase,
    you will not be able to pick on the text in the formatted cells. They will
    act as if the cells were blank and go into an implied window selection.

    If you start a table in AutoCAD and format any protion of the text as
    truetype and it will not be selectable during the erase command.

    This affects any vba or lisp program as well. And, its annoying since your
    program can't count on the table formatting.

    So, to work reliably, you have to pick on a grid to use this code, but then
    you don't get a point inside a cell for a reliable tblObj.hitest.

    Public Sub UpdateTableMtext()
    Dim tblObj As AcadTable
    Dim tblPt As Variant
    ThisDrawing.Utility.GetEntity tblObj, tblPt, vbCrLf & "Select Table text to
    update: "
    End Sub

    Any work arounds?

    So What's up with TTF?

    I hope the next version of there are some long overdue improvements to TTF
    handling.

    - Ted Schaefer
    WD Partners
     
    Ted Schaefer, Jan 21, 2005
    #1
  2. Been that way since TTFs came into being - that's why we recommend not to
    use them. They also dramatically increase your file size due to them having
    to be "drawn".

    To get more control, don't copy/paste the spreadsheet. Either draw your own
    lines/text or import the values into an AutoCAD Table object.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Jan 22, 2005
    #2
  3. Ted Schaefer

    Ted Schaefer Guest

    Mike,

    In Excel, if you "format" the cells and check the normal box the spread
    sheet will
    paste in OK - but whats the point, there goes the formatting.

    By file size increase, I assume that you mean output files where the font
    gets "stroked"
    and each letter becomes raster. This occures when there's any width factor
    applied
    to the style or any Z level.

    Since this jacks up the file size of the prized "dwf" format, I don't see
    how Autodesk can
    let this go on release, after release which providing features much less
    important
    but show well in demos.

    - Ted
     
    Ted Schaefer, Jan 24, 2005
    #3
  4. The point is don't bring them in! If you want formating, draw your own. The
    file size is large for ALL AutoCAD file types - DWGs, PLTs, DWFs. As I
    said, you really are not supposed to use TTFs in AutoCAD, ever.

    --
    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Jan 24, 2005
    #4
  5. Surely Autodesk should get it together with TrueType fonts. If using shx fonts still reduces file size then they are definately worth using. I would actually like to see support for OpenType fonts. Our drawings are converted to Adobe Illustrator format with the fonts converted to OpenType fonts. Currently to keep the length of text as close to the drawing as possible I have to apply a different width factor on output dependent on whether the text is upper or lower case. Having said all this if the compile command could compile filled fonts at the correct size (I think it creates the shx fonts at approx. 70%) and compile TTF's & OTF's then I would be very happy to use shx fonts.

    Regards - Nathan
     
    Nathan Taylor, Jan 24, 2005
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.