TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Amsterdammed 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
-
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.
-
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
-
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? :?:
-
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.
-
In lisp you must use -BOUNDARY in stead of -BPOLY:
(command ".-boundary" "A" "B" "N" (ssget) "" "" (getpoint))
-BPOLY doesn't work.
-
: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
-
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.
-
In lisp you must use -BOUNDARY in stead of -BPOLY:
(command ".-boundary" "A" "B" "N" (ssget) "" "" (getpoint))
-BPOLY doesn't work.
good