Author Topic: region - delobj  (Read 2220 times)

0 Members and 1 Guest are viewing this topic.

Peter Guappa

  • Guest
region - delobj
« on: November 08, 2013, 06:11:33 PM »
In one of my lisp I use the region command.
I want the enitities that doesn't make the region to retain, all the others must be deleted.
I tried with the delobj variable. But setting it to 1, all the entities that don't make a region are also deleted
Any suggestions?

Thanks

ribarm

  • Gator
  • Posts: 3279
  • Marko Ribar, architect
Re: region - delobj
« Reply #1 on: November 09, 2013, 01:38:24 AM »
You haven't properly made selection of entities that are to make regions - your routine performs region command probably on all entities and should operate only on those that are supposed to be converted to regions... Then delobj would delete only those entities as thay are converted to regions - all selected entities must close complete shapes in order for region command to be able to make regions... So you should leave delobj to 1 and make routine choose proper selection of entities...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

Peter Guappa

  • Guest
Re: region - delobj
« Reply #2 on: November 09, 2013, 05:58:14 AM »
Yes I know, but I'm looking for a method to select ALL entities and erase only the ones that make region and leave all the others in the drawing.

ribarm

  • Gator
  • Posts: 3279
  • Marko Ribar, architect
Re: region - delobj
« Reply #3 on: November 09, 2013, 06:25:13 AM »
Yes I know, but I'm looking for a method to select ALL entities and erase only the ones that make region and leave all the others in the drawing.

Thast's exactly what my ACAD does when DELOBJ is set to 1...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

Peter Guappa

  • Guest
Re: region - delobj
« Reply #4 on: November 09, 2013, 10:13:47 AM »
I tried it on ACAD and indeed it works.

Unfortunately I work with Bricscad and it doesn't work like that.
I will send a support request to BC.

Thanks