Archives
Üye OlSign Up
Rehber · AutoCAD

AutoCAD'e LISP Yüklemek: Bir Kez, Her Çizimde ve Uyarısız

LISP, AutoCAD'e yeni komut ekleyen küçük programlardır: .lsp uzantılı düz metin dosyalar. Yüklemek kolaydır ama "yükledim, ertesi gün komut yok" ve her seferinde çıkan güvenlik uyarısı çok sorulur. Bu rehber üç yolu ve sık karşılaşılan hataları CADTools araçları üzerinden anlatıyor; başka LISP'ler için de aynısı geçerli.

CADTools sayfası: üç adımlık kurulum (indir, sürükle bırak ya da APPLOAD, Startup Suite), Hepsini indir düğmesi ve bir aracın komut listesi
CADTools'ta her araç tek bir .lsp dosyası; altında komutları ve kısa tanıtım videosu var.

Hangi Yol Ne Zaman?

İsteğinizYolNe olur
Bir kez denemekSürükle bırak ya da APPLOAD → LoadYalnız açık çizimde çalışır
Her çizimde hazır olsunAPPLOAD → Startup SuiteHer açılan çizimde kendiliğinden yüklenir
Güvenlik uyarısı çıkmasınKlasörü Trusted Locations'a ekleyinO klasörden uyarısız yüklenir
ReklamAdvertisement

1. Bir Kez Yüklemek

  1. LISP dosyasını bilgisayarınızda bir klasöre kaydedin. Zip olarak indirdiyseniz önce zip'ten çıkarın; zip'in içinden yüklemeyin.
  2. Dosyayı AutoCAD'in çizim alanına sürükleyip bırakın. Ya da komut satırına APPLOAD yazın, dosyayı seçip Load'a basın, Close ile kapatın.
  3. Güvenlik uyarısı (Security – Unsigned Executable File) çıkarsa Load Once seçin.
  4. Komut satırında dosyanın yüklendiğini söyleyen satırı görürsünüz. Artık komutu yazın, ör. CTK_SEV.

Bu yolla yüklenen LISP yalnız o çizimde geçerlidir. Yeni bir çizim açınca komut yine "Unknown command" der; bu bir hata değil, LISP'in çalışma biçimidir.

2. Her Çizimde Otomatik: Startup Suite

  1. APPLOAD yazın. Pencerenin sağ altındaki Startup Suite bölümünde Contents… düğmesine basın.
  2. Add… ile LISP dosyalarını seçin, Close deyin.
  3. Bundan sonra açtığınız her çizimde bu dosyalar kendiliğinden yüklenir. Dosyanın yerini değiştirirseniz listeden silip yeniden ekleyin.

Birden çok bilgisayarda aynı düzeni kurmak isteyenler için başka bir yol acaddoc.lsp dosyasıdır: AutoCAD her çizimi açarken destek klasörlerinde bu adda bir dosya arar ve içindekileri çalıştırır. İçine yüklenecek dosyaları yazarsınız:

(load "C:/CTK/LISP/CTK_Sev.lsp")
(load "C:/CTK/LISP/CTK_Koordinat.lsp")

Yolda ters bölü (\) yerine düz bölü (/) kullanın. Dosyayı, OPTIONS → Files → Support File Search Path listesindeki bir klasöre koyun.

3. Güvenlik Uyarısından Kurtulmak: Trusted Locations

AutoCAD, imzasız programları güvenilir sayılmayan bir klasörden yüklerken her seferinde sorar. Bu, SECURELOAD ayarından gelir ve sizi kötü amaçlı dosyalardan korur; kapatmayın. Bunun yerine LISP'leri tuttuğunuz klasörü güvenilir yapın:

  1. OPTIONS yazın, Files sekmesinde Trusted Locations'ı açın.
  2. Add ile LISP klasörünüzü ekleyin, OK deyin.
  3. AutoCAD klasörün salt okunur olmadığını söyleyebilir. Güvenilir klasöre yalnız sizin koyduğunuz dosyalar girmeli; İndirilenler gibi her şeyin düştüğü bir klasörü eklemeyin.

CADTools'a Özel Notlar

  • Sürüm: AutoCAD 2021 ve sonrası, Windows. Civil 3D'de ve düz AutoCAD'de çalışır.
  • Mesaj dili: Windows Türkçeyse Türkçe, değilse İngilizce. İngilizce bilgisayarda bir kez CTK_DIL yazıp Türkçe'yi seçin; hatırlanır.
  • Mac ve AutoCAD LT: CADTools Windows'taki AutoCAD'in ActiveX işlevlerini (vla-) kullanır; AutoCAD for Mac bunları desteklemez. AutoCAD LT 2024 ve sonrası LISP çalıştırır ama bazı işlevleri yoktur; LT'de denemedik.
  • Geri alma: her komut tek U ile geri alınır. Yine de sonucu kaydetmeden önce kontrol edin.
ReklamAdvertisement

Sık Karşılaşılan Sorunlar

