Wow! I didn't expect anyone to reach the end of the integer range! While integers can be larger (+/-2,147,483,647) the getint function is limited to 16 bits, a range of -32767 - 32767. In order to ask the user for an integer larger than that, you need to use getreal or getstring and then convert the value into an integer inside the function using something like (setq myInteger (atoi userString)) Using this means you'd have to check for a failed conversion in case the user typed "Bob" instead of 1,234,567
Thanks. could you please provide us the video regarding the automation of drawing symbol with attributed excel description: for example in excel description tree : we can automatically see trees on the drawing based on the imported pointdata.
I am looking for a method to automate repetitive tasks in AutoCAD. Specifically, I would like to use a script or Dynamo to automate drawing tasks based on survey point descriptions from an Excel file. For example, I want the software to automatically draw a line between points A and B when the description indicates "edge of pavement," rather than manually drawing each line one by one. Additionally, if a survey point is labeled as a traffic light, I would like the script to automatically place a traffic light symbol at the specified locations in the drawing. Do you have any suggestions or resources that could help with this? Best regards,
@rezatalakoobi8029 gotcha! Off the top of my head, I don't know how to do this in plain AutoCAD. Mainly because Civil 3D does this natively, so I've never needed regular AutoCAD to do this. It should be quite possible, in fact I'm working on a different video to do something very similar using astronomy data (gotta have some reason for light years to exist in AutoCAD!) It will be part of my LISP series, so keep an eye out for it! And let me know if another video explaining how to use Civil 3D to do this would also be helpful.
I really have repetitive task in AutoCAD like creating and placing doors in each walls. In Revit that's already built-in. Can you make a video about it using AutoCAD instead?
Davin! What a presentation! I can't express how good that was! Never stop please, CAD users around the world need a talent like yours! I'll certainly recommend your services for any company that is looking for training. I train in one to one classes, but, your voice and structure of presentation is on another level. I'm lucky that you're my first AutoLISP instructor. Clear and to the point
Davin, thank you for these videos. Possible TLDR; I began with Microstion in the late 80's (Loved it!). Forced (kicking and screaming) into ACAD early 90's. Made the best of ACAD by learning customization, LISP and some VBA. Switched to BricsCAD when the subscription debacle began, and for my own business (again Love it). Fate, karma or just luck now has me on AcadLT 2024. Thank the gods, it now supports LISP. Your videos are helping me get back into the nuances of AcadLT. Much appreciated!!!! Furthermore, I absolutely enjoy your style of instruction / narration - no fluff, down to business, and is what it is. In the end, CAD is CAD; at least between ACAD vs Brics. ACAD has Dynamic Blocks; BricsCAD has the QUAD cursor. If I could only combine the two....... I look forward to more of your content. Again, thank you!!!!!
Thank you for your nice comment! And also thank you for teaching me about the quad cursor. I've never used BricsCAD before. I may have to play around with it It reminds me a bit of Microstation. You are definitely right, CAD is CAD. And I'm also super happy that LT had Lisp now too! Thanks again!
The rotation option doesn't show up until after you click the first corner of your rectangle. (Also, for AutoCAD for Mac users you can't click on the option, but you can type "R", or right-click to access that option)
@ATCCAD I watched your videos and learned a lot from it , I think autocad is a sea, and we have very little knowledge about the software, Thank you very much for teaching us a great tutorial.
This video is fantastic, but how do you avoid the error when using the ESC key? I did find some hints of using visual lisp commands, such as vl-catch-all-apply, but I'm not really sure how to implement it in this code exactly.
This requires using the * error * function - which was outside the scope of this video. I have a video planned for this topic - but this error is an easy one to deal with. Here is a way you can do it. In the main body of the program - at the top where you initialize the other variables - add the following two lines (setq tmperror * error *) ; saves the old * error * function so it can be restored after the user cancels the command (setq * error * errorfunc) ; sets the name of the new *error* function so LISP can find it Finally you'll add a new function - at the bottom would be good (defun errorfunc (errmsg) (setq * error * tmperror) ; Set the *error* function back to the old one (princ) ; Print a blank line )
@@ATCCAD Oh wow, thank you super much. You would think that this would be a simple 1 line command to stop all the errors, but I guess the Autodesk guys really like jumping through a lot of hoops. Can't wait to see that future video, have a fantastic day ^_^
(findfile "acad.pgp") This will spit out the location of your active PGP file. The alias editor crashed some of the older versions of AutoCAD, like 2018. Notepad++ editor is best editor.
Theres one thing iv veen trying to figer out on Fusion 360. Basickly i want to be able to get measurements of 3D geometrys and find a way to convert it in 2D. The reason below should help explain what i mean. Long story short i want to be able to Cut felt with a cutting machine to fit aound my 3D prints. I xan do it with flat surfaces but cant find a way to do it with 3D shapes and cant seem to find what im after or what to ask for any advice people is this even possible? Thanks
Yes, that can be done! It's a bit complicated to explain with words, but you can use the sheet metal tools to create a folded shape, and then ask Fusion to unfold it. This unfolded pattern can then be exported as a dxf and cut out. While it's called sheet metal, any foldable material does the same thing. That seems like a good idea for a video!
Thank you so much for creating this series! These are the best and most up to date videos for learning AutoLISP that I have came across. Looking forward to more videos in this series.
Nicely explained. Can you add these inputs (Starting number and Interval) as options to the command and use the capital letter of the option word to choose them?
Great video! I'm starting on LISP programming and I just found your channel. Great content. I believe you could do the same to attributes on a block, right? Maybe for a future video, it could help a lot. Or maybe you can add numbers to strings, like, it would add the text "Block Number 1", "Block Number 2"... Thank you!
Thank you so much for taking your time to make an video about this ! I would never be able to figure this out my own. Now I will share this video with my coworkers too
@@ATCCAD you’re welcome ! If you would like to hear more ideas, I could share some problems that I’m facing that I feel like it could potentially be a video for the channel. Thank you
I load all my lisp routines using a legacy menu file which luckily still works in all versions of Autocad. I have all my routines in one folder complete with toolbar bmp image files. The mnu file is also included here and that's where all the lisp routines are listed in one big menu text file. Does the trick! I load it using the CUI partial menu setup and it automatically sets up my toolbar buttons. This something I learned years ago from Afralisp.
Great video ! Thanks I would like to watch a video where I can count openings in 2D and at the same time when I click on the opening, I can leave a number there. Like, first opening a leave a 1 next to it, second one I click and leave a 2 and so on…
What if in the block pallet the Library tab says Error file not found? It's just a blank window that doesn't let you navigate, is as if one of the autocad components is not loaded...
That's a great question! You just found a bug that is in AutoCAD 2023. I wrote an article about fixing this, you can find it here! atkinstechconsulting.com/autocad-library-not-found/
Do you have a video on your changing autocad to look like microstation? I have a company of 50 employees currently making the switch from microstation to civil3d, some of them have been working in MS for 30 years. I have been trying to get everyone trained up but I am a novice myself. This may be more helpful for the older employees. Thanks
I have done something similar for a client in the past. They were moving several hundred users from Microstation J to AutoCAD 200(something). So making regular AutoCAD look like regular Microstation is definitely possible. I'm not sure if the same could be done to make Civil 3D look like Inroads. The Civil 3D toolbox isn't nearly as customizable as the AutoCAD ribbon (and the workflows will still be very different). I do not have a video for this process. Mainly because it would be a 27 hour video of me doing pixel art! Out of curiosity, what version of Microstation are you trying to reproduce?
I started working as a drafter a few months ago, and got AutoCAD at home so I could continue my career development. I was, however, confused and enraged when the "UW" and "UV" commands would not work to adjust UCS at home. I was of course even more enraged after I taught myself how aliases work for no reason. You, Sir, have quelled my rage, and made me much more productive. Thanks so much!
Nicely presented. Waiting for more. I have many arrows in my exported CAD file (made of individual lines in the shape of the boundary of a thick arrow), with all of them made with same dimensions. I wanted replace them all at once with another arrow block aligned in the direction of arrow. Can you make a lisp code for the same?
Thank you! As far as your question goes, I'm struggling a bit to picture the issue in my head. I'm imagining it being similar to importing a PDF where the dimensions and leaders come in pieces instead of actual dimensions and arrows. It is definitely possible to do this in LISP. Without seeing the actual drawing it's difficult to know exactly how to code it - but it's definitely doable.
@@ATCCAD Thank you for your reply. Arrows are of the shape as seen in the image in the above link. Each are made of separate lines (not a closed polyline). There are 100's of them in different orientations.
I'm sorry I'm just now seeing this - I need to change my comment filters apparently. This is definitely a difficult one. If they are on their own layer, that would simplify it a little. You could use the Join command to turn all of them into polylines at once. Then you could use lisp to get all polylines in a set. Then search each polyline for the vertex angles for it's adjoining line segment. The vertex between the angles that aren't 90 degrees would identify the block insertion point. Then use lisp to identify the bisecting angle of that vertex would figure out the rotation angle. Definitely not an easy task. I'll have to play with the code for a while when I get an opportunity.