• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

search for restraints

  • Thread starter Thread starter Angelo2449
  • Start date Start date

Angelo2449

Guest
Hello everyone,
with this command;
Code:
 (defun c: test (/ stringa num)

(setq num 0)

(if (setq stringa (ssget "_ x" '((0. "hatch") (2. "solid")))
(setq num (1 + num))
); if

(prc "\ nnum xxxx")
(prc num)
(ringing)

);; defun fina cercat
I would like to look for all the existing solid > > handles in the design.

Unfortunately the search doesn't work, what is wrong?

Thank you.
 
I changed the code, now it works!
Code:
 (defun c: test (/ stringa num)

(setq num 0)

(if (setq stringa (ssget "_ x" '((0. "hatch") (2. "_ solid")))
(progn
(repeated (setq num (sslength tight))
(prince)
);; repeated
);; progn
); if

(prc "\ nnum xxxx")
(prc num)
(pr "n")

);; defun fina cercat[
/CODE]now I would like to select the dash of a certain color.
 
You should filter the stains on the layers that have the color you're looking for, plus the stains with the same color, but imposed.
the dxf code that manages the layer is 8
the dxf code that manages the color, if different "from layer" (i.e. imposed) should be the 62
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top