Jump to content

Recommended Posts

Posted

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.

 

:)

 

 

 

384.gif

 

 

382.gif

 

 

385.gif

 

 

383.gif

AlignH.lsp

  • Like 4
  • Thanks 1
Posted

haven't tried it yet but it sure looks good!

thanks for sharing!

Posted

That is really great GP, :beer:

thanks very much.

Posted

Awesome!!! :thumbsup:

 

I will get a chance to give it a play next week, hopefully.

Posted

Thanks to all.

 

I am happy that like it. :)

Posted

I am yet to study the method you have implemented, but given the demonstrations I must say the program looks rather impressive!

  • Like 1
Guest kruuger
Posted (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 by kruuger
Posted

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?

Posted

@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.

 

386.jpg

 

 

 

 

@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.

Posted

Hi,GP,Thanks for your wonderful routine. I have some improvement for you code,It fix some BUG for hatch line is too long.

new.jpg

AlignH.lsp

pencil.png

  • Like 1
Posted

@SEANT

You are my muse.

:)

 

 

 

@Gu_xl

Perfect.

The problem was on longitudinal long lines.

You have brilliantly solved.

finger.gif

  • Like 1
Posted

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

Posted
@SEANT

You are my muse.

:)

 

 

Thanks. I appreciate the comment.

With continued effort from the lot of us, perhaps AutoCAD will shed its rectilinear reputation. 8)

  • Like 1
  • 7 years later...
Posted

Any idea why this isn't working anymore in AutoCAD 2019?

 

  • Like 1

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...