Function Entry: VL-FILENAME-EXTENSION
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: VL-FILENAME-EXTENSION
Name
vl-filename-extension
Class
Visual LISP Pathname Function
Syntax
(vl-filename-extension filename)
Arguments and Values
filename: pathname string
Description
Returns the extension from a file name after stripping out the rest of the name.
Return Values
String extension or nil if there is no extension under host semantics.
Side Effects
None.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [vl-filename-extension (AutoLISP)](https://help.autodesk.com/cloudhelp/2026/FRA/AutoCAD-AutoLISP-Reference/files/GUID-6AF5AC95-2E38-4D2C-8A81-8D26F7E80375.htm)
Notes
- Autodesk documents that the returned extension begins with a period.
- Autodesk documents that the function does not check whether the specified file exists.