Skip to main content
Glama

AutoCAD LT AutoLISP MCP Server

by puran-water
selection_and_file.lsp661 B
;; selection_and_file.lsp ;; Provides placeholders for advanced selection, file import/export, etc. ;; (load "error_handling.lsp") (defun c:select_by_layer (layer_name / ss) (setq ss (ssget "X" (list (cons 8 layer_name)))) (if ss (princ (strcat "\nSelected " (itoa (sslength ss)) " entities on layer " layer_name)) (report-error (strcat "No entities found on layer: " layer_name)) ) ss ) (defun c:import_dwg (file_path / ) (princ (strcat "\nImporting DWG from: " file_path)) ) (defun c:export_dwg (file_path / ) (princ (strcat "\nExporting current drawing to: " file_path)) ) (princ "\nSelection and file management loaded.\n") (princ)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/puran-water/autocad-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server