Hello everyone. Is it possible to make a selection based on a string (code 1000)? I already have a defined point (application name "Tacka") with a defined point name. When I enter a point number, I want to import a special block to that point. The only thing I found on internet was ssget "X" '((0 . "POINT") (-3 ("APPNAME")))) but I don't know how to filter by point number. Here is the code made so far:
(defun C:k1 ( / ss blk n)
(SETVAR "INSUNITS" 4)
(initget "1000 500 2500 250")
(setq Pitanje
(cond
( (getint
(strcat "\n Odaberi Razmeru 1:[1000/500/2500/250] <"
(itoa
(cond
(Pitanje)
( (setq Pitanje 1000) )
)
)">: "
)
)
)
(Pitanje)
)
)
(if (= Pitanje 1000)
(progn (setq razmera 1)))
(if (= Pitanje 500)
(progn (setq razmera 0.5)))
(if (= Pitanje 2500)
(progn (setq razmera 2.5)))
(if (= Pitanje 250)
(progn (setq razmera 0.25)))
(if (and (setq ss (ssget "X" '((0 . "POINT") (-3 ("Tacka")))))
(setq blk "T62-04 Reviziono okno - poklopac kruzni"))
(repeat (setq n (sslength ss))
(command "layer" "make" "Top znaci kanalizacija" "")
(command "_.-insert" blk
"_s" razmera
"_r" 0
"_none" (cdr (assoc 10 (entget (ssname ss (setq n (1-
n)))))))))
(princ)
)
Thanks