Results 1 to 4 of 4

Thread: sequence of numbers and letters

  1. #1
    Member
    Join Date
    2006-03
    Posts
    15
    Login to Give a bone
    0

    Default sequence of numbers and letters

    Hello

    I have attached a lsp that will put numbers or letters in a given sequence in 4 different
    directions, it's idea for car park numbering, grid lines and anything else you can think of
    however it does not grab your text style font automatically and set them to the drawing scale.
    Can anyone help put the code into this program. Please

    many thanks for your help

    Hevgee
    Attached Files Attached Files

  2. #2
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043
    Login to Give a bone
    0

    Default Re: sequence of numbers and letters

    If you want to to grab the text style, and change the height of the text style, and set it current use
    Code:
    (if (setq StyEnt (tblobjname "style" "YourNameHere"))
     (progn
      (entmod
       (subst
        (cons 40 (* (/ 3 32.0) (getvar "dimscale")))
        (assoc 40 (entget StyEnt))
        (entget StyEnt)
       )
      )
      (setvar "textstyle" "YourNameHere")
     )
     (prompt "\n Text style does not exist in drawing!!")
    )

  3. #3
    Member
    Join Date
    2006-03
    Posts
    15
    Login to Give a bone
    0

    Default Re: sequence of numbers and letters

    Thanks Tim for getting back to me and putting up the code
    I have copied this into the program and it works
    I just wonder how it finds Arial.TLL when all I use is just Arial,
    is there anyway of nailing down the correct font.

    many thanks
    Hevgee

  4. #4
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043
    Login to Give a bone
    0

    Default Re: sequence of numbers and letters

    You're welcome.

    As far as the fonts go. I don't use true type fonts, and I'm not sure what style of font is .tll, but I would think that if you supplied the full path to the font you wanted, then it would use that font. Maybe someone with more experience with fonts will chime and let us know.

Similar Threads

  1. Adding numbers, ingoring letters
    By robert.1.hall72202 in forum AutoLISP
    Replies: 16
    Last Post: 2016-11-05, 02:09 AM
  2. Window tags with letters not numbers
    By jastuccio in forum ACA General
    Replies: 4
    Last Post: 2009-08-12, 05:17 PM
  3. Ability to have letters as well as numbers in as revision sequence numbers
    By revit.wishlist1942 in forum Revit Architecture - Wish List
    Replies: 1
    Last Post: 2007-10-01, 01:07 PM
  4. Change all selected numbers to be in sequence
    By Cadtharsis in forum AutoCAD General
    Replies: 3
    Last Post: 2007-03-29, 08:34 PM
  5. Call out sections as numbers or letters?
    By crohloff.72988 in forum CAD Standards
    Replies: 9
    Last Post: 2006-06-26, 06:44 PM

Posting Permissions

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