dynamic block with double rotation action

dynamic block with double rotation action

L_Casier
Contributor Contributor
2,471 Views
7 Replies
Message 1 of 8

dynamic block with double rotation action

L_Casier
Contributor
Contributor

I have created a block with some actions in it. like stretch flip and rotated.  all works fine but there is one action I can not make to work.

The block is a tranportation belt with stretching weight

So if I change the angle of the belt the stretching weight should stay always vertical.

I have put a second angle action to the stetching weight

how to link to the first angle action and how to stretch the lines so that they stay on the circles

 

0 Likes
Accepted solutions (2)
2,472 Views
7 Replies
Replies (7)
Message 2 of 8

rapidcad
Collaborator
Collaborator

@L_Casier , I took a look at your block . You had a very good start, almost everything working as you would like but you were being stopped by the same hinderance many of us have encountered - the absence of a direction property for the rotation action. If only Autodesk had provided one we could do a lot more things and they would be so much easier. 

However, I checked out another block where the author put a position parameter (actually you can call it a Point Move Parameter Set from the block authoring palettes) and then included the point in the rotation set. This works almost perfectly once you remove the weight assembly from the Distance1 move action set and add the new point move parameter (and give it the weight assembly as its action set) to the Distance1 move action and then chain Angle1 to Position1. The only thing left is to add Position1 to the flip set and it works. Unfortunately when any flip property is used on any chained parameters they tend to end up with errors in the X direction - for some unknown reason they end up doubling the X value of the objects involved in the chain when a flip action gets actuated. I have seen this enough times to consider it a flaw in Autodesk's dynamic block framework, but my only solution for my own needs with an inclined conveyor was to build two blocks, a left and a right. 

 

I've attached a copy of your block with the changes described above and in this copy I deleted the flip parameter and changed the block to allow using differing x and y factors so you could mirror with the Mirror command and not need the flip parameter. It is about as close to a solution as I think you will find without using constraints (which happen to cause data corruption if more than a few are used along with dynamic properties in the same block.)

 

Hope this helps.

ADN CAD Developer/Operator
0 Likes
Message 3 of 8

ojuris
Advisor
Advisor
Accepted solution

hi!

not ideal but try attached

Message 4 of 8

L_Casier
Contributor
Contributor

This works indeed like I thouht it should work, but there are so many actions and parameters in it that I never would have come this solution

0 Likes
Message 5 of 8

rapidcad
Collaborator
Collaborator

Well done ojuris! I see that you just chain drove copies of the rotation parameter and used them to in turn drive point move stretches for the belts in the pulleys. Nice solution. I have often used rotation parameters chained to XY parameters to gather x or y movement with angle offsets and distance multipliers to facilitate movement is a certain direction, but it takes a lot of trial and error to discover the combination of coefficients that most closely approximate what is required sometimes. 

ADN CAD Developer/Operator
0 Likes
Message 6 of 8

L_Casier
Contributor
Contributor

Tried to find out how all is done, but it is to complicated.

What I did find out is when doing a "mirror" of the block all keeps working

Tried to a a flip action but this becomes a mess

0 Likes
Message 7 of 8

rapidcad
Collaborator
Collaborator
Accepted solution

Which would be why I said... "Unfortunately when any flip property is used on any chained parameters they tend to end up with errors in the X direction - for some unknown reason they end up doubling the X value of the objects involved in the chain when a flip action gets actuated. I have seen this enough times to consider it a flaw in Autodesk's dynamic block framework, but my only solution for my own needs with an inclined conveyor was to build two blocks, a left and a right. "

 

This is also why I switched your block to allow non-uniform X and Y values - so it would allow mirroring which should not cause you an issue unless you export data from the block and depend on property values to tell you the correct data. Ojuris built you a beautiful version that I think is about as good as one can do in this situation - I'd run with it and use the mirror command when needed. 

 

BTW, If there is a way to change your "Mark as Solved" I urge you to do so - Ojuris deserves credit for the solution - this would help him improve his rank in the forum. Unfortunately this thread is marked  as solved by yourself (which is an easy mistake to make).

 

Have a good day!

ADN CAD Developer/Operator
Message 8 of 8

rapidcad
Collaborator
Collaborator

😊

ADN CAD Developer/Operator
0 Likes