mathew21 Posted February 28, 2011 Posted February 28, 2011 how do i create a lisp routine do i need any special program and how do i use it in autocad do i need to save the file to a specific place? i want to learn to create it so i can speed up my drawing i currently have a drawing with about 100 lines all starting the same place and heading out from there.. Quote
Lee Mac Posted February 28, 2011 Posted February 28, 2011 Hi Mathew21 - Welcome to CADTutor I would suggest that you head over to AfraLISP or JeffreySanders and check out the Beginners Tutorials to get you started with LISP. I would strongly recommend that you write your programs using the Visual LISP Editor provided with AutoCAD - this will provide all the help documentation you will need and also provides great debugging facilities. To get started with the Visual LISP Editor, see my tutorial here, and you might be interested in a few other tutorials here. Good luck! Lee Quote
BlackBox Posted February 28, 2011 Posted February 28, 2011 Welcome to the forums! There are many resources on this topic... Here's one: Within AutoCAD, type VLIDE and hit enter. This will open the Visual LISP Integrated Development Environment (VLIDE). Within the VLIDE, hit F1 for the Developer Documentation, and see the 'AutoLISP Tutorial' as a starting point. Quote
mathew21 Posted February 28, 2011 Author Posted February 28, 2011 nvm i found a post helpin me http://www.cadtutor.net/faq/questions/28/How+do+I+use+an+AutoLISP+routine%3F Quote
Sittingbull Posted February 28, 2011 Posted February 28, 2011 I'll follow this topic as i'm a newb at lisp aswell . Found interesting things on this site too: http://klobouk.fsv.cvut.cz/~chour/Lisp/Contents.htm Have a look:wink:. SB Quote
mathew21 Posted February 28, 2011 Author Posted February 28, 2011 thanks muchly.. fast response and ill take a look Quote
mathew21 Posted February 28, 2011 Author Posted February 28, 2011 ok.. ive read the things and think what im wanting is beyond me for now.. bacially what i want to do is draw a line from point A to point B then another from point B to C then to start over agian but go from point A to point D then to point E does anyone think they can help me?.. i was able to figure out 1/2 of what i wanted.. i can start lines from point a to b then a to c but cant go from point b to c Quote
Lee Mac Posted February 28, 2011 Posted February 28, 2011 ok.. ive read the things and think what im wanting is beyond me for now.. bacially what i want to do is draw a line from point A to point B then another from point B to C then to start over agian but go from point A to point D then to point Edoes anyone think they can help me?.. i was able to figure out 1/2 of what i wanted.. i can start lines from point a to b then a to c but cant go from point b to c Dude... you won't learn it in 10 minutes - it'll take weeks and weeks of coding and practice, you've got to put some effort in to get something out. Quote
mathew21 Posted February 28, 2011 Author Posted February 28, 2011 nvm got it.. does dynamic imput work during lisp commands? or ortho? Quote
mathew21 Posted March 1, 2011 Author Posted March 1, 2011 ok thanks muchly.. damm gotta figure out where i went wrong then.. the thing i designed works but it doent follow ortho or @ cords. Quote
BIGAL Posted March 1, 2011 Posted March 1, 2011 Sounds like you need to master the Polar command it calculates a new pt based on a starting point, a length and an angle. A box would then become join 4 pts (command "line" pt1 pt2 pt3 pt4 "C") A big hint the angles are always in radians irrespective of what your "units" are set to so 0degs = 0.0 90degs = 1.5708 180degs= 3.1416 & 270degs=4.712 this is the same as ortho on. Quote
mathew21 Posted March 1, 2011 Author Posted March 1, 2011 yep only thing that i cant figure out is how to imput the sizes in afterwords.. i need the sets of lines to be differnt lengths but i want angle to stay the same.. is there some way that you can preset the angle and then enter the length afterwords polar has always been kinda week for me.. i understand it just can never remember how to enter cords properly Quote
BlackBox Posted March 1, 2011 Posted March 1, 2011 Store your needed angle to a variable (perhaps named ANG?), then simply reference that variable as needed. Quote
SLW210 Posted March 1, 2011 Posted March 1, 2011 Look in help for AutoCAD and search on CADTutor for Creating Script files. Quote
mathew21 Posted March 1, 2011 Author Posted March 1, 2011 how do i get the line to draw along that angle? or does anyone know of a tutorial that helps draw lines better? i can get points to work but there a fixed location so everytime they come out in the same spot Quote
mathew21 Posted March 1, 2011 Author Posted March 1, 2011 ok thanks for all your help.. i got it.. i reread everything and used info u gave me and i figured out i was useing wrong command.. getpoint not getdist changed and added it as veriable and got it to work.. workd fine now so thanks tested it with everything i can think of and it works.. i can post if anyone wants.. im gonna use it for ploting locations that i had to measure (tape measure X Y and right angle triangle) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.