5 December 2012

How to put dimension text below line in AutoCAD or AutoLISP or dimlinear text pos vert property or Putting Dimension Text Below the Dim Line .


                                      Hi friends , in this  article I will explain about  How to put dimension text below line in AutoCAD or AutoLISP or dimlinear text pos vert property or Putting Dimension Text Below the Dim Line .
                                       Open the AutoCAD, Write dimlinear and press enter. It asks the first extension line origin or select object, click after that it will ask second extension line origin or select object ,click on the second point ,after that it will ask [Mtext/Text/Angle/Horizontal/Vertical/Rotated]:,click the third point will draw dimension automatically. If you want to know clearly then follow the below process or see the following image.
                                                                

Command: dimlinear
Specify first extension line origin or <select object>:
Specify second extension line origin:
Specify dimension line location or
[Mtext/Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 5.4780

Next we have to change the text to below of the line, for that select the line press CTRL+1 ,change the dimlinear text pos vert to outside.See the below figure, it shows the how to change the dimlinear text pos vert to outside.
Let us discuss about how to put Dimension Text below the Dim Line in AutoLISP.
Write the below code or copy the code and save this as DIML.LSP
(defun c:diml()
  (command "dimtad" 2)
  (setq p1(getpoint "\n pick the point")
                p2(getpoint "\n pick the point"))
(COMMAND "DIMLINEAR" p1 p2 "@36.0<180" "")
  )             
                    
Then write the below lines in the AutoCAD Command prompt.
Command: (load "diml")
C:DIML
Command: diml
 pick the point
 pick the point

output of the above program is shown as below figure.Happy reading my blog............................................ 



                                                               

No comments:

Post a Comment