19 July 2013

How to move the dimension text with leader in AutoCAD || aidimtextmove command in AutoLISP

Hi friends, in this article I will explain about how to change dimension text  to move with leader in AutoCAD or aidimtextmove command in AutoLISP or How to move the dimension text with leader in AutoCAD.

First we know about, how dimension text to move with ladder in AutoCAD changed in AutoCAD .
Open the AutoCAD, Select Dimension text, right click on the Dimension text, and select Dim text position and Move with leader and click where to you want. The output will like below.

9 July 2013

How to Split the string using AutoLISP || how to divide the string with special character in AutoLISP

Hi Friends, in this article I will explain about how to Split the string using AutoLISP or how to divide the string with special character like comma (,), question mark (?), etc.
I explain this with small example.
Suppose you have one string and you have to split the string with “-“,for this there is no command is there in AutoLISP to split the string with special character. So I write the code for that.I think it will useful to you.

24 June 2013

Rotate command in AutoLISP || How to rotate the object in AutoCAD using Autolisp?

Hi friends, in this article I will explain about the Rotate command in the AutoLISP or AutoCAD, how to use the Rotate command in AutoCAD, how to write the code for Rotate in AutoLISP.
First we know about, how to use Rotate in AutoCAD. 
  • Open the AutoCAD, Write Rotate or ro and press enter. It will ask the following. 

20 June 2013

How to change the text in DCL (Dialog Control Language) by clicking on radio buttons using AutoLISP | Change the text in DCL

                 Hi Friends, here I will explain about How to change the text in DCL (Dialog Control Language) by clicking on radio buttons using AutoLISP.
  • I explain this with small example.
  • I have two radio buttons FPS and MKS. If I select FPS then the text have to show “HI you have selected FPS”. If I select MKS then the text have to show “HI you have selected MKS”.
  • First Open the AutoLISP Editor write the below code or copy and paste the code and save it as TXT.dcl