18 June 2013

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.,

18 April 2013

How to call AutoLISP Program from VB.NET ? || Calling AutoCAD commands from .NET


Hi Friends, in this article I will explain about how to open LISP file using vb.net windows forms.
Suppose we are working on VB.NET windows forms ,already we write the code in LISP and write in VB.NET is useless compare to  call the LISP function from VB.NET windows form.
How to create a project in VB.NET?