;; WSH.LSP Copyright 1999 Tony Tanzillo ;; ;; WSH.LSP demonstrates how to use the Windows Scripting ;; Host's FileSystemObject in Visual LISP Applications. ;; ;; The FileSystemObject is part of Microsoft's Windows ;; Scripting Host, which is shipped with Windows 98 and ;; Internet Ex ...
代码: ;; ! Function : Computes the dot products of two vectors ;; ! ;; ! Arguments: 'v1' - First vector ;; ! 'v2' - Second Vector ;; ! ;; ! Returns : 'scl' - The dot product of the two vectors which is a scalar ;; ! value ;; ! Theory: Say you have two vecto ...
代码: (defun c:tt (/ ss ssl n m sp ep e e1 sp1 ep1 el el1) (if (setq ss (ssget '((0 . "line")))) (progn (setq ssl (sslength ss) n -1 ) (while ( n (1- ssl)) (setq e (ssname ss (setq n (1+ n))) el (entget e) sp (cdr (assoc 10 el)) ep (cdr (as ...