GP_ Posted October 9, 2012 Posted October 9, 2012 Hi, the lisp, anticipated with two images here and here, aligns between two curves the hatch elements and creates a block containing the lines of the new geometry. The original shape of the hatch shall be a rectangle, an isosceles triangle or an isosceles trapezoid. In case of large hatches is recommended to divide it into portions, any case it is better to try with small hatches to verify the time required for processing, in according to PC performances, too. Not all hatches are suitable for processing. I hope it works well and there are no problems. AlignH.lsp 4 1 Quote
nod684 Posted October 10, 2012 Posted October 10, 2012 haven't tried it yet but it sure looks good! thanks for sharing! Quote
Dadgad Posted October 10, 2012 Posted October 10, 2012 That is really great GP, thanks very much. Quote
SLW210 Posted October 10, 2012 Posted October 10, 2012 Awesome!!! I will get a chance to give it a play next week, hopefully. Quote
GP_ Posted October 10, 2012 Author Posted October 10, 2012 Thanks to all. I am happy that like it. Quote
Lee Mac Posted October 10, 2012 Posted October 10, 2012 I am yet to study the method you have implemented, but given the demonstrations I must say the program looks rather impressive! 1 Quote
Guest kruuger Posted October 11, 2012 Posted October 11, 2012 (edited) hello GP_ this is really cool lisp!!! i start using them but fail with one pattern. Please see attached file is it possible to make a short description how do you calculate all these points? any source where i can read about this? one suggestion. maybe replace all these popups with while loop? thanks kruuger sample.dwg Edited October 11, 2012 by kruuger Quote
MSasu Posted October 11, 2012 Posted October 11, 2012 That a really great tool! Congratulations! If you don't mind, I’d make a suggestion; why don't ask the user to select only the target curves and the pattern (either as name or by acquiring from existing hatch) and create automatically the temporary reference hatch for your calculation based of length of those target curves? Quote
GP_ Posted October 11, 2012 Author Posted October 11, 2012 @Lee - kruuger - Mircea Thanks @ kruuger First case. I already said that not all hatches are suitable for processing. Are adapted the individual lines (start/end point), you will get better results with short lines or transverse (if long). Second case. Attention to the selection point. @Mircea It 'a good idea, but it would only be used with method 3 (offset), which can be traced to a rectangular shape. I also found the system to use a origin shape not rectangle, triangle or trapezoid (two lines randomly), but the computation time is excessive. Quote
Gu_xl Posted October 12, 2012 Posted October 12, 2012 Hi,GP,Thanks for your wonderful routine. I have some improvement for you code,It fix some BUG for hatch line is too long. AlignH.lsp 1 Quote
GP_ Posted October 12, 2012 Author Posted October 12, 2012 @SEANT You are my muse. @Gu_xl Perfect. The problem was on longitudinal long lines. You have brilliantly solved. 1 Quote
Glen Smith Posted October 12, 2012 Posted October 12, 2012 Marvelous! I played with it a bit. It appears not to like polyline objects. I used the rectangle command to draw my source hatch, and AlignH tells me that it is an "Invalid Object" If I draw the same hatch inside a rectangle made of lines, no problem. Likewise if I explode the rectangle before running AlignH. Very cool - I don't draw many hatches, but I put this in my LISP folder. Glen Quote
SEANT Posted October 12, 2012 Posted October 12, 2012 @SEANTYou are my muse. Thanks. I appreciate the comment. With continued effort from the lot of us, perhaps AutoCAD will shed its rectilinear reputation. 1 Quote
CAD_Noob Posted April 1, 2020 Posted April 1, 2020 Any idea why this isn't working anymore in AutoCAD 2019? 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.