@k005 a écrit :
@CADaSchtroumpf
Hi
(25.0 25.0 0.0)) --> if we read the 25s in this section from a key from the Registry ..? how can we do this?
* I will enter the value from another program.
@k005
Hi,
Use (vl-registry-read ....)
For exemple if use in command line (vl-registry-write "HKEY_CURRENT_USER\\Test" "" "25") for you is write by your external program.
For this I insert the line: adapt to your key registry (here test is a string)
(setq dlt (vl-registry-read "HKEY_CURRENT_USER\\Test") dlt (list (atof dlt) (atof dlt) 0.0))
before line 41
(repeat (setq n (sslength js))
and change
sel_t (ssget "_C" (mapcar '- pt '(25.0 25.0 0.0)) (mapcar '+ pt '(25.0 25.0 0.0)) '((0 . "TEXT") (67 . 0) (410 . "Model") (8 . "0") (62 . 16) (370 . 0) (210 0.0 0.0 1.0)))
by
sel_t (ssget "_C" (mapcar '- pt dlt) (mapcar '+ pt dlt) '((0 . "TEXT") (67 . 0) (410 . "Model") (8 . "0") (62 . 16) (370 . 0) (210 0.0 0.0 1.0)))