+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 26
  1. #1
    Forum Newbie
    Using
    AutoCAD 2010
    Join Date
    Aug 2010
    Posts
    8

    Default Adding additional text to Dimension Text Override

    Registered forum members do not see this ad.

    I have a piping isometric that is not drawn to scale that needs to have the imperial dimensions added. The drawing is currently dimensioned in metric with all dimensions having a text override. I am looking for a way to take the text that is in the override and adding the imperial equivalent ie 300 changed to 300 [11.811]. Is this possible with a Lisp? Will the numbers in the text override be able to be converted?

  2. #2
    Luminous Being Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draughtsman
    Discipline
    Mechanical
    Details
    HVAC, Drainage, Water Supply, Fire Fighting and a little about Electricity.
    Using
    AutoCAD 2015
    Join Date
    Oct 2009
    Location
    Great Syria , Living in Abu Dhabi
    Posts
    6,177

    Default

    hello ,

    I also asked a question about Dimensions before, and unfortunetly one body has answerd my question except Mr Kerry Brown,
    and the following link belong to his great codes that also he supported me with. So check it out .

    http://www.theswamp.org/index.php?to...1450#msg131450

    Regards,

    Tharwat

  3. #3
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Win 7 Pro / Win 10 Pro / Linux Mint
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2018
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    19,533

    Default

    Perhaps something like this?

    Code:
    (defun c:ImpDim ( / ss )
      ;; © Lee Mac 2010
    
      (if (setq ss (ssget "_:L" '((0 . "DIMENSION"))))
        (
          (lambda ( i / e s n )
            (while (setq e (ssname ss (setq i (1+ i))))
              (if (and (setq s (cdr (assoc 1 (entget e)))) (setq n (distof s)))
                (entupd
                  (cdr
                    (assoc -1
                      (entmod
                        (subst (cons 1 (strcat s " [" (rtos n 3) "]")) (assoc 1 (entget e))
                          (entget e)
                        )
                      )
                    )
                  )
                )
              )
            )
          )
          -1
        )
      )
    
      (princ)
    )
    It assumes that the original Dimension Override is purely a number however.
    Lee Mac ProgrammingTwitterExchange App StoreDropbox (500MB free)

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

  4. #4
    Forum Newbie
    Using
    AutoCAD 2010
    Join Date
    Aug 2010
    Posts
    8

    Default

    Thanks for info. I will look into both. Lee Mac, I will give yours a try, the original are all numbers.

  5. #5
    Luminous Being Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draughtsman
    Discipline
    Mechanical
    Details
    HVAC, Drainage, Water Supply, Fire Fighting and a little about Electricity.
    Using
    AutoCAD 2015
    Join Date
    Oct 2009
    Location
    Great Syria , Living in Abu Dhabi
    Posts
    6,177

    Default

    Quote Originally Posted by RoguePiper View Post
    Thanks for info. I will look into both. Lee Mac, I will give yours a try, the original are all numbers.
    Have you tried it mr Rogue?

    For me, it is not working although the racism is very clear in that reply !!!!!

  6. #6
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Win 7 Pro / Win 10 Pro / Linux Mint
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2018
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    19,533

    Default

    Quote Originally Posted by tharwat313 View Post
    Have you tried it mr Rogue?

    For me, it is not working although the racism is very clear in this reply !!!!!
    WTH? Racism? Did I miss something? Grow up Tharwat.
    Lee Mac ProgrammingTwitterExchange App StoreDropbox (500MB free)

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

  7. #7
    Forum Newbie
    Using
    AutoCAD 2010
    Join Date
    Aug 2010
    Posts
    8

    Default

    Racism? hmmmmm , a little difficult to be racist when I have no idea what race you or anyone else is.

    Lee Mac posted a specific script, your post was a link to a very informative post that seems more like a tutorial. I have not had a a chance to try it.

  8. #8
    Luminous Being Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draughtsman
    Discipline
    Mechanical
    Details
    HVAC, Drainage, Water Supply, Fire Fighting and a little about Electricity.
    Using
    AutoCAD 2015
    Join Date
    Oct 2009
    Location
    Great Syria , Living in Abu Dhabi
    Posts
    6,177

    Default

    Quote Originally Posted by Lee Mac View Post
    WTH? Racism? Did I miss something? Grow up Tharwat.
    can you see the difference between this thread and the following link thread ?
    http://www.cadtutor.net/forum/showth...imension-Style

    And there are lots of things to get.....

  9. #9
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Win 7 Pro / Win 10 Pro / Linux Mint
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2018
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    19,533

    Default

    Quote Originally Posted by tharwat313 View Post
    can you see the difference between this thread and the following link thread ?
    http://www.cadtutor.net/forum/showth...imension-Style

    And there are lots of things to get.....
    That is not racism, and it clearly reflects how immature you are to suggest such an absurd claim. Do you really expect me to answer every thread on this forum, and hold it against me if I don't?

    In any case, some of us aren't too tolerant of the code plagiarism you have demonstrated in the past.
    Lee Mac ProgrammingTwitterExchange App StoreDropbox (500MB free)

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

  10. #10
    Luminous Being Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draughtsman
    Discipline
    Mechanical
    Details
    HVAC, Drainage, Water Supply, Fire Fighting and a little about Electricity.
    Using
    AutoCAD 2015
    Join Date
    Oct 2009
    Location
    Great Syria , Living in Abu Dhabi
    Posts
    6,177

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Lee Mac View Post
    That is not racism, and it clearly reflects how immature you are to suggest such an absurd claim.
    Since that you consider your self a mature, your answer should be more polite.

    Quote Originally Posted by Lee Mac View Post
    Do you really expect me to answer every thread on this forum, and hold it against me if I don't?
    I do not expect any thing from you since is that is one of your answers.

    Quote Originally Posted by Lee Mac View Post
    In any case, some of us aren't too tolerant of the code plagiarism you have demonstrated in the past.
    And I am not waiting for your tolerance at all, beside that, I am very proud of
    what I am doing and saying and so on......

    And if you consider your self is the father of all , its up to you. And of course
    me is excluded.

    your replies claim what you think of ......

Similar Threads

  1. Fraction Format With Dimension Text Override
    By Bill Tillman in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 10
    Last Post: 4th Jan 2012, 05:47 pm
  2. adding text after a dimension
    By roaddawgjim in forum AutoCAD Beginners' Area
    Replies: 4
    Last Post: 27th Jul 2010, 02:55 pm
  3. Dimension Lisp that promts a text override.
    By MikeP in forum AutoLISP, Visual LISP & DCL
    Replies: 7
    Last Post: 28th Jan 2009, 05:11 pm
  4. Copy dimension to text override
    By MikeT in forum AutoLISP, Visual LISP & DCL
    Replies: 12
    Last Post: 26th Jan 2009, 10:27 am
  5. Replies: 7
    Last Post: 20th Nov 2008, 01:33 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