- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
One thing you will find is AutoCAD has several ways to automate it.
Your task of reading an excel file, then inserting blocks and setting dynamic props, is honestly an advanced first task.
The fact is the chunks of code to do that already exist in these DG and theswamp.org, but you have to be familiar with lisp to hook them all together.
VBA is still around, but its an extra install now and not what you want to spend energy on.
The real payback for learning lisp is its super useful to control the startup of autocad.
Say you want to set the autosave time, or set units to decimal, its all easy to do with lisp.
You might ask why use the VLIDE instead of a text editor?
The reasons are:
1) it color codes things
2) you can check parenthesis matching by double clicking before or after a paren, and it selects the "block" enclosed by the parens. If you get unexpected results, your parens do not match and you need to fix.
3) You can select a statement like (STRCAT "123" "ABC"), and right click on it and say inspect. It runs the statement and shows the return value in the dialog.
4) You can run Tools->check text in editor to catch errors
5) you can set a breakpoint with F9, then Tools->Load text in editor (close the dumb white screen that pops up). Then run your function and it will stop and let you walk through the code, while inspecting any variable along the way.
Once you get used to lisp, you will see it is super handy for startup, making "keyboard" shortcuts.
BTW, AutoCAD is best run with key-ins using left hand as the command line always has focus, and the space bar is like enter.
so to zoom extents, you can always hit escape, type Z then space, then E, then space (all with left hand)
You should have that escape key polished in about 6 months.
internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties