|
Welcome, Guest.
|
||||||
| AutoLISP AutoLISP or Visual LISP, learn both here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: 2003-11
Posts: 3
![]() |
All the details are avialable in the attached file,
it would be very nice of you if you can help me generate this curve table by selecting two end points of the curve regards dipen |
|
|
|
|
|
#2 |
|
Administrator
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Would you be willing to learn how to do it?
|
|
|
|
|
|
#3 |
|
Member
Join Date: 2003-11
Posts: 3
![]() |
YES BUT HOW??
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Good!
Ok, the first step is to create the command function and get the arc. You will need to use the Visual LISP functions defun, setq, and either entsel or ssget and ssname. The help files ought to help you understand how to use those functions. |
|
|
|
|
|
#5 |
|
Member
Join Date: 2003-11
Posts: 3
![]() |
Thanks for your support, but i dont know anything else
than loading a lisp file |
|
|
|
|
|
#6 |
|
Administrator
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Open the help files (F1, Developer's Guide, AutoLISP Reference) and read up on the functions I listed.
defun is how you will create a command-line function (think "command"). The function's name needs to start with C: to be recognized as a commnad-line function. Don't worry about declaring arguments/variables at this moment. The help files show how to use this function. setq is used to store data in a variable (called a "symbol" in the help files). You will need to use variables to store data such as the arc the user selects. enstsel is one function that allows the programmer to let the user select an object in AutoCAD. Or you could use ssget to make a selection set of what the user selects (the advantage being that you can "filter" what the user selects, to force them to pick only arcs). So you need to use defun to "name" and start your program and setq to store what the user selects via the enstsel function. Code:
(function? C:CurveTable () (function? inpPick (function?)) (princ)) ; clean exit (most programs end with this) |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hiding Text in a Table | tomdillenbeck | AutoCAD General | 3 | 2004-06-25 01:58 AM |
| Calculate a curve? | smiller | AutoLISP | 4 | 2004-06-22 02:57 PM |
| Exceeded iteration limit when evaluating curve | earld | AutoCAD 3D (2006 or below) | 2 | 2004-06-03 04:30 PM |
| Schedule table alignment | Chad Smith | Revit Architecture "Original" Wish List (Archived) | 1 | 2004-06-02 08:51 AM |