this post was submitted on 08 Jun 2023
1 points (100.0% liked)
Programming
13376 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm pretty good with it. I've always hated their syntax too. It's not natural to my grey matter like a lot of other languages are. I'll second Lee Mac. I use his numinc.lsp. Very handy. Afralisp is another good site. He does a bit better explaining certain things by example and in much smaller steps.
I can tell you that you get used to reading and writing autolisp after prolonged use. I've used it since learning of it around 1996ish on R11. I create lisp files as needed when I notice something being repetitive or time consuming. I currently have around 300 and they are pretty catered to my work as a mechanical designer or refractory designer. Most are very simple and pointed routines that save me a minute and I might use one of them 60 times a day.
However, a more complicated yet far more dynamic alternative exists. I often create .Net front end software programs that in turn create and output a dynamic lisp all based on the user inputs . They do require a bit more effort since they are for a more complex idea. It's essentially making a vb or c# program that handles a geometry and its range of permutations. It does it's own calculations and point plotting. It also knows how to write an autolisp script. So run program, input data, calculate, generate script. Then switch to Autocad, run script. Viola! An hour of work in a few seconds.
With that in mind, you can further this even more by chaining that module program and other module programs like it to an assembly type program. Teach the assembly how to determine it's own plumbing and (presuming its calculatable), it can be programmed to create and send the module programs their inputs directly.
Here's a video of an old one I did (sorry, no audio). You might find it neat. It's software I made for counting and creating drawing views for brick dome module. Everything is to scale and is in fact accurate to (8) decimal places. It handled Domes, Cones, Cylinders, and all of the basic 3D geometries.