BelirtiSebepÇözüm
"Unknown command"LISP bu çizimde yüklü değilYeniden yükleyin ya da Startup Suite'e ekleyin
Her açılışta güvenlik uyarısıKlasör güvenilir değilKlasörü Trusted Locations'a ekleyin
Uyarı bile çıkmadan yüklenmiyorSECURELOAD 2: yalnız güvenilir klasörler (çoğu zaman şirket ayarı)Bilgi işleme klasörü güvenilir listeye ekletin
Türkçe harfler bozukLISPSYS 0 (eski LISP motoru) ya da AutoCAD 2020 ve öncesiLISPSYS 1 yapıp AutoCAD'i yeniden başlatın
"no function definition: VL-LOAD-COM" ya da "VLAX-…"ActiveX işlevleri yok: Mac ya da LTWindows'ta tam AutoCAD ya da Civil 3D kullanın
Startup Suite'teki dosya yüklenmiyorDosyanın yeri değişmişListeden silip yeni yerinden ekleyin

Bir CADTools komutunda hata alırsanız panoya yazın; komutu, AutoCAD sürümünü ve komut satırındaki hata mesajını eklerseniz çabuk çözülür.

CADTools'a gidin

Guide · AutoCAD

Loading LISP in AutoCAD: Once, in Every Drawing, and Without the Warning

LISP routines are small programs that add new commands to AutoCAD: plain text files ending in .lsp. Loading one is easy, but "I loaded it, and the next day the command was gone" and the security prompt every time come up a lot. This guide covers the three ways and the common errors using the CADTools routines; the same applies to any other LISP.

CADTools page: three-step install (download, drag and drop or APPLOAD, Startup Suite), the Download all button and one tool's command list
In CADTools each tool is a single .lsp file, with its commands and a short demo video below it.

Which Way, When?

You wantWayWhat happens
To try it onceDrag and drop, or APPLOAD → LoadWorks in the open drawing only
To have it in every drawingAPPLOAD → Startup SuiteLoads by itself in every drawing you open
No security promptAdd the folder to Trusted LocationsLoads from that folder without asking
ReklamAdvertisement

1. Load It Once

  1. Save the LISP file to a folder on your computer. If you downloaded a zip, extract it first; don't load from inside the zip.
  2. Drag and drop the file onto AutoCAD's drawing area. Or type APPLOAD, pick the file, press Load and then Close.
  3. If the security prompt (Security – Unsigned Executable File) appears, choose Load Once.
  4. The command line confirms the file was loaded. Now type the command, e.g. CTK_SEV.

A LISP loaded this way is only available in that drawing. In a new drawing the command says "Unknown command" again; that is not an error, it is how LISP works.

2. Automatically in Every Drawing: Startup Suite

  1. Type APPLOAD. In the Startup Suite area at the bottom right of the dialog, press Contents….
  2. Pick the LISP files with Add… and press Close.
  3. From now on these files load by themselves in every drawing you open. If you move a file, remove it from the list and add it again.

If you want the same setup on several computers, another way is an acaddoc.lsp file: when AutoCAD opens each drawing, it looks for a file with this name in its support folders and runs what is inside. You list the files to load:

(load "C:/CTK/LISP/CTK_Sev.lsp")
(load "C:/CTK/LISP/CTK_Koordinat.lsp")

Use forward slashes (/) in the path, not backslashes (\). Put the file in a folder listed under OPTIONS → Files → Support File Search Path.

3. Get Rid of the Security Prompt: Trusted Locations

AutoCAD asks every time it loads an unsigned program from a folder it doesn't trust. This comes from the SECURELOAD setting and protects you from malicious files; don't switch it off. Instead, make the folder where you keep your LISP files trusted:

  1. Type OPTIONS and open Trusted Locations on the Files tab.
  2. Add your LISP folder with Add and press OK.
  3. AutoCAD may say the folder is not read-only. Only files you put there yourself should go into a trusted folder; don't add a folder like Downloads where anything lands.

Notes for CADTools

  • Version: AutoCAD 2021 and later, on Windows. Works in Civil 3D and plain AutoCAD.
  • Message language: Turkish when Windows is Turkish, English otherwise. Switch once with CTK_DIL; it is remembered.
  • Mac and AutoCAD LT: CADTools uses the ActiveX functions (vla-) of AutoCAD on Windows; AutoCAD for Mac does not support them. AutoCAD LT 2024 and later runs LISP but lacks some functions; we have not tested it on LT.
  • Undo: every command undoes with a single U. Still, check the result before you save.
ReklamAdvertisement

Common Problems

SymptomCauseFix
"Unknown command"The LISP is not loaded in this drawingLoad it again, or add it to the Startup Suite
Security prompt at every startThe folder is not trustedAdd the folder to Trusted Locations
Won't load, not even a promptSECURELOAD 2: trusted folders only (often a company setting)Ask IT to add the folder to the trusted list
Turkish letters brokenLISPSYS 0 (old LISP engine) or AutoCAD 2020 and earlierSet LISPSYS to 1 and restart AutoCAD
"no function definition: VL-LOAD-COM" or "VLAX-…"No ActiveX functions: Mac or LTUse full AutoCAD or Civil 3D on Windows
A Startup Suite file doesn't loadThe file was movedRemove it from the list and add it from its new place

If a CADTools command gives an error, post it on the board; with the command, your AutoCAD version and the error message from the command line it gets solved quickly.

Go to CADTools

YorumlarComments

Bu rehberle ilgili sorularınız, düzeltmeleriniz ve deneyimleriniz için. Genel konular ve yeni sorular için Pano.For questions, corrections and experiences about this guide. For general topics and new questions, use the Board.

Yorumlar yükleniyor…Loading comments…