Questions tagged [autolisp]

AutoLISP is the flavor of LISP implemented by Autodesk for AutoCAD.

AutoLISP is a dialect of the LISP programming language engineered to enable manipulation & customisation of AutoCAD and many of its derivative 'Vertical' applications such as Civil 3D, Map, MEP, Architecture, Electrical etc.

AutoLISP is restricted to running on full versions of AutoCAD and cannot be run in any version of AutoCAD LT. Other applications such as BricsCAD and IntelliCAD also offer the ability to run AutoLISP programs.

Visual LISP is an extension of AutoLISP introduced as an add-on to AutoCAD R14, and subsequently fully incorporated into the release of AutoCAD 2000. Visual LISP provides access to ActiveX functionality and offers many advanced functions to aid with customisation.

266 questions
8
votes
2 answers

Visual Lisp: how to call functions in external C++ DLL

I have a C++ dll I have written (native, not .net), and I would like to use its functionality from Visual Lisp. Can anyone point me to an example of how to do this, or at least which bit of documentation to read?
Sideshow Bob
  • 4,566
  • 5
  • 42
  • 79
6
votes
3 answers

Can anyone explain the design decisions behind Autolisp/visual lisp to me?

I wonder can anyone explain the design rationale behind the following features of autolisp / visual lisp? To me they seem to fly in the face of accepted software practice ... am I missing something? All variables are global by default (ie unless…
Sideshow Bob
  • 4,566
  • 5
  • 42
  • 79
6
votes
4 answers

Circumflex accent before c IN LISP

I'm studing lisp and I found this: (zoom in)^C ^C , but the text don't explain it, and I searched "^C ^C" in other places but didn't found anything. Can someone here help-me? (I'm studying english yet, sorry if I wrote anything wrong)
FERNANDO MESQUITA
  • 385
  • 1
  • 3
  • 4
6
votes
1 answer

Running VBA Macro in AutoCAD

I'm making a .bundle folder for the plugins I've programmed for AutoCAD. At the root of the folder is my PackageContents.xml bundle where all of my Lisp plugins are autoloaded. Since .dvb is not a supported type for Autoloading I made a Lisp file to…
Nick Gilbert
  • 4,159
  • 8
  • 43
  • 90
6
votes
3 answers

Build automation for AutoCAD Lisp files

I have a huge LISP project, I've made a prv file that permits to the VLIDE to compile this project into a single vlx file (it compiles also the fas file). The problem is that it is not possible to compile the project from outside the autocad or from…
Tobia Zambon
  • 7,479
  • 3
  • 37
  • 69
5
votes
3 answers

Looking for a recommendation for an AutoLisp / VisualLisp book

Can anyone recommend a good introductionary book dealing with AutoLisp and VisualLisp? I found some general Lisp books out there, but I'm uncertain how much Lisp variants differ. I haven't found any in the old questions in here, either.
Rook
  • 60,248
  • 49
  • 165
  • 242
4
votes
1 answer

AutoLISP / LISP write to file on web server

not sure if anyone can help. I am programming using a language called AutoLISP....based off of LISP but with a few extras. It is used inside a program called AutoCAD. Anyway, I have some code that can read from a text file on a web server, but I…
SuperBot12
  • 77
  • 8
3
votes
2 answers

Lisp - Extracting info from a list of comma separated values

I've tried searching this but have yet to find something that suits anything close to my needs. I'm trying to create a Autocad LISP that takes a text file, which is a list of comma-separated values, and place a block at coordinates defined by the…
Fizscy
  • 41
  • 3
3
votes
2 answers

Why are circle center coordinates (key 10) not relative to the origin in DXF data?

I need this piece of information for a filter that I'm creating. So let's say I set my grid and snap to 1 for example and then I place the origin with UCS. And then I draw a circle with center 5, 0. Here is what I get: ( (-1 .
3
votes
2 answers

How to check if application is running using AutoLISP

In CAD application (ZWCAD) I start my application by AutoLISP. (startapp "C://[path]//Application.exe") so the application runs each time new file is created. Works OK. Now I want to limit instances of application just to one. So how can I check…
CAD Developer
  • 1,532
  • 2
  • 21
  • 27
3
votes
1 answer

Set and Reset of System Variables - AutoCAD LISP

I'm trying to make drawing wiring diagrams extremely easy in AutoCAD with next to no button presses other than my pre-programmed ones. One involves a LISP that is not playing nicely with setting system variables and then resetting them to what they…
3
votes
1 answer

How do I access Quoted Variable Data in AutoLisp?

I'm having trouble accessing the information stored in the lists STPT1 and ENDPT1 which are x(0), y(1), and z(2) coordinates. For instance, after getting a point: (45.4529 21.6384 0.0) when I inspect with Visual LISP (-(NTH 1 STPT1) 0.5) I get a…
3
votes
2 answers

What is the order of load AutoCAD plugins?

There are few ways of automatic load applications - plugins when AutoCAD starts. I know those: startup suite - attached by GUI List item %appdata%....\support\zwcad2018.lsp ( I use ZWCAD, maybe in Acad, there is another path. The long time ago when…
CAD Developer
  • 1,532
  • 2
  • 21
  • 27
3
votes
1 answer

Execute Code On Lisp Exit

I have a lisp written that involves setting a variable, then selecting points inside of a loop. Once I decide that I am done selecting points, I would like to be able to revert that variable back to what it was originally when I press the escape…
Bigbob556677
  • 1,805
  • 1
  • 13
  • 38
3
votes
2 answers

Autolisp user function overloading

You can read this on AutoCAD knowledge website: "Note: You can define multiple user functions with the same name, but have each definition accept a different number or type of arguments." Has anybody using this feature? I tried but does not work at…
Zoon81
  • 66
  • 6
1
2 3
17 18