Gap Tolerance for creating boundary through lisp

Gap Tolerance for creating boundary through lisp

abdul.raufJJ89F
Advocate Advocate
1,304 Views
2 Replies
Message 1 of 3

Gap Tolerance for creating boundary through lisp

abdul.raufJJ89F
Advocate
Advocate

Hello,
I am working on creating closed boundaries based on the text/mtext in the enclosed areas. My test case is to trace out rooms on the floorplans based on the room label. But one of the major issues which I am facing is that sometimes there are gaps and small opening due to drafting errors.
Is there any way that we can tell lisp to ignore these gaps and eventually draw the closed boundaries anyway?
I am attaching the current lisp code and also a sample dwg.

Thanks

0 Likes
1,305 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant

You can try to use set the HPGAPTOL, create a HATCH and restore the boundary (using HATCHEDIT or HATCHGENERATEBOUNDARY). But this might just help a little, it won't solve the issue (probably not even your example case). 

The best solution would be to avoid the issue, enhance the drawing accuracy.

 
0 Likes
Message 3 of 3

abdul.raufJJ89F
Advocate
Advocate

@ВeekeeCZ 

I get the dwg file from the client-side, so there is not much I can do regarding the accuracy.

0 Likes