how to create poly-line boundary for remaining hash area using auto lisp

how to create poly-line boundary for remaining hash area using auto lisp

jadhav_vilas84
Contributor Contributor
2,881 Views
9 Replies
Message 1 of 10

how to create poly-line boundary for remaining hash area using auto lisp

jadhav_vilas84
Contributor
Contributor

Hi, 

 

I am auto-lisp and .net developer .  

I have two rectangles outer rectangle and inner triangle , i had hatched triangle , but i am not able to collect remaining empty space /area to mark boundary 

Please suggest how can i mark empty space area as enclosed poly line using auto-lisp or .net C#

 

thanks 

vilas jadhav 

0 Likes
Accepted solutions (2)
2,882 Views
9 Replies
Replies (9)
Message 2 of 10

devitg
Advisor
Advisor

Hi@jadhav_vilas84 , please upload your sample.dwg

0 Likes
Message 3 of 10

Kent1Cooper
Consultant
Consultant

@jadhav_vilas84 wrote:

.... I have ... outer rectangle and inner triangle , i had hatched triangle .... how can i mark empty space area as enclosed poly line .... 


If this is anything like what you're talking about:
Leftover.PNG

and you want to "find" and mark the empty space between the rectangle and triangle, doesn't it require two  Polylines to define that?  And don't you already have them?

 

What am I missing?

Kent Cooper, AIA
Message 4 of 10

Sea-Haven
Mentor
Mentor

Is not the area outside pline area - inside pline area?

0 Likes
Message 5 of 10

jadhav_vilas84
Contributor
Contributor

Hi, 

 

Please check attached image , I need empty space boundary . it is used for calculation and highlighting . 

 

jadhav_vilas84_2-1595397296486.png

 

 

 

 

thanks 

vilas 

0 Likes
Message 6 of 10

Kent1Cooper
Consultant
Consultant

So it's not  two rectangles, nor an outer rectangle and an inner triangle, as described....

 

Are the white sides of the required area parts of a closed Polyline rectangle around the overall area, mostly overlapped by parts of the red outline?  Is the red outline also a closed Polyline?

 

What would be the procedure?  If the answers to my first two questions are both Yes, do you imagine a User selecting those two shapes?

Kent Cooper, AIA
0 Likes
Message 7 of 10

devitg
Advisor
Advisor

@jadhav_vilas84 , would you, please, upload a sample.dwg . 

As far as we know, ACAD shall not edit or work on images like png and so on. 

 

0 Likes
Message 8 of 10

jadhav_vilas84
Contributor
Contributor

 Hello  sir, 

 

there is two rectangles , red colored rectangle is hatched part , outer boundary is white colored rectangle and as need to empty space mark as closed poly-line , it is possible to mark remaining area as closed poly-line , it should be multiple empty area . 

 

jadhav_vilas84_0-1595433035297.png

 

I need to Mark Closed Poly-line  into EMPTY. and other remaining area. 

Outer Boundary is parent Rectangle , 

Hatched Area is inner rectangle and it is hatched . 

 

thanks 

vilas  

0 Likes
Message 9 of 10

Kent1Cooper
Consultant
Consultant
Accepted solution

Okay, so incorrect terminology has been causing confusion.  The red outline [or boundary, or polygon, or Polyline] is not a rectangle, and the first message talked about an inner triangle, which may be a possibility but isn't in any of the images.

 

I repeat:  What would be the procedure, if a routine can be written to do what you want?  Would the User be asked to select  the outer rectangle and the inner boundary?  Or to pick inside the inner one for hatching, and to select the outer rectangle as an object?  Or some other steps?  Are they both single closed Polyline objects, and not made up of separate Lines, not Blocks, not something else?  Should the routine include  doing the Hatching also?  Etc., etc., etc.  And whatever the expected procedure, can it really be any fewer steps than just using the BOUNDARY or BPOLY command?

Kent Cooper, AIA
Message 10 of 10

Sea-Haven
Mentor
Mentor
Accepted solution

Agree with you Kent this is 4 plines after using bpoly.

 

screenshot231.png