Multiple blocks linked to follow a line

Multiple blocks linked to follow a line

zgambling
Participant Participant
1,536 Views
5 Replies
Message 1 of 6

Multiple blocks linked to follow a line

zgambling
Participant
Participant

Hi Everyone,

I'm hoping that some very clever people on here might be able to help me.

I have a number of individual blocks that I would like to join together, but in doing so I want them to be able to "move/bend" at a set point, and also be able to follow a line.

If you can imagine a train with multiple carriages on a train track, that's what I want the 3 blocks to do.

Has any one got any ideas how this could be done.

I use Autocad LT, but have access to Full Autocad.

I have attached a file showing the blocks and line.

Hopefully there are some very clever people who can help.

Thanks

Zane  

0 Likes
Accepted solutions (3)
1,537 Views
5 Replies
Replies (5)
Message 2 of 6

h_s_walker
Mentor
Mentor
Accepted solution

Give the block in the attached drawing a whirl. You'll see it's fairly easy to do

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

Message 3 of 6

j.palmeL29YX
Mentor
Mentor
Accepted solution

See this video.

To convert the Polyline into a spline I used the attached LISP. (There are a lot of other - and better - ways too).

 

cadder

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 4 of 6

zgambling
Participant
Participant

HWalker…. you sir are a legend.

 

Many thanks for that.

Now if I could get that to attach to he line so that it follows it as I drag it, that would be awesome.

 

Do you have any instruction on how you managed to do this to the blocks at all please.

I have some other styles I'd like to convert to this type of commands.

 

Cheers mate

Zane

0 Likes
Message 5 of 6

h_s_walker
Mentor
Mentor
Accepted solution

Updated the block with an alignment parameter to follow the line for the first block only. You'll have to rotate the others yourself.

 

As to rotating the blocks all I did was add a rotation parameter to the third block and added that block to the parameter. 

I then added a rotation parameter to the second block, added that block to the parameter and added the third block and rotation parameter to that block.

 

I did a similar thing with the first block, adding the rotation parameters and blocks to the last rotation parameter I created.

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

Message 6 of 6

zgambling
Participant
Participant
Jürgen

Many thanks for this, that's awesome.

Just what I was looking for.

Zane

0 Likes