+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Junior Member
    Discipline
    Mechanical
    KrazyMann225's Discipline Details
    Occupation
    Consulting
    Discipline
    Mechanical
    Details
    Company spans a wide range of industries. I mostly do work for mining and bio-mass energy projects, though occasionally I have done HVAC and Plumbing for "commercial" projects.
    Using
    AutoCAD 2008
    Join Date
    Jul 2010
    Location
    Ontario, Canada
    Posts
    23

    Default fraction in kword

    Registered forum members do not see this ad.

    This may be a noob question but, I was wondering if it is possible (with relative ease) to use a fraction as a kword or do I have to go with the decimal equivalents.
    "One who is offended by truth, has no place among those who seek wisdom" - RenderMan

    "Everyone is a genius. But if you judge a fish on its ability to climb a tree, it will live its whole life believing that it is stupid" - Albert Einstein

  2. #2
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    4,043

    Default

    Quote Originally Posted by KrazyMann225 View Post
    This may be a noob question but, I was wondering if it is possible (with relative ease) to use a fraction as a kword or do I have to go with the decimal equivalents.
    What result have your attempt(s) yielded (Post your code)?


    Here's a simple example (no peeking!):
    Code:
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    (initget 1 "1\\4\" 1\\2\" 3\\4\"")
    (setq opt (getkword "\nEnter option [1\\4\"/1\\2\"/3\\4\"]: "))
    (print opt)
    "Potential has a shelf life." - Margaret Atwood

  3. #3
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    4,043

    Default

    Ohh, BTW - Thanks for stealing my signature quote (without attribution), dude.



    CT_thief.png
    "Potential has a shelf life." - Margaret Atwood

  4. #4
    Junior Member
    Discipline
    Mechanical
    KrazyMann225's Discipline Details
    Occupation
    Consulting
    Discipline
    Mechanical
    Details
    Company spans a wide range of industries. I mostly do work for mining and bio-mass energy projects, though occasionally I have done HVAC and Plumbing for "commercial" projects.
    Using
    AutoCAD 2008
    Join Date
    Jul 2010
    Location
    Ontario, Canada
    Posts
    23

    Default

    well, i figured it out just before I discovered that you responded back all i needed to do was double backslash, i thought i had tried it but i think i was mistankly doing double forward slashs, for reasons inknow to me....im going to blame it on lack of sleep. But **** for $%#@ and giggles the winning code (for me) was :

    Code:
      (initget "Custom 1\\8 1\\4 3\\8 1\\2 3\\4 1 1.25 1.5 2 2.5 3 3.5 4 5 6 8 10 12")
      (setq Nominal (getreal "Enter new nominal pipe diameter or [Custom/1\\8/1\\4/3\\8/1\\2/3\\4/1/1.25/1.5/2/2.5/3/3.5/4/5/6/8/10/12]: "))
    "One who is offended by truth, has no place among those who seek wisdom" - RenderMan

    "Everyone is a genius. But if you judge a fish on its ability to climb a tree, it will live its whole life believing that it is stupid" - Albert Einstein

  5. #5
    Junior Member
    Discipline
    Mechanical
    KrazyMann225's Discipline Details
    Occupation
    Consulting
    Discipline
    Mechanical
    Details
    Company spans a wide range of industries. I mostly do work for mining and bio-mass energy projects, though occasionally I have done HVAC and Plumbing for "commercial" projects.
    Using
    AutoCAD 2008
    Join Date
    Jul 2010
    Location
    Ontario, Canada
    Posts
    23

    Default

    well that's hilarious, I got that quote from someone off facebook! the quote is now redacted. you can now put down the bat.......put down the bat........oh god, hel.

  6. #6
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    4,043

    Default

    Quote Originally Posted by KrazyMann225 View Post
    well that's hilarious, I got that quote from someone off facebook! the quote is now redacted. you can now put down the bat.......put down the bat........oh god, hel.
    I'm not even on Facebook, so I'm not sure who, how, why, etc... I'll have to investimagate.

    There's no need to redact; I'm glad you like the quote.

    I don't have a problem with your (or anyone else's) using it, just throw the attribution on there. It's one of the very few original thoughts I've ever had. You wouldn't use someone elses routine without doing the same.

    Cheers!
    "Potential has a shelf life." - Margaret Atwood

  7. #7
    Junior Member
    Discipline
    Mechanical
    KrazyMann225's Discipline Details
    Occupation
    Consulting
    Discipline
    Mechanical
    Details
    Company spans a wide range of industries. I mostly do work for mining and bio-mass energy projects, though occasionally I have done HVAC and Plumbing for "commercial" projects.
    Using
    AutoCAD 2008
    Join Date
    Jul 2010
    Location
    Ontario, Canada
    Posts
    23

    Default

    well in that case, thanks for the assistance too.
    "One who is offended by truth, has no place among those who seek wisdom" - RenderMan

    "Everyone is a genius. But if you judge a fish on its ability to climb a tree, it will live its whole life believing that it is stupid" - Albert Einstein

  8. #8
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    4,043

    Default

    Quote Originally Posted by KrazyMann225 View Post
    well in that case, thanks for the assistance too.
    You're very welcome; I'm glad I was able to help.
    "Potential has a shelf life." - Margaret Atwood

  9. #9
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    4,043

    Default

    Awesome! You made my day, KrazyMann225.

    CT_thief.fixed.jpg
    "Potential has a shelf life." - Margaret Atwood

  10. #10
    Junior Member
    Discipline
    Mechanical
    KrazyMann225's Discipline Details
    Occupation
    Consulting
    Discipline
    Mechanical
    Details
    Company spans a wide range of industries. I mostly do work for mining and bio-mass energy projects, though occasionally I have done HVAC and Plumbing for "commercial" projects.
    Using
    AutoCAD 2008
    Join Date
    Jul 2010
    Location
    Ontario, Canada
    Posts
    23

    Default

    Registered forum members do not see this ad.

    LoL np, it's a good quote and reflects many of the day to day problems of a consultant eng!
    "One who is offended by truth, has no place among those who seek wisdom" - RenderMan

    "Everyone is a genius. But if you judge a fish on its ability to climb a tree, it will live its whole life believing that it is stupid" - Albert Einstein

Similar Threads

  1. Fraction Stacking Question
    By tennis4you in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 26th May 2011, 11:50 am
  2. How do I make fraction look like this
    By marlon in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 3
    Last Post: 7th Aug 2009, 07:52 am
  3. Horizontal fraction
    By Bane in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 3rd May 2008, 01:07 am
  4. Text Override with fraction
    By edwin in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 16th Jan 2006, 03:35 pm
  5. %%201, %%202 and so on.... Fraction Dimension
    By richjenn03 in forum AutoCAD Drawing Management & Output
    Replies: 0
    Last Post: 28th Feb 2005, 10:51 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