Saturday, November 21, 2009
Home   |   Search   |   About AUGI   |   My AUGI   |   Join Now

Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP
 Welcome, Guest. 

Login

Join Now FAQ Members List Calendar Search Today's Posts Mark Forums Read

AutoLISP AutoLISP or Visual LISP, learn both here!

Reply
 
Thread Tools Display Modes
Old 2004-07-05, 07:40 AM   #1
dipen1979
Member
 
dipen1979's Avatar
 
Join Date: 2003-11
Posts: 3
dipen1979 is starting their journey
Post Generate curve table

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
Attached Files
File Type: dwg CURVE TABLE.dwg (50.1 KB, 30 views)
dipen1979 is offline   Reply With Quote
Old 2004-07-07, 10:19 PM   #2
RobertB
Administrator
 
RobertB's Avatar
 
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
RobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the stars
Default

Would you be willing to learn how to do it?
RobertB is offline   Reply With Quote
Old 2004-07-08, 09:59 AM   #3
dipen1979
Member
 
dipen1979's Avatar
 
Join Date: 2003-11
Posts: 3
dipen1979 is starting their journey
Default

YES BUT HOW??
dipen1979 is offline   Reply With Quote
Old 2004-07-09, 06:43 PM   #4
RobertB
Administrator
 
RobertB's Avatar
 
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
RobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the stars
Default

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.
RobertB is offline   Reply With Quote
Old 2004-07-12, 07:17 AM   #5
dipen1979
Member
 
dipen1979's Avatar
 
Join Date: 2003-11
Posts: 3
dipen1979 is starting their journey
Default RE: Generate curve table

Thanks for your support, but i dont know anything else
than loading a lisp file
dipen1979 is offline   Reply With Quote
Old 2004-07-12, 08:10 PM   #6
RobertB
Administrator
 
RobertB's Avatar
 
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
RobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the stars
Default RE: Generate curve table

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)
RobertB is offline   Reply With Quote
Reply


Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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


All times are GMT +1. The time now is 04:20 PM.