Function Entry: VL-PRINC-TO-STRING

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: VL-PRINC-TO-STRING

Name

vl-princ-to-string

Class

Visual LISP Function

Syntax

(vl-princ-to-string obj)

Description

Returns a printed string representation of obj in a princ-like style.

Return Values

String.

Side Effects

None.

Arguments and Values

  • obj: any AutoLISP value documented as printable by Autodesk, including numbers, strings, lists, entity names, T, and nil

Notes

  • Autodesk documents that the result is the same printed representation that princ would produce.
  • Autodesk examples show platform-sensitive pathname formatting in printed strings, while preserving princ-style omission of string quotes.

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.

clautolisp: how a real prints

As prin1 (see its "Measured" and "clautolisp" notes): the AutoCAD dialects print a real as AutoCAD (0.333333), the BricsCAD dialects as BricsCAD (0.333333333333333), clautolisp / strict / lax in clautolisp's own spelling; a [real-format] notice the first time the products differ.