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'ta her araç tek bir .lsp dosyası; altında komutları ve kısa tanıtım videosu var.
Hangi Yol Ne Zaman?
İsteğiniz
Yol
Ne olur
Bir kez denemek
Sürükle bırak ya da APPLOAD → Load
Yalnız açık çizimde çalışır
Her çizimde hazır olsun
APPLOAD → Startup Suite
Her açılan çizimde kendiliğinden yüklenir
Güvenlik uyarısı çıkmasın
Klasörü Trusted Locations'a ekleyin
O klasörden uyarısız yüklenir
ReklamAdvertisement
1. Bir Kez Yüklemek
LISP dosyasını bilgisayarınızda bir klasöre kaydedin. Zip olarak indirdiyseniz önce zip'ten çıkarın; zip'in içinden yüklemeyin.
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.
Güvenlik uyarısı (Security – Unsigned Executable File) çıkarsa Load Once seçin.
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
APPLOAD yazın. Pencerenin sağ altındaki Startup Suite bölümünde Contents… düğmesine basın.
Add… ile LISP dosyalarını seçin, Close deyin.
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:
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:
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
Belirti
Sebep
Çözüm
"Unknown command"
LISP bu çizimde yüklü değil
Yeniden yükleyin ya da Startup Suite'e ekleyin
Her açılışta güvenlik uyarısı
Klasör güvenilir değil
Klasörü Trusted Locations'a ekleyin
Uyarı bile çıkmadan yüklenmiyor
SECURELOAD 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 bozuk
LISPSYS 0 (eski LISP motoru) ya da AutoCAD 2020 ve öncesi
LISPSYS 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 LT
Windows'ta tam AutoCAD ya da Civil 3D kullanın
Startup Suite'teki dosya yüklenmiyor
Dosyanı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.
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.
In CADTools each tool is a single .lsp file, with its commands and a short demo video below it.
Which Way, When?
You want
Way
What happens
To try it once
Drag and drop, or APPLOAD → Load
Works in the open drawing only
To have it in every drawing
APPLOAD → Startup Suite
Loads by itself in every drawing you open
No security prompt
Add the folder to Trusted Locations
Loads from that folder without asking
ReklamAdvertisement
1. Load It Once
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.
Drag and drop the file onto AutoCAD's drawing area. Or type APPLOAD, pick the file, press Load and then Close.
If the security prompt (Security – Unsigned Executable File) appears, choose Load Once.
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
Type APPLOAD. In the Startup Suite area at the bottom right of the dialog, press Contents….
Pick the LISP files with Add… and press Close.
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:
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:
Type OPTIONS and open Trusted Locations on the Files tab.
Add your LISP folder with Add and press OK.
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
Symptom
Cause
Fix
"Unknown command"
The LISP is not loaded in this drawing
Load it again, or add it to the Startup Suite
Security prompt at every start
The folder is not trusted
Add the folder to Trusted Locations
Won't load, not even a prompt
SECURELOAD 2: trusted folders only (often a company setting)
Ask IT to add the folder to the trusted list
Turkish letters broken
LISPSYS 0 (old LISP engine) or AutoCAD 2020 and earlier
Set LISPSYS to 1 and restart AutoCAD
"no function definition: VL-LOAD-COM" or "VLAX-…"
No ActiveX functions: Mac or LT
Use full AutoCAD or Civil 3D on Windows
A Startup Suite file doesn't load
The file was moved
Remove 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.
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.