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

18 June 2013

How to send a command from a VB.NET windows forms to AutoCAD? || How to LISP command from VB.NET windows forms?


Hi Friends, in this article I will explain about how to open LISP file through vb.net windows forms.
Suppose we are working on VB.NET windows forms ,suddenly we call the LISP function from VB.NET windows form then it use because we already the code in AutoLISP and rewritten the LISP file in VB.NET its time waste so simply call the AutoLISP command from VB.NET is very easy compare to rewrite.

How to get midpoint between two points in AutoCAD or AutoLISP || How to get midpoint of the line in AutoCAD or AutoLISP

                       Hi Friends, in this article I will explain about how to get midpoint between two points in AutoCAD or AutoLISP.
  • In AutoCAD we can easily get the midpoint of the line because if you select on the line then three points will select, the middle point is the midpoint of the line .
  • But if we get the midpoint of the line in AutoLISP it may difficult. For this I will give you the easiest way to get midpoint between two points in AutoLISP.
  • The below figure shows the line draw in AutoCAD if we select the line how it will show the midpoint.

10 June 2013

getfiled () function in AutoLISP

 Hi friends, in this article I will explain about getfiled ()  function in AutoLISP or how to Prompts the user for a file name with the standard AutoCAD file dialog box, and returns that file name in AutoLISP.
Name: getfiled
Syntax:
(getfiled title default ext [flag])

4 June 2013

How to write the TEXT command using AutoLISP | How to write text in AutoCAD | How to write text in different allignments using AutoLISP

                   Hi friends, in this article I will explain about how to drawtext in AUTOCAD using AutoLISP in different alignments like left to right orright to left or from middle etc.,
                   Suppose if we want to write TEXT in AUTOCAD, then we use the command text and give the starting point, height  and rotation ,then write the text and click ENTER ENTER.But there is no chance to write the text in left to right or right to left or from middle ,below the point etc.,