Author Topic: finding Boundary with lisp  (Read 4398 times)

0 Members and 1 Guest are viewing this topic.

Amsterdammed

  • Guest
finding Boundary with lisp
« on: August 08, 2005, 10:34:47 AM »
Hello everybody

For a big Project we need to get information over room areas in a drawing drafted by an architect. So we have no influence on his way of working. So what I want to do is making a selection set with the Block containing the room number to find an internal point for every room.

But then I will need some lisp to find the boundary surrounding this point. This could be a block (some rooms are the same, so the Architect made a Block from it) some are not. I want de generate a poly line on the boundary.

Thanks in Advance,


Bernd

daron

  • Guest
finding Boundary with lisp
« Reply #1 on: August 08, 2005, 11:34:04 AM »
Are the doors closed or open? You can get the dxf 10 from each text string and use that in the bpoly command as you pickpoint. If your doors are open, you'll get inaccuracies. You could however, draw a line across each door opening and freeze the door layer before processing.

Amsterdammed

  • Guest
finding Boundary with lisp
« Reply #2 on: August 08, 2005, 12:38:44 PM »
Thanks Daron,

The dxf 10 i knew, the bpoly command was what i missed, never worked with it. The doors are closed, so it should work.

Bernd :D

Amsterdammed

  • Guest
finding Boundary with lisp
« Reply #3 on: August 08, 2005, 08:52:36 PM »
Daron,

the bpoly gives not always a result; even when there is a boundary Acad tells sometimes different. And it takes it's time since it scans always the whole dwg for the boundary. Is there a way to create a ss where the command looks in only? :?:

daron

  • Guest
finding Boundary with lisp
« Reply #4 on: August 09, 2005, 07:24:29 AM »
I don't have an easy answer. There's no function I know that would do it. Zooming in to the area and leaving the lines for the area in the screen would speed it up a bit, but it still wouldn't be perfect.

Crank

  • Water Moccasin
  • Posts: 1503
finding Boundary with lisp
« Reply #5 on: August 09, 2005, 09:27:08 AM »
In lisp you must use -BOUNDARY in stead of -BPOLY:
Code: [Select]

(command ".-boundary" "A" "B" "N" (ssget) "" "" (getpoint))

-BPOLY doesn't work.
Vault Professional 2023     +     AEC Collection

Amsterdammed

  • Guest
finding Boundary with lisp
« Reply #6 on: August 09, 2005, 11:17:32 AM »
:D Daron,
zooming in makes a big difference.

So i can at least do most of the rooms by lisp, the rest goes by hand.

Thanks,

Bernd

LE

  • Guest
finding Boundary with lisp
« Reply #7 on: August 16, 2005, 05:33:18 PM »
I have done this in the past with no problem using the bpoly function, let me search for some of my old routines... If I got something useful I will tried to posted here.

Luis.

434939575

  • Mosquito
  • Posts: 2
Re: finding Boundary with lisp
« Reply #8 on: April 20, 2015, 03:46:38 AM »
In lisp you must use -BOUNDARY in stead of -BPOLY:
Code: [Select]
(command ".-boundary" "A" "B" "N" (ssget) "" "" (getpoint))
-BPOLY doesn't work.

good