Tag: code

  • Save And Close All Open AutoCAD Drawings

    Save And Close All Open AutoCAD Drawings

    Recently, I found myself having 10-15 AutoCAD drawings open at the same time and wanted to close them all.

    An easy way to do it is with two commands.

    To do so, first you type SAVEALL at AutoCAD’s command line and all the open documents are saved. Secondly, the CLOSEALL command follows that will close all the open drawings.

    But… I wanted something more automated. So I wrote a small script that combines those two commands into one that will automatically save and close all the drawings.

    Here’s the script:

    (defun c:SCALL ()
      (command "SAVEALL")
      (command "CLOSEALL")
      (princ)
    )

    That’s all. The file is named SCALL.lsp and the command to run it is also “scall” typed at the command line of AutoCAD.

    If you want to know how to load an AutoLISP script in AutoCAD you can read this small article that teaches you step by step what you should do.

  • Print PDFs (multiple) from Excel with a press of a button

    Print PDFs (multiple) from Excel with a press of a button

    On a previous article, dated 2 years ago, I explained how to automatically print to pdf a sheet, with a press of a button.

    This one is the part 2. It is a tutorial of “how to print multiple pdf files from populated tables” in excel, with the help of VBA.

    I wrote the code in 2018 and since then it has saved me (or the company I work for) a massive number of working hours (or weeks to be more precise).

    (more…)
  • Print to PDF from Excel Automatically

    vba-logo.pngYou are working in your highly automated super excel spread sheet that you have created. After all these months of additions and formulas, cell updates and tests you are there! You finally mad your spread sheet fully automated that produces alone cells, numbers, prices and data that would take days to calculate them manually.But…

    Something is missing… (more…)

  • Measuring Total Length and Total Areas from multiple objects with AutoCAD

    autolispMy work involves a lot of measurements in order to get my quantities off the drawings and make the estimations I need. For this work I only work with AutoCAD. I strongly believe that it is more than enough as it comes with lots of good and handy tools to do the job. Although, some things still “missing” or at least it cannot cover anyone’s demand for commands.

    The use of LISP and the creation of custom commands from scratch or manipulating/using what others have created can easily solve this “problem”.

    One useful command I use almost every time I am on AutoCAD is TLEN. (more…)

  • 5 Great AutoLISP Scripts

    I decided to post my favorite AutoLISP programs that I use extensively hoping that someone will find them useful. The two of them (as you can see in the code that I am providing) are written by me and their coding is very easy to understand and changed/tweaked (if someone has a bit of knowledge about AutoLISP). There are other two without their code provided by their authors but they are great (.vlx extension). Scripts can also be downloaded all together from here. (more…)

  • How to load AutoLISP code in AutoCAD

    If you do not know how to load LISP scripts in Autocad there are several ways. (more…)

  • AutoLISP Tonyscripts ver.1

    Tony Scripts v.1
    14/may/2014

    —>>>Download Link<<<—

    This LISP script is consisted by four different AutoLISP scripts
    that allow you to do some things in AutoCAD faster than doing them manually. (more…)

  • Merry Christmas and Happy 2014

    xmassRI hope everyone’s wishes come true!!! I wish happiness and health to all of you!!

    And this is the code to reproduce this image in R

    The code: (more…)