+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Jan 2009
    Posts
    35

    Default Changing text style

    Registered forum members do not see this ad.

    Does anyone know how to change text style in this lisp routine (font..)?
    Attached Files

  2. #2
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,708

    Default

    It sets it near the top:

    Code:
     (command "style" "standard" "wgsimpl.shx" "" "" "" "" "")
    Either remove that line, or change it to what you want.

    Lee
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  3. #3
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Jan 2009
    Posts
    35

    Default

    Thanks for the answer Lee Mac.
    I saw that and I did it,but...
    If I modify it or erase it, it won't recognize the greek fonts.

    When you select a polyline it automatically adds a letter in every vertex in order. A,B,C ect (but in greek Α,Β,Γ..)

    See these samples with the previous routine (with some changings)

    The result is in 1.jpg but I need the second one (2.jpg)
    Attached Images
    Attached Files

  4. #4
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,708

    Default

    You will probably need to use a font that supports greek
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  5. #5
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Jan 2009
    Posts
    35

    Default

    Code:
     (command "style" "standard" "arial.shx" "" "" "" "" "")
    Is this correct?

  6. #6
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,708

    Default

    Perhaps something like:

    Code:
    (commmand "_.-style" "standard" "arial.ttf" "" "" "" "" "")
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  7. #7
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Jan 2009
    Posts
    35

    Default

    Once again correct...

    Can you explain me where exactly is the code that adds the next letter in the next vertex (etc.)
    I think is in the next one sample.

    Code:
    ;**************LABELS ON LANDMARKS**********************
       (setq ptp (polar (nth i pllst) angtxt (* ht 1.5)))
        (if (= i 17)
                    (setq alfa 194)
        )
        (command "text" "j" "c" 
                     ptp
                     ht 100
                           (if (< i 24)
                                       (strcat prfx "%%" (itoa (+ i alfa)) sufx)
                                       (strcat prfx "%%217" (itoa (- i 23)) sufx)
                           )
        );endtext
    I congratulate you one more time not only for your help but for your lisp you gave us (- Incremental Numbering Suite - Automatic Numbering - Attribute Modification Suite - Dynamic Information Tool - Curve Aligned Text - Piping Program -). Very useful
    Last edited by tagkelas; 22nd Aug 2009 at 11:42 pm.

  8. #8
    Senior Member stevesfr's Avatar
    Computer Details
    stevesfr's Computer Details
    Operating System:
    Vista <ugh>
    Computer:
    HP Pavilion
    Monitor:
    Dell Trinitron
    Using
    AutoCAD 2008
    Join Date
    Jan 2009
    Location
    Central Illinois, USA
    Posts
    270

    Default

    Quote Originally Posted by Lee Mac View Post
    Perhaps something like:

    Code:
    (commmand "_.-style" "standard" "arial.ttf" "" "" "" "" "")

    Is it possible to somehow utilize an "english" font in this program, or is it not worth it to convert all the called for ascii symbols? A clue please.
    Steve

  9. #9
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,708

    Default

    Steve,

    Why not ASMI's program instead - I think it performs the same operation:

    http://www.asmitools.com/Files/Lisps/Tabcord.html
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  10. #10
    Senior Member stevesfr's Avatar
    Computer Details
    stevesfr's Computer Details
    Operating System:
    Vista <ugh>
    Computer:
    HP Pavilion
    Monitor:
    Dell Trinitron
    Using
    AutoCAD 2008
    Join Date
    Jan 2009
    Location
    Central Illinois, USA
    Posts
    270

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Lee Mac View Post
    Steve,

    Why not ASMI's program instead - I think it performs the same operation:

    http://www.asmitools.com/Files/Lisps/Tabcord.html
    Lee, thanks, should have searched deeper; plus tabcord has all sort of user customization possibilities available!
    Steve

Similar Threads

  1. changing the text style of an attribute LT2005
    By \\shorty// in forum AutoCAD General
    Replies: 2
    Last Post: 17th Jun 2009, 06:27 pm
  2. Changing Dim Style to represent
    By Vikes_Fl in forum AutoCAD General
    Replies: 5
    Last Post: 21st Apr 2009, 07:12 pm
  3. Dim Style overrides & changing dim style variables.
    By muck in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 3rd Dec 2008, 03:00 pm
  4. changing the text style name
    By The Courage Dog in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 27th Aug 2008, 02:08 pm
  5. Shortcut for changing text style on very large drawing?
    By Molloy in forum AutoCAD Drawing Management & Output
    Replies: 41
    Last Post: 5th Sep 2007, 01:36 pm

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