lisp2arx
Visual Programming for AutoLisp Mathématiques en programmation Lisp.. doc2cpp,doc2lsp, sld2lsp, bmp2dcl, free__GifCcapture for all-CAD'platforms..
Lista Forumurilor Pe Tematici
lisp2arx | Reguli | Inregistrare | Login

POZE LISP2ARX

Nu sunteti logat.
Nou pe simpatie:
ramona23
Femeie
24 ani
Bucuresti
cauta Barbat
24 - 52 ani
lisp2arx / Listof AutoLisp.100 / Vla-autoLisp14- Lambda01vovka Moderat de zauchan
Autor
Mesaj Pagini: 1
admin
Administrator

Din: Bucharest
Inregistrat: acum 13 ani
Postari: 516
Please help how to convert
  -- str_pathtemp10 to
  -- str_pathtemp12
How to calculate others version/s on same defun-names?

n same source defun?
How to detect inside  "str_pathtemp10" the list of variabiles
   "TEMP" "TMP" "TEMPPREFIX"  "XLOADPATH" )
and generate automatically the source.ascii  str_pathtemp12.lsp

Code:

(defun;;{$N}
 str_pathtemp10
      ( / rr e f k) (asserte "A131")
   (setq;|a8424|;
    rr nil
    f (dfn_var_isstr (getenv "TEMP"))) (if (and  (not rr) f) (setq;|a8533|;
    rr f)) (setq;|a8563|;
    f (if (not f) (dfn_var_isstr (getenv "TMP")) f)) (if (and  (not rr) f) (setq;|a8674|;
    rr f)) (setq;|a8706|;
    f (dfn_var_isstr (getvar "TEMPPREFIX"))
    f (if (not f) (dfn_var_isstr (getenv "TMP")) f)) (setq;|a8835|;
    f (dfn_var_isstr (getvar "XLOADPATH"))
    f (if (not f) (dfn_var_isstr (getenv "TMP")) f)) (if (=  rr nil) (setq;|a8989|;
    rr "")) (setq;|a9019|;
    k (strlen rr)) (if (>  k 2) (progn (while (and  (>  k 1) (=  (substr rr k 1) " ")) (setq;|a9169|;
    rr (substr rr 1 (- k 1)))) (progn  (while (and  (>  k 1) (wcmatch rr "*[\\]*")) (if (=  (substr rr k 1) "\\") (setq;|a9369|;
    rr (strcat (substr rr 1 (- k 1)) "/" (substr rr (+ k 1))))) (setq;|a9505|;
    k (- k 1)))) (setq;|a9549|;
    c (substr rr (strlen rr))) (if (/= c "/") (setq;|a9630|;
    rr (strcat rr "/"))))) rr)



Code:

(Defun  str_pathtemp12 ( / rr e f k) (setq rr nil)
(
 (lambda (f)
  (if (and (= rr nil) (dfn_var_isstr (getenv f))) (setq rr f))
)
 "TEMP" "TMP" "TEMPPREFIX"  "XLOADPATH" )
 )
(setq
    k (strlen rr)) (if (>  k 2) (progn (while (and  (>  k 1) (=  (substr rr k 1) " ")) (setq;|a9169|;
    rr (substr rr 1 (- k 1)))) (progn  (while (and  (>  k 1) (wcmatch rr "*[\\]*")) (if (=  (substr rr k 1) "\\") (setq;|a9369|;
    rr (strcat (substr rr 1 (- k 1)) "/" (substr rr (+ k 1))))) (setq;|a9505|;
    k (- k 1)))) (setq;|a9549|;
    c (substr rr (strlen rr))) (if (/= c "/") (setq;|a9630|;
    rr (strcat rr "/"))))) rr)

Best regards.

please help how convert     calculate others version/s same same source defun?how detect

38.9KB


_______________________________________


pus acum 1 luna
   
admin
Administrator

Din: Bucharest
Inregistrat: acum 13 ani
Postari: 516


Code:

; anonymous functions
 (setq _initget_options (lambda (l) (substr (apply 'strcat (mapcar (function (lambda (k) (strcat " " k " " (strcase k)))) l)) 2)))
 (setq _prompt_options  (lambda (l) (substr (apply 'strcat (mapcar (function (lambda (k) (strcat "/" (strcase k)))) l)) 2))) 
 (setq _isDynamicBlock  (lambda (l) (vl-every (function (lambda (ent) (= (getpropertyvalue ent "IsDynamicBlock") 1))) l)))
 (setq _isBlockValid    (lambda (ents names) (vl-every (function (lambda (ent name) (eq (strcase (getpropertyvalue ent "BlockTableRecord/Name")) name))) ents names)))
 (setq _setAttribValue  (lambda (ents tags vals) (mapcar (function (lambda (ent tag val) (setpropertyvalue ent tag val))) ents tags vals)))
 (setq _genValue        (lambda (l) (mapcar (function (lambda (n) (strcat prefix (_format (itoa n) 3)))) l)))



_______________________________________


pus acum 1 luna
   
Pagini: 1  

Mergi la