Jump to content

Recommended Posts

Posted

Hi

 

I have an old routine that inserts a block (tadpole) and align it to two points.

What I want is to select top of slope and bottom of slope and enter at a certain distance (eg 10 m) that block scaled and aligned to the top of slope, which would command something like "measure" but I want to scale that blocks according to the distance between the two lines.

 

My knowledge of LISP is not great - I can sometimes see what it's doing and might me able to cut and paste code from one file to another, but as of yet, can't write the code myself.

 

Another problem is if one of polylines is shorter than the other (as in "test.dwg) block insertion end to end where the shortest.

TADPOLE.DWGFetching info...

tadpole.lspFetching info...

test.dwgFetching info...

Posted

There is nobody here who can help me this problem?

Posted

An hour and twenty is not long mate, give the folks some time to roll out of bed - not to mention the americans that have not even gotten to bed yet!

 

I can give my 2 cents (which are Lisp-free) and suggest you look into the Scale command with the Reference option, perhaps that would help?

Posted

There is no problem i'll wait, just did not know if anyone looked at the problem I exposed.

 

Thanks a lot.:roll:

Posted

If you had of searched the forum first you would have found the answer that auto aligns the tadpoles etc to two polylines works fantastic downloaded from here. So go searching try "batter"

Posted

I found two routines approaching what I wanted.

http://www.cadtutor.net/forum/showthread.php?t=20483&highlight=batter+ticks&page=2 post # 18

Here the problem is that the batter ticks not always align the top of slope to bottom of slope according to the direction of polyline, as shown in the attachment.

 

The second is http://www.cadtutor.net/forum/showthread.php?t=25747&highlight=batter+ticks.

Here there is the possibility to choose which side I draw the batters ticks but if the bottom of slope and top of slope have different lengths crash and delete polylines.If someone can look and find the answer to any of them to work properly would be perfect and I would be obliged.

 

Thanks in advance

batters.jpg

  • 7 years later...
Posted
  bogdancic26 said:
I changed one of the two routines and now is exactly what I wanted, without having to depend on the meaning of polyline.

Thanks to everyone who helped me.

 

 

sorry, lisp newbie here - trying to create some tadpoles without having to insert each one by hand as a block .

  • 5 years later...
Posted

hello bogdancic26, why i used slopetadpole.lsp but symbol position according to the line

contohslope1.jpg

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