Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Remove inner loop from a hatch object

1 REPLY 1
Reply
Message 1 of 2
Anonymous
264 Views, 1 Reply

Remove inner loop from a hatch object

Hello all -

does anyone have a way to remove inner loops (i.e. "islands") from a hatch object?

tia

Peter
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

I couldn't find any means to do this with activex so I went back to entmod. For anyone that might be interested - this seems to work most of the time:

;;(f:hatch_removeislands [hatch object]) - remove *ALL* islands from a hatch object

(defun f:hatch_removeislands (en / elst at skip xlst)
(setq elst (entget en))
(while elst
(setq at (car elst))
(cond
((= (car at) 75)
(setq xlst (append xlst (list at))
skip nil
)
)
(skip)
((= (car at) 91)
(setq xlst (append xlst (list (cons 91 1))))
)
((= (car at) 97)
(setq xlst (append xlst (list at))
skip T
);setq
)
(T
(setq xlst (append xlst (list at)))
)
);cond
(setq elst (cdr elst))
);while
(entmod xlst)
(entupd en)
en
)

Peter

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report